CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EgammaTrigger.h
Go to the documentation of this file.
1 #ifndef EgammaReco_EgammaTrigger_h
2 #define EgammaReco_EgammaTrigger_h
3 
13 
14 namespace reco {
15 
16  class SuperCluster;
17 
18  namespace egamma {
20  template<unsigned char L1>
21  struct mask { enum { value = mask< L1 - 1 >::value << 1 }; };
22  template<>
23  struct mask<0> { enum { value = 1 }; };
24  }
25 
26  class EgammaTrigger {
27  public:
29  EgammaTrigger() : l1word_( 0 ) { }
30 
32  EgammaTrigger( bool, bool, bool, bool );
33 
36  template<unsigned char L1>
37  bool match() {
39  }
40 
43  template<unsigned char L1>
44  void set() {
46  }
47 
49  unsigned char l1word() const { return l1word_; }
50 
51  private:
53  unsigned char l1word_;
54  };
55 }
56 
57 #endif
unsigned char l1word_
trigger work (packed). Only 4 bits are used.
Definition: EgammaTrigger.h:53
EgammaTrigger()
default constructor
Definition: EgammaTrigger.h:29
unsigned char l1word() const
return the trigger work
Definition: EgammaTrigger.h:49