ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/System8/s8/Selector/src/TriggerNamePredicator.cpp
Revision: 1.2
Committed: Tue May 24 14:38:25 2011 UTC (13 years, 11 months ago) by samvel
Branch: MAIN
CVS Tags: V00-00-04, V00-00-03, V00-00-02-04, V00-00-02-03, V00-00-02-02, V00-00-02-01, V00-00-02, HEAD
Changes since 1.1: +2 -2 lines
Error occurred while calculating annotation data.
Log Message:
Change selector build system to scram

File Contents

# Content
1 /**
2 * TriggerNamePredicator
3 * s8
4 *
5 * Created by Samvel Khalatian on Feb 8, 2011
6 * Copyright 2010, All rights reserved
7 */
8
9 #include "Tree/System8/interface/S8Trigger.h"
10 #include "s8/Selector/interface/TriggerNamePredicator.h"
11
12 using s8::TriggerNamePredicator;
13
14 TriggerNamePredicator::TriggerNamePredicator() throw()
15 {
16 _search_trigger = 0;
17 }
18
19 void TriggerNamePredicator::setSearchTrigger(const Trigger &trigger)
20 {
21 _search_trigger = &trigger;
22 }
23
24 bool TriggerNamePredicator::operator()(const Trigger *trigger) const
25 {
26 if (!_search_trigger)
27 return false;
28
29 return _search_trigger->hash() == trigger->hash();
30 }