5 #include <boost/foreach.hpp>
16 event.getByLabel(name, handle);
19 missing.push_back( std::make_pair(description, & name) );
31 std::cout <<
" Beginning HLTAnalyzer Analysis " << std::endl;
168 m_file =
new TFile(_HistName.c_str(),
"RECREATE");
173 HltTree =
new TTree(
"HltTree",
"");
176 std::cout <<
"\n Setting HltTree weight to " <<
treeWeight <<
" = " << xSection_ <<
"*" << filterEff_ <<
" (cross section * gen filter efficiency)\n" << std::endl;
308 edm::InputTag ecalRechitEBTag (std::string(
"hltEcalRegionalEgammaRecHit:EcalRecHitsEB"));
309 edm::InputTag ecalRechitEETag (std::string(
"hltEcalRegionalEgammaRecHit:EcalRecHitsEE"));
333 std::vector<MissingCollectionInfo>
missing;
336 getCollection( iEvent, missing, recoBeamSpotHandle, BSProducer_ ,
"Beam Spot handle");
339 BSPosition = recoBeamSpotHandle->position();
396 std::vector<edm::Handle<edm::ValueMap<float> > > eIDValueMap(4);
451 if (genEventInfo.
isValid()) {ptHat=genEventInfo->qScale();}
457 std::stringstream
out;
458 out <<
"OpenHLT analyser - missing collections:";
460 out <<
"\n\t" << entry.first <<
": " << entry.second->encode();
463 edm::LogWarning(
"OpenHLT") <<
"Maximum error count reached -- No more messages will be printed.";
478 theRecoPFTauDiscrByTanCOnePercent,
479 theRecoPFTauDiscrByTanCHalfPercent,
480 theRecoPFTauDiscrByTanCQuarterPercent,
481 theRecoPFTauDiscrByTanCTenthPercent,
482 theRecoPFTauDiscrByIsolation,
483 theRecoPFTauDiscrAgainstMuon,
484 theRecoPFTauDiscrAgainstElec,
509 electronNonIsoHandle,
510 NonIsoTrackEleIsolMap,
513 L1NonIsoPixelSeedsMap,
515 recoNonIsolecalcands,
529 photonR9NonIsoHandle,
531 electronR9NonIsoHandle,
532 photonHoverEHIsoHandle,
533 photonHoverEHNonIsoHandle,
535 photonR9IDNonIsoHandle,
536 electronR9IDIsoHandle,
537 electronR9IDNonIsoHandle,
538 electronHFClusterHandle,
539 electronHFElectronHandle,
552 isopixeltrackPixVertices,
580 hPerformanceBJetsL25,
606 list->Add(
new TObjString(thepset.
dump().c_str()));
edm::InputTag L1IsoPixelSeeds_
T getParameter(std::string const &) const
const char * kBTagSoftmuonBJetsL3
T getUntrackedParameter(std::string const &, T const &) const
edm::InputTag IsoEleHcal_
edm::InputTag L1NonIsoPixelSeeds_
const char * kRecoVertices
edm::InputTag gctRingSums_
static bool getCollection(const edm::Event &event, std::vector< MissingCollectionInfo > &missing, edm::Handle< T > &handle, const edm::InputTag &name, const char *description)
edm::InputTag m_softmuonBJetsL25
edm::InputTag MuIsolTag3_
const char * kL1exttaujet
void analyze(const edm::Handle< reco::IsolatedPixelTrackCandidateCollection > &IsoPixelTrackL3, const edm::Handle< reco::IsolatedPixelTrackCandidateCollection > &IsoPixelTrackL2, const edm::Handle< reco::VertexCollection > &pixelVertices, const edm::Handle< reco::RecoChargedCandidateCollection > &PixelTracksL3, TTree *tree)
const char * kNonIsoPhoTrackIsol
edm::InputTag HFElectrons_
void setup(const edm::ParameterSet &pSet, TTree *tree)
const char * kOniaPixelCands
edm::InputTag RecoPFTauDiscrByTanCQuarterPercent_
edm::InputTag m_l1extramet
edm::InputTag HcalIsoPho_
const char * kNonIsoElectron
EventHeader evt_header_
Default analyses.
edm::InputTag IsoEleTrackIsol_
const char * kIsoPixelTrackVertices
const char * kNonIsoEleTrackIsol
const char * ktheRecoPFTauDiscrAgainstElec
edm::InputTag hltresults_
edm::InputTag HORecHitTag_
edm::LuminosityBlockNumber_t luminosityBlock() const
const char * kL1GctRingSums
edm::InputTag IsoPixelTrackTagL2_
const char * kPixelTracksL3
math::XYZPoint Point
point in the space
const char * ktheRecoPFTauDiscrByTanCHalfPercent
const char * kIsoElectron
void setup(const edm::ParameterSet &pSet, TTree *tree)
const char * kIsoPhoTrackIsol
const char * ktheRecoPFTauDiscrByTanCQuarterPercent
const char * kBTagCorrectedJets
edm::InputTag NonIsoHoverEH_
edm::InputTag IsoPhoTrackIsol_
edm::InputTag m_performanceBJetsL3
edm::InputTag m_softmuonBJetsL3
edm::InputTag RecoPFTauDiscrByTanCOnePercent_
edm::InputTag HFECALClusters_
const char * kHBHErechits
const char * kBTagPerformanceBJetsL25
const char * kBTagSoftmuonBJetsL25
const char * ktheRecoPFTauDiscrAgainstMuon
edm::InputTag m_performanceBJetsL25
edm::InputTag RecoPFTauDiscrByTanCHalfPercent_
edm::InputTag HFRecHitTag_
edm::InputTag reccorjets_
void setup(const edm::ParameterSet &pSet, TTree *tree)
void setup(const edm::ParameterSet &pSet, TTree *tree)
edm::InputTag CandNonIso_
edm::InputTag m_l1extramht
const char * kBTagLifetimeBJetsL25
edm::InputTag NonIsoPhoTrackIsol_
virtual void analyze(edm::Event const &e, edm::EventSetup const &iSetup)
edm::InputTag m_l1extramu
double _MinPtChargedHadrons
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, TTree *tree)
void analyze(const edm::Handle< reco::MuonCollection > &muon, const edm::Handle< l1extra::L1MuonParticleCollection > &mucands1, const edm::Handle< reco::RecoChargedCandidateCollection > &mucands2, const edm::Handle< edm::ValueMap< bool > > &isoMap2, const edm::Handle< reco::RecoChargedCandidateCollection > &mucands3, const edm::Handle< edm::ValueMap< bool > > &isoMap3, const edm::Handle< reco::RecoChargedCandidateCollection > &oniaPixelCands, const edm::Handle< reco::RecoChargedCandidateCollection > &oniaTrackCands, const edm::Handle< reco::RecoChargedCandidateCollection > &munovtxcands2, const reco::BeamSpot::Point &BSPosition, TTree *tree)
std::pair< std::string, MonitorElement * > entry
edm::InputTag gctBitCounts_
edm::InputTag NonIsoElectron_
edm::InputTag NonIsoR9ID_
edm::InputTag m_correctedBJets
const char * kIsoPixelTracksL3
void analyze(edm::Handle< reco::VertexCollection > recoVertexs, TTree *tree)
edm::InputTag RecoPFTauAgainstMuon_
void analyze(const edm::Handle< edm::View< reco::Jet > > &rawBJets, const edm::Handle< edm::View< reco::Jet > > &correctedBJets, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL25, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL3, const edm::Handle< reco::JetTagCollection > &softmuonBJetsL25, const edm::Handle< reco::JetTagCollection > &softmuonBJetsL3, const edm::Handle< reco::JetTagCollection > &performanceBJetsL25, const edm::Handle< reco::JetTagCollection > &performanceBJetsL3, TTree *tree)
void beginRun(const edm::Run &, const edm::EventSetup &)
const char * kBTagLifetimeBJetsL3
const char * kBTagPerformanceBJetsL3
void setup(const edm::ParameterSet &pSet, TTree *tree)
edm::InputTag MuNoVtxCandTag2_
const char * kHcalNonIsoPho
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
edm::InputTag gtReadoutRecord_
const char * ktheRecoPFTauDiscrByTanCOnePercent
edm::InputTag pi0EERecHitTag_
edm::InputTag IsoPixelTrackVerticesTag_
edm::InputTag EcalNonIso_
edm::InputTag IsoElectron_
const char * ktheRecoPFTauDiscrByTanCTenthPercent
edm::InputTag oniaPixelTag_
edm::InputTag MuCandTag3_
edm::InputTag pi0EBRecHitTag_
edm::InputTag MuIsolTag2_
edm::InputTag oniaTrackTag_
edm::InputTag MuCandTag2_
edm::InputTag RecoPFTauDiscrByTanCTenthPercent_
edm::InputTag RecoPFTauAgainstElec_
ParameterSet const & getProcessParameterSet()
void analyze(const edm::Handle< reco::GsfElectronCollection > &electrons, const edm::Handle< reco::PhotonCollection > &photons, const edm::Handle< reco::ElectronCollection > &electronIsoHandle, const edm::Handle< reco::ElectronCollection > &electronNonIsoHandle, const edm::Handle< reco::ElectronIsolationMap > &NonIsoTrackEleIsolMap, const edm::Handle< reco::ElectronIsolationMap > &TrackEleIsolMap, const edm::Handle< reco::ElectronSeedCollection > &L1IsoPixelSeedsMap, const edm::Handle< reco::ElectronSeedCollection > &L1NonIsoPixelSeedsMap, const edm::Handle< reco::RecoEcalCandidateCollection > &recoIsolecalcands, const edm::Handle< reco::RecoEcalCandidateCollection > &recoNonIsolecalcands, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &EcalIsolMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &EcalNonIsolMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &HcalEleIsolMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &HcalEleNonIsolMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &HcalIsolMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &HcalNonIsolMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &TrackIsolMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &TrackNonIsolMap, EcalClusterLazyTools &lazyTools, const edm::ESHandle< MagneticField > &theMagField, reco::BeamSpot::Point &BSPosition, std::vector< edm::Handle< edm::ValueMap< float > > > &eIDValueMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &photonR9IsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &photonR9NonIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &electronR9IsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &electronR9NonIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &photonHoverEHIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &photonHoverEHNonIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &photonR9IDIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &photonR9IDNonIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &electronR9IDIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &electronR9IDNonIsoMap, const edm::Handle< reco::SuperClusterCollection > &electronHFClusterHandle, const edm::Handle< reco::RecoEcalCandidateCollection > &electronHFElectronHandle, TTree *tree)
const char * kNonIsoHoverEH
const char * kHFElectrons
const char * kHFECALClusters
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
edm::InputTag IsoPixelTrackTagL3_
edm::InputTag HcalNonIsoPho_
const char * kL1GctBitCounts
edm::InputTag m_lifetimeBJetsL3
edm::InputTag calotowers_
edm::InputTag recoPFJets_
edm::InputTag m_l1extraemi
void setup(const edm::ParameterSet &pSet, TTree *tree)
const char * kGenEventInfo
HLTAnalyzer(edm::ParameterSet const &conf)
void analyze(const edm::Handle< reco::CaloJetCollection > &recojets, const edm::Handle< reco::CaloJetCollection > &corjets, const edm::Handle< reco::GenJetCollection > &gjets, const edm::Handle< reco::CaloMETCollection > &rmets, const edm::Handle< reco::GenMETCollection > &gmets, const edm::Handle< reco::METCollection > &ht, const edm::Handle< reco::HLTTauCollection > &myHLTTau, const edm::Handle< reco::PFTauCollection > &myHLTPFTau, const edm::Handle< reco::PFJetCollection > &myHLTPFJets, const edm::Handle< reco::PFTauCollection > &myRecoPFTau, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByTanCOnePercent, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByTanCHalfPercent, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByTanCQuarterPercent, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByTanCTenthPercent, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByIsolation, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrAgainstElec, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrAgainstMuon, const edm::Handle< reco::PFJetCollection > &recoPFJets, const edm::Handle< CaloTowerCollection > &caloTowers, double thresholdForSavingTowers, double minPtCH, double minPtGamma, TTree *tree)
const char * kMunovtxcands2
edm::InputTag HBHERecHitTag_
const char * kL1NonIsoPixelSeeds
edm::InputTag IsoHoverEH_
void setup(const edm::ParameterSet &pSet, TTree *tree)
edm::InputTag NonIsoEleHcal_
edm::InputTag NonIsoEleTrackIsol_
const char * kIsoPixelTracksL2
edm::InputTag PixelTracksTagL3_
void setup(const edm::ParameterSet &config, TTree *tree)
edm::InputTag EERecHitTag_
edm::InputTag genEventInfo_
edm::InputTag m_l1extrajetf
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 > &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 m_lifetimeBJetsL25
const char * ktheRecoPFTauDiscrByIsolation
const char * kpi0EErechits
const char * kOniaTrackCands
edm::InputTag m_l1extrajetc
const char * kIsoEleTrackIsol
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 list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
edm::InputTag m_l1extraemn
edm::InputTag EBRecHitTag_
const char * kpi0EBrechits
edm::InputTag m_l1extrataujet
edm::InputTag RecoPFTauDiscrByIso_
const char * kL1IsoPixelSeeds