CMS 3D CMS Logo

HLTBitAnalyzer.h
Go to the documentation of this file.
1 #include <iostream>
2 
18 
19 #include "EventHeader.h"
20 #include "HLTInfo.h"
21 #include "HLTMCtruth.h"
22 #include "RECOVertex.h"
23 
36 public:
37  explicit HLTBitAnalyzer(edm::ParameterSet const& conf);
38  void analyze(edm::Event const& e, edm::EventSetup const& iSetup) override;
39  void endJob() override;
40  void beginRun(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 };
HLTBitAnalyzer::_EtaMin
double _EtaMin
Definition: HLTBitAnalyzer.h:104
HLTBitAnalyzer::simverticesToken_
edm::EDGetTokenT< std::vector< SimVertex > > simverticesToken_
Definition: HLTBitAnalyzer.h:96
HLTBitAnalyzer::simhits_
edm::InputTag simhits_
Definition: HLTBitAnalyzer.h:75
HLTBitAnalyzer::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: HLTBitAnalyzer.cc:242
Handle.h
PileupSummaryInfo.h
HLTBitAnalyzer::VertexTagOffline0Token_
edm::EDGetTokenT< reco::VertexCollection > VertexTagOffline0Token_
Definition: HLTBitAnalyzer.h:98
L1TUtmTriggerMenuRcd.h
HLTBitAnalyzer
Definition: HLTBitAnalyzer.h:35
ESHandle.h
RECOVertex
Definition: RECOVertex.h:19
HLTBitAnalyzer::vrt_analysisOffline0_
RECOVertex vrt_analysisOffline0_
Definition: HLTBitAnalyzer.h:56
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< edm::TriggerResults >
GlobalExtBlk.h
HLTBitAnalyzer::hltresults_
edm::InputTag hltresults_
Definition: HLTBitAnalyzer.h:58
HLTBitAnalyzer::l1results_
edm::InputTag l1results_
Definition: HLTBitAnalyzer.h:73
HLTBitAnalyzer::weight
double weight
Definition: HLTBitAnalyzer.h:109
HLTBitAnalyzer::errMax
static int errMax()
Definition: HLTBitAnalyzer.h:101
HLTBitAnalyzer::HLTBitAnalyzer
HLTBitAnalyzer(edm::ParameterSet const &conf)
Definition: HLTBitAnalyzer.cc:32
EventHeader
Definition: EventHeader.h:18
HLTBitAnalyzer::m_file
TFile * m_file
Definition: HLTBitAnalyzer.h:105
EDAnalyzer.h
L1TUtmAlgorithm.h
HLTBitAnalyzer::mctruthToken_
edm::EDGetTokenT< reco::CandidateView > mctruthToken_
Definition: HLTBitAnalyzer.h:94
HLTBitAnalyzer::genEventInfoToken_
edm::EDGetTokenT< GenEventInfoProduct > genEventInfoToken_
Definition: HLTBitAnalyzer.h:80
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
HLTBitAnalyzer::_EtaMax
double _EtaMax
Definition: HLTBitAnalyzer.h:104
HLTBitAnalyzer::_isData
bool _isData
Definition: HLTBitAnalyzer.h:107
MakerMacros.h
HLTMCtruth.h
HLTBitAnalyzer::analyze
void analyze(edm::Event const &e, edm::EventSetup const &iSetup) override
Definition: HLTBitAnalyzer.cc:130
RECOVertex.h
HLTBitAnalyzer::l1resultsToken_
edm::EDGetTokenT< GlobalAlgBlkBxCollection > l1resultsToken_
Definition: HLTBitAnalyzer.h:82
HLTBitAnalyzer::mct_analysis_
HLTMCtruth mct_analysis_
Definition: HLTBitAnalyzer.h:55
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1TUtmTriggerMenu.h
HLTBitAnalyzer::pileupInfoToken_
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileupInfoToken_
Definition: HLTBitAnalyzer.h:97
edm::ParameterSet
Definition: ParameterSet.h:47
GenEventInfoProduct.h
Event.h
HLTBitAnalyzer::endJob
void endJob() override
Definition: HLTBitAnalyzer.cc:245
HLTInfo
Definition: HLTInfo.h:52
EventHeader.h
HLTBitAnalyzer::mctruth_
edm::InputTag mctruth_
Definition: HLTBitAnalyzer.h:75
HLTBitAnalyzer::HltTree
TTree * HltTree
Definition: HLTBitAnalyzer.h:45
GlobalAlgBlk.h
HLTBitAnalyzer::pileupInfo_
edm::InputTag pileupInfo_
Definition: HLTBitAnalyzer.h:77
edm::EventSetup
Definition: EventSetup.h:57
HLTMCtruth
Definition: HLTMCtruth.h:30
Registry.h
HLTBitAnalyzer::simtracksToken_
edm::EDGetTokenT< std::vector< SimTrack > > simtracksToken_
Definition: HLTBitAnalyzer.h:95
HLTInfo.h
HLTBitAnalyzer::errCnt
int errCnt
Definition: HLTBitAnalyzer.h:100
HLTBitAnalyzer::evt_header_
EventHeader evt_header_
Default analyses.
Definition: HLTBitAnalyzer.h:52
HLTBitAnalyzer::genEventInfo_
edm::InputTag genEventInfo_
Definition: HLTBitAnalyzer.h:58
Frameworkfwd.h
HLTBitAnalyzer::hlt_analysis_
HLTInfo hlt_analysis_
Definition: HLTBitAnalyzer.h:53
EventSetup.h
HLTBitAnalyzer::_HistName
std::string _HistName
Definition: HLTBitAnalyzer.h:103
HLTBitAnalyzer::_UseTFileService
bool _UseTFileService
Definition: HLTBitAnalyzer.h:106
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
HLTBitAnalyzer::ptHat
double ptHat
Definition: HLTBitAnalyzer.h:109
HLTBitAnalyzer::hltresultsToken_
edm::EDGetTokenT< edm::TriggerResults > hltresultsToken_
Definition: HLTBitAnalyzer.h:79
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
HLTBitAnalyzer::VertexTagOffline0_
edm::InputTag VertexTagOffline0_
Definition: HLTBitAnalyzer.h:76