CMS 3D CMS Logo

HLTBitAnalyzer.h
Go to the documentation of this file.
1 #include <iostream>
2 
17 
18 #include "EventHeader.h"
19 #include "HLTInfo.h"
20 #include "HLTMCtruth.h"
21 #include "RECOVertex.h"
22 
34 class HLTBitAnalyzer : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
35 public:
36  explicit HLTBitAnalyzer(edm::ParameterSet const& conf);
37  void analyze(edm::Event const& e, edm::EventSetup const& iSetup) override;
38  void endJob() override;
39  void beginRun(edm::Run const&, edm::EventSetup const&) override;
40  void endRun(edm::Run const&, edm::EventSetup const&) override {}
41 
42  // static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
43 
44  // Analysis tree to be filled
45  TTree* HltTree;
46 
47 private:
48  // variables persistent across events should be declared here.
49  //
51 
54 
57 
59  /*
60  std::string l1extramc_, l1extramu_;
61  edm::InputTag m_l1extramu;
62  edm::InputTag m_l1extraemi;
63  edm::InputTag m_l1extraemn;
64  edm::InputTag m_l1extrajetc;
65  edm::InputTag m_l1extrajetf;
66  edm::InputTag m_l1extrajet;
67  edm::InputTag m_l1extrataujet;
68  edm::InputTag m_l1extramet;
69  edm::InputTag m_l1extramht;
70  edm::InputTag gtReadoutRecord_,gtObjectMap_;
71  edm::InputTag gctBitCounts_,gctRingSums_;
72  */
74 
78 
81 
83  /*
84  edm::EDGetTokenT<l1extra::L1MuonParticleCollection> l1extramuToken_;
85  edm::EDGetTokenT<l1extra::L1EmParticleCollection> l1extraemiToken_, l1extraemnToken_;
86  edm::EDGetTokenT<l1extra::L1JetParticleCollection> l1extrajetcToken_, l1extrajetfToken_, l1extrajetToken_, l1extrataujetToken_;
87  edm::EDGetTokenT<l1extra::L1EtMissParticleCollection> l1extrametToken_,l1extramhtToken_;
88 
89  edm::EDGetTokenT<L1GlobalTriggerReadoutRecord> gtReadoutRecordToken_;
90  edm::EDGetTokenT<L1GlobalTriggerObjectMapRecord> gtObjectMapToken_;
91  edm::EDGetTokenT< L1GctHFBitCountsCollection > gctBitCountsToken_;
92  edm::EDGetTokenT< L1GctHFRingEtSumsCollection > gctRingSumsToken_;
93  */
99 
100  int errCnt;
101  static int errMax() { return 5; }
102 
103  std::string _HistName; // Name of histogram file
104  double _EtaMin, _EtaMax;
105  TFile* m_file; // pointer to Histogram file
107  bool _isData;
108 
109  double ptHat, weight;
110 };
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:45
void endRun(edm::Run const &, edm::EventSetup const &) override