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 
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 
41  // static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
42 
43  // Analysis tree to be filled
44  TTree* HltTree;
45 
46 private:
47  // variables persistent across events should be declared here.
48  //
50 
53 
56 
58  /*
59  std::string l1extramc_, l1extramu_;
60  edm::InputTag m_l1extramu;
61  edm::InputTag m_l1extraemi;
62  edm::InputTag m_l1extraemn;
63  edm::InputTag m_l1extrajetc;
64  edm::InputTag m_l1extrajetf;
65  edm::InputTag m_l1extrajet;
66  edm::InputTag m_l1extrataujet;
67  edm::InputTag m_l1extramet;
68  edm::InputTag m_l1extramht;
69  edm::InputTag gtReadoutRecord_,gtObjectMap_;
70  edm::InputTag gctBitCounts_,gctRingSums_;
71  */
73 
77 
80 
82  /*
83  edm::EDGetTokenT<l1extra::L1MuonParticleCollection> l1extramuToken_;
84  edm::EDGetTokenT<l1extra::L1EmParticleCollection> l1extraemiToken_, l1extraemnToken_;
85  edm::EDGetTokenT<l1extra::L1JetParticleCollection> l1extrajetcToken_, l1extrajetfToken_, l1extrajetToken_, l1extrataujetToken_;
86  edm::EDGetTokenT<l1extra::L1EtMissParticleCollection> l1extrametToken_,l1extramhtToken_;
87 
88  edm::EDGetTokenT<L1GlobalTriggerReadoutRecord> gtReadoutRecordToken_;
89  edm::EDGetTokenT<L1GlobalTriggerObjectMapRecord> gtObjectMapToken_;
90  edm::EDGetTokenT< L1GctHFBitCountsCollection > gctBitCountsToken_;
91  edm::EDGetTokenT< L1GctHFRingEtSumsCollection > gctRingSumsToken_;
92  */
98 
99  int errCnt;
100  static int errMax() { return 5; }
101 
102  std::string _HistName; // Name of histogram file
103  double _EtaMin, _EtaMax;
104  TFile* m_file; // pointer to Histogram file
106  bool _isData;
107 
108  double ptHat, weight;
109 };
HLTBitAnalyzer::_EtaMin
double _EtaMin
Definition: HLTBitAnalyzer.h:103
HLTBitAnalyzer::simverticesToken_
edm::EDGetTokenT< std::vector< SimVertex > > simverticesToken_
Definition: HLTBitAnalyzer.h:95
HLTBitAnalyzer::simhits_
edm::InputTag simhits_
Definition: HLTBitAnalyzer.h:74
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:97
L1TUtmTriggerMenuRcd.h
HLTBitAnalyzer
Definition: HLTBitAnalyzer.h:34
RECOVertex
Definition: RECOVertex.h:19
HLTBitAnalyzer::vrt_analysisOffline0_
RECOVertex vrt_analysisOffline0_
Definition: HLTBitAnalyzer.h:55
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< edm::TriggerResults >
GlobalExtBlk.h
HLTBitAnalyzer::hltresults_
edm::InputTag hltresults_
Definition: HLTBitAnalyzer.h:57
HLTBitAnalyzer::l1results_
edm::InputTag l1results_
Definition: HLTBitAnalyzer.h:72
HLTBitAnalyzer::weight
double weight
Definition: HLTBitAnalyzer.h:108
HLTBitAnalyzer::errMax
static int errMax()
Definition: HLTBitAnalyzer.h:100
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:104
EDAnalyzer.h
L1TUtmAlgorithm.h
HLTBitAnalyzer::mctruthToken_
edm::EDGetTokenT< reco::CandidateView > mctruthToken_
Definition: HLTBitAnalyzer.h:93
HLTBitAnalyzer::genEventInfoToken_
edm::EDGetTokenT< GenEventInfoProduct > genEventInfoToken_
Definition: HLTBitAnalyzer.h:79
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
HLTBitAnalyzer::_EtaMax
double _EtaMax
Definition: HLTBitAnalyzer.h:103
HLTBitAnalyzer::_isData
bool _isData
Definition: HLTBitAnalyzer.h:106
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:81
HLTBitAnalyzer::mct_analysis_
HLTMCtruth mct_analysis_
Definition: HLTBitAnalyzer.h:54
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1TUtmTriggerMenu.h
HLTBitAnalyzer::pileupInfoToken_
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileupInfoToken_
Definition: HLTBitAnalyzer.h:96
edm::ParameterSet
Definition: ParameterSet.h:47
GenEventInfoProduct.h
Event.h
HLTBitAnalyzer::endJob
void endJob() override
Definition: HLTBitAnalyzer.cc:245
HLTInfo
Definition: HLTInfo.h:53
EventHeader.h
HLTBitAnalyzer::mctruth_
edm::InputTag mctruth_
Definition: HLTBitAnalyzer.h:74
HLTBitAnalyzer::HltTree
TTree * HltTree
Definition: HLTBitAnalyzer.h:44
GlobalAlgBlk.h
HLTBitAnalyzer::pileupInfo_
edm::InputTag pileupInfo_
Definition: HLTBitAnalyzer.h:76
edm::EventSetup
Definition: EventSetup.h:58
HLTMCtruth
Definition: HLTMCtruth.h:30
Registry.h
HLTBitAnalyzer::simtracksToken_
edm::EDGetTokenT< std::vector< SimTrack > > simtracksToken_
Definition: HLTBitAnalyzer.h:94
HLTInfo.h
HLTBitAnalyzer::errCnt
int errCnt
Definition: HLTBitAnalyzer.h:99
HLTBitAnalyzer::evt_header_
EventHeader evt_header_
Default analyses.
Definition: HLTBitAnalyzer.h:51
HLTBitAnalyzer::genEventInfo_
edm::InputTag genEventInfo_
Definition: HLTBitAnalyzer.h:57
Frameworkfwd.h
HLTBitAnalyzer::hlt_analysis_
HLTInfo hlt_analysis_
Definition: HLTBitAnalyzer.h:52
EventSetup.h
HLTBitAnalyzer::_HistName
std::string _HistName
Definition: HLTBitAnalyzer.h:102
HLTBitAnalyzer::_UseTFileService
bool _UseTFileService
Definition: HLTBitAnalyzer.h:105
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
HLTBitAnalyzer::ptHat
double ptHat
Definition: HLTBitAnalyzer.h:108
HLTBitAnalyzer::hltresultsToken_
edm::EDGetTokenT< edm::TriggerResults > hltresultsToken_
Definition: HLTBitAnalyzer.h:78
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
HLTBitAnalyzer::VertexTagOffline0_
edm::InputTag VertexTagOffline0_
Definition: HLTBitAnalyzer.h:75