5 #include <boost/foreach.hpp>
18 event.getByLabel(name, handle);
21 missing.push_back( std::make_pair(description, & name) );
33 std::cout <<
" Beginning HLTBitAnalyzer Analysis " << std::endl;
77 m_file =
new TFile(_HistName.c_str(),
"RECREATE");
80 HltTree =
new TTree(
"HltTree",
"");
112 std::vector<MissingCollectionInfo>
missing;
137 if (genEventInfo.
isValid()) {ptHat=genEventInfo->qScale();}
145 std::stringstream
out;
146 out <<
"OpenHLT analyser - missing collections:";
148 out <<
"\n\t" << entry.first <<
": " << entry.second->encode();
151 edm::LogWarning(
"OpenHLT") <<
"Maximum error count reached -- No more messages will be printed.";
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::InputTag gctRingSums_
edm::InputTag VertexTagOffline0_
const char * kL1exttaujet
edm::InputTag m_l1extrajet
edm::InputTag m_l1extraemn
void setup(const edm::ParameterSet &pSet, TTree *tree)
edm::InputTag m_l1extrataujet
edm::InputTag m_l1extraemi
edm::InputTag gctBitCounts_
void analyze(const edm::Handle< edm::TriggerResults > &hltresults, const edm::Handle< l1extra::L1EmParticleCollection > &l1extemi, const edm::Handle< l1extra::L1EmParticleCollection > &l1extemn, const edm::Handle< l1extra::L1MuonParticleCollection > &l1extmu, const edm::Handle< l1extra::L1JetParticleCollection > &l1extjetc, const edm::Handle< l1extra::L1JetParticleCollection > &l1extjetf, const edm::Handle< l1extra::L1JetParticleCollection > &l1extjet, const edm::Handle< l1extra::L1JetParticleCollection > &l1exttaujet, const edm::Handle< l1extra::L1EtMissParticleCollection > &l1extmet, const edm::Handle< l1extra::L1EtMissParticleCollection > &l1extmht, const edm::Handle< L1GlobalTriggerReadoutRecord > &l1GTRR, const edm::Handle< L1GctHFBitCountsCollection > &gctBitCounts, const edm::Handle< L1GctHFRingEtSumsCollection > &gctRingSums, edm::EventSetup const &eventSetup, edm::Event const &iEvent, TTree *tree)
edm::InputTag hltresults_
edm::InputTag gtReadoutRecord_
const char * kL1GctRingSums
edm::InputTag m_l1extramet
RECOVertex vrt_analysisOffline0_
static bool getCollection(const edm::Event &event, std::vector< MissingCollectionInfo > &missing, edm::Handle< T > &handle, const edm::InputTag &name, const char *description)
edm::InputTag genEventInfo_
void setup(const edm::ParameterSet &pSet, TTree *tree, std::string vertexType)
std::pair< std::string, MonitorElement * > entry
EventHeader evt_header_
Default analyses.
edm::InputTag m_l1extramu
void analyze(edm::Handle< reco::VertexCollection > recoVertexs, TTree *tree)
void beginRun(const edm::Run &, const edm::EventSetup &)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
std::pair< const char *, const edm::InputTag * > MissingCollectionInfo
void analyze(const edm::Handle< reco::CandidateView > &mctruth, const double &pthat, const edm::Handle< std::vector< SimTrack > > &simTracks, const edm::Handle< std::vector< SimVertex > > &simVertices, const edm::Handle< std::vector< PileupSummaryInfo > > &PupInfo, TTree *tree)
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
virtual void analyze(edm::Event const &e, edm::EventSetup const &iSetup)
const char * kL1GctBitCounts
edm::InputTag m_l1extramht
const char * kRecoVerticesOffline0
edm::InputTag m_l1extrajetf
edm::InputTag gtObjectMap_
const char * kGenEventInfo
T * make() const
make new ROOT object
void setup(const edm::ParameterSet &pSet, TTree *tree)
edm::InputTag pileupInfo_
HLTBitAnalyzer(edm::ParameterSet const &conf)
edm::InputTag m_l1extrajetc