17 event.getByToken(token, handle);
20 missing.push_back( std::make_pair(description, & name) );
30 hlt_analysis_(conf, consumesCollector(), *this) {
35 std::cout <<
" Beginning HLTBitAnalyzer Analysis " << std::endl;
109 if(_UseTFileService){
113 m_file =
new TFile(_HistName.c_str(),
"RECREATE");
116 HltTree =
new TTree(
"HltTree",
"");
150 std::vector<MissingCollectionInfo> missing;
188 std::stringstream
out;
189 out <<
"OpenHLT analyser - missing collections:";
190 for(
auto const&
entry : missing)
191 out <<
"\n\t" <<
entry.first <<
": " <<
entry.second->encode();
194 edm::LogWarning(
"OpenHLT") <<
"Maximum error count reached -- No more messages will be printed.";
void analyze(const edm::Handle< edm::TriggerResults > &hltresults, const edm::Handle< GlobalAlgBlkBxCollection > &l1results, edm::EventSetup const &eventSetup, edm::Event const &iEvent, TTree *tree)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::InputTag VertexTagOffline0_
void setup(const edm::ParameterSet &pSet, TTree *tree)
edm::InputTag hltresults_
void analyze(edm::Event const &e, edm::EventSetup const &iSetup) override
T * make(const Args &...args) const
make new ROOT object
RECOVertex vrt_analysisOffline0_
edm::EDGetTokenT< GlobalAlgBlkBxCollection > l1resultsToken_
edm::InputTag genEventInfo_
#define DEFINE_FWK_MODULE(type)
void setup(const edm::ParameterSet &pSet, TTree *tree, std::string vertexType)
std::pair< const char *, const edm::InputTag * > MissingCollectionInfo
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
EventHeader evt_header_
Default analyses.
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > pileupInfoToken_
void analyze(edm::Handle< reco::VertexCollection > recoVertexs, TTree *tree)
void beginRun(const edm::Run &, const edm::EventSetup &)
edm::EDGetTokenT< GenEventInfoProduct > genEventInfoToken_
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)
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)
edm::EDGetTokenT< std::vector< SimTrack > > simtracksToken_
const char * kRecoVerticesOffline0
const char * kGenEventInfo
edm::EDGetTokenT< reco::VertexCollection > VertexTagOffline0Token_
edm::EDGetTokenT< edm::TriggerResults > hltresultsToken_
void setup(const edm::ParameterSet &pSet, TTree *tree)
edm::InputTag pileupInfo_
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_