CMS 3D CMS Logo

HLTBitAnalyzer.h
Go to the documentation of this file.
1 #include <iostream>
2 
5 
12 
14 
16 
17 // L1 results
23 /*
24 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutRecord.h"
25 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutSetupFwd.h"
26 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerObjectMapRecord.h"
27 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerObjectMapFwd.h"
28 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerObjectMap.h"
29 */
34 
47 public:
48  explicit HLTBitAnalyzer(edm::ParameterSet const& conf);
49  void analyze(edm::Event const& e, edm::EventSetup const& iSetup) override;
50  void endJob() override;
51  void beginRun(edm::Run const&, edm::EventSetup const&) override;
52 
53  // static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
54 
55  // Analysis tree to be filled
56  TTree *HltTree;
57 
58 private:
59  // variables persistent across events should be declared here.
60  //
62 
65 
68 
70  /*
71  std::string l1extramc_, l1extramu_;
72  edm::InputTag m_l1extramu;
73  edm::InputTag m_l1extraemi;
74  edm::InputTag m_l1extraemn;
75  edm::InputTag m_l1extrajetc;
76  edm::InputTag m_l1extrajetf;
77  edm::InputTag m_l1extrajet;
78  edm::InputTag m_l1extrataujet;
79  edm::InputTag m_l1extramet;
80  edm::InputTag m_l1extramht;
81  edm::InputTag gtReadoutRecord_,gtObjectMap_;
82  edm::InputTag gctBitCounts_,gctRingSums_;
83  */
85 
89 
92 
94  /*
95  edm::EDGetTokenT<l1extra::L1MuonParticleCollection> l1extramuToken_;
96  edm::EDGetTokenT<l1extra::L1EmParticleCollection> l1extraemiToken_, l1extraemnToken_;
97  edm::EDGetTokenT<l1extra::L1JetParticleCollection> l1extrajetcToken_, l1extrajetfToken_, l1extrajetToken_, l1extrataujetToken_;
98  edm::EDGetTokenT<l1extra::L1EtMissParticleCollection> l1extrametToken_,l1extramhtToken_;
99 
100  edm::EDGetTokenT<L1GlobalTriggerReadoutRecord> gtReadoutRecordToken_;
101  edm::EDGetTokenT<L1GlobalTriggerObjectMapRecord> gtObjectMapToken_;
102  edm::EDGetTokenT< L1GctHFBitCountsCollection > gctBitCountsToken_;
103  edm::EDGetTokenT< L1GctHFRingEtSumsCollection > gctRingSumsToken_;
104  */
110 
111  int errCnt;
112  static int errMax() { return 5; }
113 
114  std::string _HistName; // Name of histogram file
115  double _EtaMin,_EtaMax;
116  TFile* m_file; // pointer to Histogram file
118  bool _isData;
119 
120  double ptHat, weight;
121 
122 };
edm::InputTag VertexTagOffline0_
edm::InputTag hltresults_
void analyze(edm::Event const &e, edm::EventSetup const &iSetup) override
edm::InputTag l1results_
void endJob() override
RECOVertex vrt_analysisOffline0_
edm::EDGetTokenT< GlobalAlgBlkBxCollection > l1resultsToken_
edm::InputTag genEventInfo_
EventHeader evt_header_
Default analyses.
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileupInfoToken_
static int errMax()
edm::EDGetTokenT< GenEventInfoProduct > genEventInfoToken_
std::string _HistName
HLTMCtruth mct_analysis_
edm::EDGetTokenT< std::vector< SimTrack > > simtracksToken_
edm::InputTag mctruth_
edm::EDGetTokenT< reco::VertexCollection > VertexTagOffline0Token_
edm::InputTag simhits_
edm::EDGetTokenT< edm::TriggerResults > hltresultsToken_
edm::InputTag pileupInfo_
HLTInfo hlt_analysis_
edm::EDGetTokenT< reco::CandidateView > mctruthToken_
HLTBitAnalyzer(edm::ParameterSet const &conf)
void beginRun(edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< std::vector< SimVertex > > simverticesToken_
Definition: Run.h:43