CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PatTriggerAnalyzer.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_PatExamples_PatTriggerAnalyzer_h
2 #define PhysicsTools_PatExamples_PatTriggerAnalyzer_h
3 
4 #include <map>
5 #include <string>
6 
7 #include "TH1D.h"
8 #include "TH2D.h"
9 
17 
18 
20 
21  public:
23  explicit PatTriggerAnalyzer( const edm::ParameterSet & iConfig );
26 
27  private:
29  virtual void beginJob();
31  virtual void analyze( const edm::Event & iEvent, const edm::EventSetup & iSetup );
33  virtual void endJob();
34 
42  std::string muonMatch_;
44  unsigned minID_;
46  unsigned maxID_;
47 
49  std::map< std::string, TH1D* > histos1D_;
50  std::map< std::string, TH2D* > histos2D_;
51 
53  std::map< unsigned, unsigned > sumN_;
54  std::map< unsigned, double > sumPt_;
55 };
56 
57 #endif
virtual void beginJob()
everythin that needs to be done before the event loop
virtual void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup)
everythin that needs to be done during the event loop
~PatTriggerAnalyzer()
default destructor
virtual void endJob()
everythin that needs to be done after the event loop
int iEvent
Definition: GenABIO.cc:243
PatTriggerAnalyzer(const edm::ParameterSet &iConfig)
default constructor
std::map< std::string, TH1D * > histos1D_
histogram management
unsigned minID_
minimal id for meanPt plot
edm::InputTag triggerEvent_
input for patTriggerEvent
std::map< unsigned, double > sumPt_
edm::InputTag muons_
input for muons
edm::InputTag trigger_
input for patTrigger
std::map< std::string, TH2D * > histos2D_
std::map< unsigned, unsigned > sumN_
internals for meanPt histogram calculation
unsigned maxID_
maximal id for meanPt plot
std::string muonMatch_
input for trigger match objects