CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EgHLTOffEvt.h
Go to the documentation of this file.
1 #ifndef DQMOFFLINE_TRIGGER_EGHLTOFFEVT
2 #define DQMOFFLINE_TRIGGER_EGHLTOFFEVT
3 
4 //struct: EgHLTOffData (Egamma HLT Offline Data)
5 //
6 //author: Sam Harper (July 2008)
7 //
8 //WARNING: interface is NOT final, please dont use this class for now without clearing it with me
9 // as I will change it and possibly break all your code
10 //
11 //aim: this is a simple struct which allows all the data needed by the egamma offline HLT DQM code to be passed in as single object
12 // this includes the TriggerEvent handle and the vector of EgHLTOffEle at the moment
13 //
14 //implimentation:
15 //
16 //
17 
20 
24 
25 
26 namespace egHLT {
27  //we own nothing....
28  class OffEvt {
29  private:
30  //edm::Handle<trigger::TriggerEvent> trigEvt_;
32 
33  std::vector<OffEle> eles_;//egHLT::OffEle is lightweightish and handles copying okay hence it isnt a vector of pointers
34  std::vector<OffPho> phos_;//egHLT::OffPho is lightweightish and handles copying okay hence it isnt a vector of pointers
35  //const std::vector<reco::CaloJet>* jets_;
36 
37  TrigCodes::TrigBitSet evtTrigBits_; //the triggers that fired in the event all in a handy bit set
38 
39 
40  public:
41  OffEvt(){}
42  ~OffEvt(){}
43 
44  //accessors
45  // const trigger::TriggerEvent& trigEvt()const{return *trigEvt_.product();}
46  const std::vector<OffEle>& eles()const{return eles_;}
47  std::vector<OffEle>& eles(){return eles_;}
48  const std::vector<OffPho>& phos()const{return phos_;}
49  std::vector<OffPho>& phos(){return phos_;}
51  const std::vector<reco::CaloJet>& jets()const{return *jets_.product();}
52 
53  //modifiers
54  void clear();
56  void setJets(edm::Handle<std::vector<reco::CaloJet> > jets){jets_=jets;}
57 
58  };
59 }
60 
61 
62 #endif
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
void clear()
Definition: EgHLTOffEvt.cc:5
std::vector< OffEle > eles_
Definition: EgHLTOffEvt.h:33
std::vector< OffEle > & eles()
Definition: EgHLTOffEvt.h:47
void setEvtTrigBits(TrigCodes::TrigBitSet bits)
Definition: EgHLTOffEvt.h:55
TrigCodes::TrigBitSet evtTrigBits_
Definition: EgHLTOffEvt.h:37
TrigCodes::TrigBitSet evtTrigBits() const
Definition: EgHLTOffEvt.h:50
const std::vector< reco::CaloJet > & jets() const
Definition: EgHLTOffEvt.h:51
std::vector< OffPho > phos_
Definition: EgHLTOffEvt.h:34
const std::vector< OffPho > & phos() const
Definition: EgHLTOffEvt.h:48
std::vector< OffPho > & phos()
Definition: EgHLTOffEvt.h:49
T const * product() const
Definition: Handle.h:74
void setJets(edm::Handle< std::vector< reco::CaloJet > > jets)
Definition: EgHLTOffEvt.h:56
const std::vector< OffEle > & eles() const
Definition: EgHLTOffEvt.h:46
edm::Handle< std::vector< reco::CaloJet > > jets_
Definition: EgHLTOffEvt.h:31
std::bitset< maxNrBits_ > TrigBitSet