CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Static Private Member Functions | Private Attributes
HLTBitAnalyzer Class Reference

#include <HLTBitAnalyzer.h>

Inheritance diagram for HLTBitAnalyzer:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (edm::Event const &e, edm::EventSetup const &iSetup) override
 
void beginRun (edm::Run const &, edm::EventSetup const &) override
 
void endJob () override
 
 HLTBitAnalyzer (edm::ParameterSet const &conf)
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Public Attributes

TTree * HltTree
 

Static Private Member Functions

static int errMax ()
 

Private Attributes

double _EtaMax
 
double _EtaMin
 
std::string _HistName
 
bool _isData
 
bool _UseTFileService
 
int errCnt
 
EventHeader evt_header_
 Default analyses. More...
 
edm::InputTag genEventInfo_
 
edm::EDGetTokenT< GenEventInfoProductgenEventInfoToken_
 
HLTInfo hlt_analysis_
 
edm::InputTag hltresults_
 
edm::EDGetTokenT< edm::TriggerResultshltresultsToken_
 
edm::InputTag l1results_
 
edm::EDGetTokenT< GlobalAlgBlkBxCollectionl1resultsToken_
 
TFile * m_file
 
HLTMCtruth mct_analysis_
 
edm::InputTag mctruth_
 
edm::EDGetTokenT< reco::CandidateViewmctruthToken_
 
edm::InputTag pileupInfo_
 
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileupInfoToken_
 
double ptHat
 
edm::InputTag simhits_
 
edm::EDGetTokenT< std::vector< SimTrack > > simtracksToken_
 
edm::EDGetTokenT< std::vector< SimVertex > > simverticesToken_
 
edm::InputTag VertexTagOffline0_
 
edm::EDGetTokenT< reco::VertexCollectionVertexTagOffline0Token_
 
RECOVertex vrt_analysisOffline0_
 
double weight
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

$Date: November 2006 $Revision:

Author
P. Bargassa - Rice U.

$Date: April 2016 $Revision:

Author
G. Karapostoli - ULB

Definition at line 34 of file HLTBitAnalyzer.h.

Constructor & Destructor Documentation

◆ HLTBitAnalyzer()

HLTBitAnalyzer::HLTBitAnalyzer ( edm::ParameterSet const &  conf)
explicit

Definition at line 32 of file HLTBitAnalyzer.cc.

32  : hlt_analysis_(conf, consumesCollector(), *this) {
33  // If your module takes parameters, here is where you would define
34  // their names and types, and access them to initialize internal
35  // variables. Example as follows:
36  std::cout << " Beginning HLTBitAnalyzer Analysis " << std::endl;
37 
38  /*
39  l1extramu_ = conf.getParameter<std::string> ("l1extramu");
40  m_l1extramu = edm::InputTag(l1extramu_, "");
41 
42  // read the L1Extra collection name, and add the instance names as needed
43  l1extramc_ = conf.getParameter<std::string> ("l1extramc");
44  m_l1extraemi = edm::InputTag(l1extramc_, "Isolated");
45  m_l1extraemn = edm::InputTag(l1extramc_, "NonIsolated");
46  m_l1extrajetc = edm::InputTag(l1extramc_, "Central");
47  m_l1extrajetf = edm::InputTag(l1extramc_, "Forward");
48  m_l1extrajet = edm::InputTag("gctInternJetProducer","Internal","ANALYSIS");
49  m_l1extrataujet = edm::InputTag(l1extramc_, "Tau");
50  m_l1extramet = edm::InputTag(l1extramc_, "MET");
51  m_l1extramht = edm::InputTag(l1extramc_, "MHT");
52  */
53 
54  mctruth_ = conf.getParameter<edm::InputTag>("mctruth");
55  genEventInfo_ = conf.getParameter<edm::InputTag>("genEventInfo");
56  VertexTagOffline0_ = conf.getParameter<edm::InputTag>("OfflinePrimaryVertices0");
57  simhits_ = conf.getParameter<edm::InputTag>("simhits");
58 
59  hltresults_ = conf.getParameter<edm::InputTag>("hltresults");
60  l1results_ = conf.getParameter<edm::InputTag>("l1results");
61  // gtReadoutRecord_ = conf.getParameter<edm::InputTag> ("l1GtReadoutRecord");
62  /*
63  gtObjectMap_ = conf.getParameter<edm::InputTag> ("l1GtObjectMapRecord");
64 
65  gctBitCounts_ = edm::InputTag( conf.getParameter<edm::InputTag>("l1GctHFBitCounts").label(), "" );
66  gctRingSums_ = edm::InputTag( conf.getParameter<edm::InputTag>("l1GctHFRingSums").label(), "" );
67  */
68  pileupInfo_ = edm::InputTag("addPileupInfo");
69 
70  hltresultsToken_ = consumes<edm::TriggerResults>(hltresults_);
71  genEventInfoToken_ = consumes<GenEventInfoProduct>(genEventInfo_);
72  /*
73  l1extramuToken_ = consumes<l1extra::L1MuonParticleCollection>(m_l1extramu);
74  l1extraemiToken_ = consumes<l1extra::L1EmParticleCollection>(m_l1extraemi);
75  l1extraemnToken_ = consumes<l1extra::L1EmParticleCollection>(m_l1extraemn);
76 
77  l1extrajetcToken_ = consumes<l1extra::L1JetParticleCollection>(m_l1extrajetc);
78  l1extrajetfToken_ = consumes<l1extra::L1JetParticleCollection>(m_l1extrajetf);
79  l1extrajetToken_ = consumes<l1extra::L1JetParticleCollection>(m_l1extrajet);
80  l1extrataujetToken_ = consumes<l1extra::L1JetParticleCollection>(m_l1extrataujet);
81  l1extrametToken_ = consumes<l1extra::L1EtMissParticleCollection>(m_l1extramet);
82  l1extramhtToken_ = consumes<l1extra::L1EtMissParticleCollection>(m_l1extramht);
83  */
84 
85  l1resultsToken_ = consumes<GlobalAlgBlkBxCollection>(l1results_);
86  // gtReadoutRecordToken_ = consumes<L1GlobalTriggerReadoutRecord>(gtReadoutRecord_);
87  /*
88  gtObjectMapToken_ = consumes<L1GlobalTriggerObjectMapRecord>(gtObjectMap_);
89  gctBitCountsToken_ = consumes<L1GctHFBitCountsCollection>(gctBitCounts_);
90  gctRingSumsToken_ = consumes<L1GctHFRingEtSumsCollection>(gctRingSums_);
91  */
92 
93  mctruthToken_ = consumes<reco::CandidateView>(mctruth_);
94  VertexTagOffline0Token_ = consumes<reco::VertexCollection>(VertexTagOffline0_);
95  simtracksToken_ = consumes<std::vector<SimTrack> >(simhits_);
96  simverticesToken_ = consumes<std::vector<SimVertex> >(simhits_);
97  pileupInfoToken_ = consumes<std::vector<PileupSummaryInfo> >(pileupInfo_);
98 
99  _UseTFileService = conf.getUntrackedParameter<bool>("UseTFileService", false);
100 
101  m_file = nullptr; // set to null
102  errCnt = 0;
103 
104  // read run parameters with a default value
105  edm::ParameterSet runParameters = conf.getParameter<edm::ParameterSet>("RunParameters");
106  _HistName = runParameters.getUntrackedParameter<std::string>("HistogramFile", "test.root");
107  _isData = runParameters.getUntrackedParameter<bool>("isData", true);
108 
109  // open the tree file and initialize the tree
110  if (_UseTFileService) {
112  HltTree = fs->make<TTree>("HltTree", "");
113  } else {
114  m_file = new TFile(_HistName.c_str(), "RECREATE");
115  if (m_file)
116  m_file->cd();
117  HltTree = new TTree("HltTree", "");
118  }
119 
120  // Setup the different analysis
121  hlt_analysis_.setup(conf, HltTree);
122  if (!_isData) {
123  mct_analysis_.setup(conf, HltTree);
124  }
125  vrt_analysisOffline0_.setup(conf, HltTree, "Offline0");
127 }

References _HistName, _isData, _UseTFileService, edm::EDConsumerBase::consumesCollector(), gather_cfg::cout, errCnt, evt_header_, genEventInfo_, genEventInfoToken_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hlt_analysis_, hltresults_, hltresultsToken_, HltTree, HLT_FULL_cff::InputTag, l1results_, l1resultsToken_, m_file, TFileService::make(), mct_analysis_, mctruth_, mctruthToken_, pileupInfo_, pileupInfoToken_, environment_file_cff::runParameters, EventHeader::setup(), RECOVertex::setup(), HLTMCtruth::setup(), HLTInfo::setup(), simhits_, simtracksToken_, simverticesToken_, AlCaHLTBitMon_QueryRunRegistry::string, VertexTagOffline0_, VertexTagOffline0Token_, and vrt_analysisOffline0_.

Member Function Documentation

◆ analyze()

void HLTBitAnalyzer::analyze ( edm::Event const &  e,
edm::EventSetup const &  iSetup 
)
overridevirtual

Implements edm::EDAnalyzer.

Definition at line 130 of file HLTBitAnalyzer.cc.

130  {
133  /*
134  edm::Handle<l1extra::L1EmParticleCollection> l1extemi, l1extemn;
135  edm::Handle<l1extra::L1MuonParticleCollection> l1extmu;
136  edm::Handle<l1extra::L1JetParticleCollection> l1extjetc, l1extjetf, l1extjet, l1exttaujet;
137  edm::Handle<l1extra::L1EtMissParticleCollection> l1extmet,l1extmht;
138  edm::Handle<L1GlobalTriggerReadoutRecord> l1GtRR;
139  edm::Handle<L1GlobalTriggerObjectMapRecord> l1GtOMRec;
140  edm::Handle<L1GlobalTriggerObjectMap> l1GtOM;
141  edm::Handle< L1GctHFBitCountsCollection > gctBitCounts ;
142  edm::Handle< L1GctHFRingEtSumsCollection > gctRingSums ;
143  */
148  edm::Handle<reco::VertexCollection> recoVertexsOffline0;
150 
151  // extract the collections from the event, check their validity and log which are missing
152  std::vector<MissingCollectionInfo> missing;
153 
155  /*
156  getCollection( iEvent, missing, l1extemi, m_l1extraemi, l1extraemiToken_, kL1extemi );
157  getCollection( iEvent, missing, l1extemn, m_l1extraemn, l1extraemnToken_, kL1extemn );
158  getCollection( iEvent, missing, l1extmu, m_l1extramu, l1extramuToken_, kL1extmu );
159  getCollection( iEvent, missing, l1extjetc, m_l1extrajetc, l1extrajetcToken_, kL1extjetc );
160  getCollection( iEvent, missing, l1extjetf, m_l1extrajetf, l1extrajetfToken_, kL1extjetf );
161  getCollection( iEvent, missing, l1extjet, m_l1extrajet, l1extrajetToken_, kL1extjet );
162  getCollection( iEvent, missing, l1exttaujet, m_l1extrataujet, l1extrataujetToken_, kL1exttaujet );
163  getCollection( iEvent, missing, l1extmet, m_l1extramet, l1extrametToken_, kL1extmet );
164  getCollection( iEvent, missing, l1extmht, m_l1extramht, l1extramhtToken_, kL1extmht );
165  */
167  // getCollection( iEvent, missing, l1GtRR, gtReadoutRecord_, gtReadoutRecordToken_, kL1GtRR );
168  /*
169  getCollection( iEvent, missing, l1GtOMRec, gtObjectMap_, gtObjectMapToken_, kL1GtOMRec );
170  getCollection( iEvent, missing, gctBitCounts, gctBitCounts_, gctBitCountsToken_, kL1GctBitCounts );
171  getCollection( iEvent, missing, gctRingSums, gctRingSums_, gctRingSumsToken_, kL1GctRingSums );
172  */
178 
181 
182  if (!_isData) {
183  ptHat = -1.;
184  if (genEventInfo.isValid()) {
185  ptHat = genEventInfo->qScale();
186  }
187 
188  weight = genEventInfo->weight();
189  }
190  // print missing collections
191  if (not missing.empty() and (errCnt < errMax())) {
192  errCnt++;
193  std::stringstream out;
194  out << "OpenHLT analyser - missing collections:";
195  for (auto const& entry : missing)
196  out << "\n\t" << entry.first << ": " << entry.second->encode();
197  edm::LogPrint("OpenHLT") << out.str() << std::endl;
198  if (errCnt == errMax())
199  edm::LogWarning("OpenHLT") << "Maximum error count reached -- No more messages will be printed.";
200  }
201 
202  // run the analysis, passing required event fragments
204  /*
205  l1extemi,
206  l1extemn,
207  l1extmu,
208  l1extjetc,
209  l1extjetf,
210  l1extjet,
211  l1exttaujet,
212  l1extmet,
213  l1extmht,
214  */
215  l1results,
216  // l1GtRR,
217  /*
218  gctBitCounts,
219  gctRingSums,
220  */
221  iSetup,
222  iEvent,
223  HltTree);
224 
226 
227  if (!_isData) {
229  }
230  vrt_analysisOffline0_.analyze(recoVertexsOffline0, HltTree);
231 
232  // std::cout << " Ending Event Analysis" << std::endl;
233  // After analysis, fill the variables tree
234  if (m_file) {
235  m_file->cd();
236  }
237 
238  HltTree->Fill();
239 }

References _isData, EventHeader::analyze(), RECOVertex::analyze(), HLTMCtruth::analyze(), HLTInfo::analyze(), mps_splice::entry, errCnt, errMax(), evt_header_, genParticles2HepMC_cfi::genEventInfo, genEventInfo_, genEventInfoToken_, getCollection(), hlt_analysis_, HLTBitAnalyser_cfi::hltresults, hltresults_, hltresultsToken_, HltTree, iEvent, kGenEventInfo, kHltresults, kL1GtRR, kMctruth, kPileupInfo, kRecoVerticesOffline0, kSimhit, HLTBitAnalyser_cfi::l1results, l1results_, l1resultsToken_, m_file, mct_analysis_, HLTBitAnalyser_cfi::mctruth, mctruth_, mctruthToken_, combine::missing, MillePedeFileConverter_cfg::out, pileupInfo_, pileupInfoToken_, ptHat, simhits_, TrackCandidateProducer_cfi::simTracks, simtracksToken_, HGCalValidator_cfi::simVertices, simverticesToken_, VertexTagOffline0_, VertexTagOffline0Token_, and vrt_analysisOffline0_.

◆ beginRun()

void HLTBitAnalyzer::beginRun ( edm::Run const &  run,
edm::EventSetup const &  es 
)
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 242 of file HLTBitAnalyzer.cc.

242 { hlt_analysis_.beginRun(run, es); }

References HLTInfo::beginRun(), hlt_analysis_, and writedatasetfile::run.

◆ endJob()

void HLTBitAnalyzer::endJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 245 of file HLTBitAnalyzer.cc.

245  {
246  if (!_UseTFileService) {
247  if (m_file)
248  m_file->cd();
249 
250  HltTree->Write();
251  delete HltTree;
252  HltTree = nullptr;
253 
254  if (m_file) { // if there was a tree file...
255  m_file->Write(); // write out the branches
256  delete m_file; // close and delete the file
257  m_file = nullptr; // set to zero to clean up
258  }
259  }
260 }

References _UseTFileService, HltTree, and m_file.

◆ errMax()

static int HLTBitAnalyzer::errMax ( )
inlinestaticprivate

Definition at line 100 of file HLTBitAnalyzer.h.

100 { return 5; }

Referenced by analyze().

Member Data Documentation

◆ _EtaMax

double HLTBitAnalyzer::_EtaMax
private

Definition at line 103 of file HLTBitAnalyzer.h.

◆ _EtaMin

double HLTBitAnalyzer::_EtaMin
private

Definition at line 103 of file HLTBitAnalyzer.h.

◆ _HistName

std::string HLTBitAnalyzer::_HistName
private

Definition at line 102 of file HLTBitAnalyzer.h.

Referenced by HLTBitAnalyzer().

◆ _isData

bool HLTBitAnalyzer::_isData
private

Definition at line 106 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ _UseTFileService

bool HLTBitAnalyzer::_UseTFileService
private

Definition at line 105 of file HLTBitAnalyzer.h.

Referenced by endJob(), and HLTBitAnalyzer().

◆ errCnt

int HLTBitAnalyzer::errCnt
private

Definition at line 99 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ evt_header_

EventHeader HLTBitAnalyzer::evt_header_
private

Default analyses.

Definition at line 51 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ genEventInfo_

edm::InputTag HLTBitAnalyzer::genEventInfo_
private

Definition at line 57 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ genEventInfoToken_

edm::EDGetTokenT<GenEventInfoProduct> HLTBitAnalyzer::genEventInfoToken_
private

Definition at line 79 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ hlt_analysis_

HLTInfo HLTBitAnalyzer::hlt_analysis_
private

Definition at line 52 of file HLTBitAnalyzer.h.

Referenced by analyze(), beginRun(), and HLTBitAnalyzer().

◆ hltresults_

edm::InputTag HLTBitAnalyzer::hltresults_
private

Definition at line 57 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ hltresultsToken_

edm::EDGetTokenT<edm::TriggerResults> HLTBitAnalyzer::hltresultsToken_
private

Definition at line 78 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ HltTree

TTree* HLTBitAnalyzer::HltTree

Definition at line 44 of file HLTBitAnalyzer.h.

Referenced by analyze(), endJob(), and HLTBitAnalyzer().

◆ l1results_

edm::InputTag HLTBitAnalyzer::l1results_
private

Definition at line 72 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ l1resultsToken_

edm::EDGetTokenT<GlobalAlgBlkBxCollection> HLTBitAnalyzer::l1resultsToken_
private

Definition at line 81 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ m_file

TFile* HLTBitAnalyzer::m_file
private

Definition at line 104 of file HLTBitAnalyzer.h.

Referenced by analyze(), endJob(), and HLTBitAnalyzer().

◆ mct_analysis_

HLTMCtruth HLTBitAnalyzer::mct_analysis_
private

Definition at line 54 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ mctruth_

edm::InputTag HLTBitAnalyzer::mctruth_
private

Definition at line 74 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ mctruthToken_

edm::EDGetTokenT<reco::CandidateView> HLTBitAnalyzer::mctruthToken_
private

Definition at line 93 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ pileupInfo_

edm::InputTag HLTBitAnalyzer::pileupInfo_
private

Definition at line 76 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ pileupInfoToken_

edm::EDGetTokenT<std::vector<PileupSummaryInfo> > HLTBitAnalyzer::pileupInfoToken_
private

Definition at line 96 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ ptHat

double HLTBitAnalyzer::ptHat
private

Definition at line 108 of file HLTBitAnalyzer.h.

Referenced by analyze().

◆ simhits_

edm::InputTag HLTBitAnalyzer::simhits_
private

Definition at line 74 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ simtracksToken_

edm::EDGetTokenT<std::vector<SimTrack> > HLTBitAnalyzer::simtracksToken_
private

Definition at line 94 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ simverticesToken_

edm::EDGetTokenT<std::vector<SimVertex> > HLTBitAnalyzer::simverticesToken_
private

Definition at line 95 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ VertexTagOffline0_

edm::InputTag HLTBitAnalyzer::VertexTagOffline0_
private

Definition at line 75 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ VertexTagOffline0Token_

edm::EDGetTokenT<reco::VertexCollection> HLTBitAnalyzer::VertexTagOffline0Token_
private

Definition at line 97 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ vrt_analysisOffline0_

RECOVertex HLTBitAnalyzer::vrt_analysisOffline0_
private

Definition at line 55 of file HLTBitAnalyzer.h.

Referenced by analyze(), and HLTBitAnalyzer().

◆ weight

double HLTBitAnalyzer::weight
private
HLTBitAnalyzer::simverticesToken_
edm::EDGetTokenT< std::vector< SimVertex > > simverticesToken_
Definition: HLTBitAnalyzer.h:95
HLTBitAnalyzer::simhits_
edm::InputTag simhits_
Definition: HLTBitAnalyzer.h:74
HLTBitAnalyzer::VertexTagOffline0Token_
edm::EDGetTokenT< reco::VertexCollection > VertexTagOffline0Token_
Definition: HLTBitAnalyzer.h:97
HLTBitAnalyser_cfi.hltresults
hltresults
Definition: HLTBitAnalyser_cfi.py:13
HLTBitAnalyzer::vrt_analysisOffline0_
RECOVertex vrt_analysisOffline0_
Definition: HLTBitAnalyzer.h:55
mps_splice.entry
entry
Definition: mps_splice.py:68
HLTBitAnalyser_cfi.mctruth
mctruth
GEN objects.
Definition: HLTBitAnalyser_cfi.py:17
HLTBitAnalyzer::hltresults_
edm::InputTag hltresults_
Definition: HLTBitAnalyzer.h:57
HLTBitAnalyzer::l1results_
edm::InputTag l1results_
Definition: HLTBitAnalyzer.h:72
gather_cfg.cout
cout
Definition: gather_cfg.py:144
edm::LogPrint
Log< level::Warning, true > LogPrint
Definition: MessageLogger.h:130
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89301
EventHeader::analyze
void analyze(edm::Event const &iEvent, TTree *tree)
Definition: EventHeader.cc:36
HLTBitAnalyzer::errMax
static int errMax()
Definition: HLTBitAnalyzer.h:100
TrackCandidateProducer_cfi.simTracks
simTracks
Definition: TrackCandidateProducer_cfi.py:15
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:47
HLTBitAnalyzer::m_file
TFile * m_file
Definition: HLTBitAnalyzer.h:104
EventHeader::setup
void setup(edm::ConsumesCollector &&iC, TTree *tree)
Definition: EventHeader.cc:17
HLTBitAnalyzer::mctruthToken_
edm::EDGetTokenT< reco::CandidateView > mctruthToken_
Definition: HLTBitAnalyzer.h:93
HLTBitAnalyzer::genEventInfoToken_
edm::EDGetTokenT< GenEventInfoProduct > genEventInfoToken_
Definition: HLTBitAnalyzer.h:79
edm::Handle< edm::TriggerResults >
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
kHltresults
const char * kHltresults
Definition: HLTMessages.cc:34
HLTInfo::analyze
void analyze(const edm::Handle< edm::TriggerResults > &hltresults, const edm::Handle< GlobalAlgBlkBxCollection > &l1results, edm::EventSetup const &eventSetup, edm::Event const &iEvent, TTree *tree)
Definition: HLTInfo.cc:84
HLTBitAnalyzer::_isData
bool _isData
Definition: HLTBitAnalyzer.h:106
HLTBitAnalyzer::l1resultsToken_
edm::EDGetTokenT< GlobalAlgBlkBxCollection > l1resultsToken_
Definition: HLTBitAnalyzer.h:81
kRecoVerticesOffline0
const char * kRecoVerticesOffline0
Definition: HLTMessages.cc:128
HLTInfo::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &)
Definition: HLTInfo.cc:29
HLTBitAnalyzer::mct_analysis_
HLTMCtruth mct_analysis_
Definition: HLTBitAnalyzer.h:54
HLTBitAnalyzer::pileupInfoToken_
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileupInfoToken_
Definition: HLTBitAnalyzer.h:96
edm::ParameterSet
Definition: ParameterSet.h:47
kMctruth
const char * kMctruth
Definition: HLTMessages.cc:48
RECOVertex::setup
void setup(const edm::ParameterSet &pSet, TTree *tree, std::string vertexType)
Definition: RECOVertex.cc:47
HLTBitAnalyzer::mctruth_
edm::InputTag mctruth_
Definition: HLTBitAnalyzer.h:74
HLTBitAnalyzer::HltTree
TTree * HltTree
Definition: HLTBitAnalyzer.h:44
edm::Service< TFileService >
iEvent
int iEvent
Definition: GenABIO.cc:224
HLTBitAnalyzer::pileupInfo_
edm::InputTag pileupInfo_
Definition: HLTBitAnalyzer.h:76
HLTMCtruth::setup
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTMCtruth.cc:23
HLTInfo::setup
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTInfo.cc:47
TFileService::make
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
environment_file_cff.runParameters
runParameters
Definition: environment_file_cff.py:13
HLTBitAnalyser_cfi.l1results
l1results
Definition: HLTBitAnalyser_cfi.py:8
HLTBitAnalyzer::simtracksToken_
edm::EDGetTokenT< std::vector< SimTrack > > simtracksToken_
Definition: HLTBitAnalyzer.h:94
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
writedatasetfile.run
run
Definition: writedatasetfile.py:27
genParticles2HepMC_cfi.genEventInfo
genEventInfo
Definition: genParticles2HepMC_cfi.py:6
HLTMCtruth::analyze
void analyze(const edm::Handle< reco::CandidateView > &mctruth, const double &pthat, const double &weight, const edm::Handle< std::vector< SimTrack > > &simTracks, const edm::Handle< std::vector< SimVertex > > &simVertices, const edm::Handle< std::vector< PileupSummaryInfo > > &PupInfo, TTree *tree)
Definition: HLTMCtruth.cc:74
getCollection
static bool getCollection(const edm::Event &event, std::vector< MissingCollectionInfo > &missing, edm::Handle< T > &handle, const edm::InputTag &name, const edm::EDGetTokenT< T > token, const char *description)
Definition: HLTBitAnalyzer.cc:14
HLTBitAnalyzer::hlt_analysis_
HLTInfo hlt_analysis_
Definition: HLTBitAnalyzer.h:52
RECOVertex::analyze
void analyze(edm::Handle< reco::VertexCollection > recoVertexs, TTree *tree)
Definition: RECOVertex.cc:86
kGenEventInfo
const char * kGenEventInfo
Definition: HLTMessages.cc:50
kL1GtRR
const char * kL1GtRR
Definition: HLTMessages.cc:44
kPileupInfo
const char * kPileupInfo
Definition: HLTMessages.cc:51
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
HGCalValidator_cfi.simVertices
simVertices
Definition: HGCalValidator_cfi.py:57
combine.missing
missing
Definition: combine.py:5
HLTBitAnalyzer::_HistName
std::string _HistName
Definition: HLTBitAnalyzer.h:102
HLTBitAnalyzer::_UseTFileService
bool _UseTFileService
Definition: HLTBitAnalyzer.h:105
kSimhit
const char * kSimhit
Definition: HLTMessages.cc:49
edm::InputTag
Definition: InputTag.h:15
weight
Definition: weight.py:1
HLTBitAnalyzer::ptHat
double ptHat
Definition: HLTBitAnalyzer.h:108
HLTBitAnalyzer::hltresultsToken_
edm::EDGetTokenT< edm::TriggerResults > hltresultsToken_
Definition: HLTBitAnalyzer.h:78
HLTBitAnalyzer::VertexTagOffline0_
edm::InputTag VertexTagOffline0_
Definition: HLTBitAnalyzer.h:75