CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 };
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