5 #include <boost/foreach.hpp>
16 event.getByLabel(name, handle);
19 missing.push_back( std::make_pair(description, & name) );
32 std::cout <<
" Beginning HLTAnalyzer Analysis " << std::endl;
208 m_file =
new TFile(_HistName.c_str(),
"RECREATE");
213 HltTree =
new TTree(
"HltTree",
"");
216 std::cout <<
"\n Setting HltTree weight to " <<
treeWeight <<
" = " << xSection_ <<
"*" << filterEff_ <<
" (cross section * gen filter efficiency)\n" << std::endl;
414 iSetup.
getData(lumicorrdatahandle);
420 std::vector<MissingCollectionInfo>
missing;
423 getCollection( iEvent, missing, recoBeamSpotHandle, BSProducer_ ,
"Beam Spot handle");
426 BSPosition = recoBeamSpotHandle->position();
514 std::vector<edm::Handle<edm::ValueMap<float> > > eIDValueMap(4);
574 if (genEventInfo.
isValid()) {ptHat=genEventInfo->qScale();}
580 std::stringstream
out;
581 out <<
"OpenHLT analyser - missing collections (This message is for information only. RECO collections will always be missing when running on RAW, MC collections will always be missing when running on data):";
583 out <<
"\n\t" << entry.first <<
": " << entry.second->encode();
586 edm::LogWarning(
"OpenHLT") <<
"Maximum error count reached -- No more messages will be printed.";
607 theRecoPFTauDiscrByTanCOnePercent,
608 theRecoPFTauDiscrByTanCHalfPercent,
609 theRecoPFTauDiscrByTanCQuarterPercent,
610 theRecoPFTauDiscrByTanCTenthPercent,
611 theRecoPFTauDiscrByIsolation,
612 theRecoPFTauDiscrAgainstMuon,
613 theRecoPFTauDiscrAgainstElec,
616 caloTowersCleanerUpperR45,
617 caloTowersCleanerLowerR45,
618 caloTowersCleanerNoR45,
648 electronNonIsoHandle,
649 NonIsoTrackEleIsolMap,
652 L1NonIsoPixelSeedsMap,
654 recoNonIsolecalcands,
668 photonR9NonIsoHandle,
670 electronR9NonIsoHandle,
671 photonHoverEHIsoHandle,
672 photonHoverEHNonIsoHandle,
674 photonR9IDNonIsoHandle,
675 electronR9IDIsoHandle,
676 electronR9IDNonIsoHandle,
677 electronHFClusterHandle,
678 electronHFElectronHandle,
679 electronHFClusterAssociation,
681 ActivityEcalIsoHandle,
682 ActivityHcalIsoHandle,
683 ActivityTrackIsoHandle,
686 ActivityHoverEHHandle,
699 isopixeltrackPixVertices,
726 hCorrectedBJetsL1FastJet,
730 hLifetimeBJetsL25L1FastJet,
731 hLifetimeBJetsL3L1FastJet,
733 hLifetimeBJetsL25SingleTrack,
734 hLifetimeBJetsL3SingleTrack,
735 hLifetimeBJetsL25SingleTrackL1FastJet,
736 hLifetimeBJetsL3SingleTrackL1FastJet,
737 hPerformanceBJetsL25,
739 hPerformanceBJetsL25L1FastJet,
740 hPerformanceBJetsL3L1FastJet,
770 list->Add(
new TObjString(thepset.
dump().c_str()));
edm::InputTag L1IsoPixelSeeds_
const char * kDimuvtxcands3
const char * kECALActivityR9ID
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
const char * kECALActivityR9
const char * kBTagLifetimeBJetsL25SingleTrack
edm::InputTag IsoEleHcal_
edm::InputTag L1NonIsoPixelSeeds_
edm::InputTag MuTrkIsolTag3_
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 MuIsolTag3_
edm::InputTag ActivityR9_
edm::InputTag m_lifetimeBJetsL3SingleTrack
edm::InputTag calotowersUpperR45_
edm::InputTag m_performanceBJetsL25L1FastJet
const char * kL1exttaujet
const char * kNonIsoPhoTrackIsol
edm::InputTag pileupInfo_
const char * kCaloTowersNoR45
edm::InputTag HFElectrons_
edm::InputTag PixelFEDSizeTag_
const char * kPixelClusters
void setup(const edm::ParameterSet &pSet, TTree *tree)
edm::InputTag hltcorL1L2L3jets_
const char * kOniaPixelCands
edm::InputTag RecoPFTauDiscrByTanCQuarterPercent_
edm::InputTag m_l1extramet
edm::InputTag VertexTagHLT_
edm::InputTag HcalIsoPho_
std::string dump(unsigned int indent=0) const
const char * kNonIsoElectron
edm::InputTag calotowersNoR45_
EventHeader evt_header_
Default analyses.
const char * kECALActivityTrackIso
edm::InputTag IsoEleTrackIsol_
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)
const char * kIsoPixelTrackVertices
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, const edm::Handle< FEDRawDataCollection > hfedraw, const edm::Handle< edmNew::DetSetVector< SiPixelCluster > > &pixelClusters, TTree *tree)
const char * kNonIsoEleTrackIsol
const char * ktheRecoPFTauDiscrAgainstElec
const char * kHLTCorL1L2L3jets
edm::InputTag hltresults_
const char * kCaloTowersLowerR45
edm::InputTag TrackerMuonTag_
edm::LuminosityBlockNumber_t luminosityBlock() const
const char * kL1GctRingSums
edm::InputTag IsoPixelTrackTagL2_
const char * kBTagLifetimeBJetsL3SingleTrackL1FastJet
const char * kPixelTracksL3
math::XYZPoint Point
point in the space
const char * ktheRecoPFTauDiscrByTanCHalfPercent
const char * kIsoElectron
const char * kBTagLifetimeBJetsL25SingleTrackL1FastJet
const char * kPixelFEDSize
const char * kIsoPhoTrackIsol
edm::InputTag m_l1extrajet
const char * kECALActivity
const char * ktheRecoPFTauDiscrByTanCQuarterPercent
const char * kBTagLifetimeBJetsL3SingleTrack
const char * kBTagCorrectedJets
edm::InputTag NonIsoHoverEH_
edm::InputTag m_lifetimePFBJetsL3
edm::InputTag IsoPhoTrackIsol_
edm::InputTag m_performanceBJetsL3
edm::InputTag RecoPFTauDiscrByTanCOnePercent_
edm::InputTag ActivityHcalIso_
edm::InputTag HFECALClusters_
void getData(T &iHolder) const
const char * kBTagPerformanceBJetsL25
const char * ktheRecoPFTauDiscrAgainstMuon
edm::InputTag m_performanceBJetsL25
edm::InputTag RecoPFTauDiscrByTanCHalfPercent_
edm::InputTag m_lifetimeBJetsL3SingleTrackL1FastJet
edm::InputTag reccorjets_
const char * kIsoTrk10Map3
const char * kBTagCorrectedJetsL1FastJet
const char * kECALActivityEcalIso
edm::InputTag ECALActivity_
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)
void setup(const edm::ParameterSet &pSet, TTree *tree, std::string vertexType)
edm::InputTag m_l1extramu
double _MinPtChargedHadrons
const char * kBTagLifetimeBJetsL25L1FastJet
edm::InputTag hltcorjets_
std::pair< std::string, MonitorElement * > entry
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, const edm::Handle< reco::HFEMClusterShapeAssociationCollection > &electronHFClusterAssociation, const edm::Handle< reco::RecoEcalCandidateCollection > &activityECAL, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &activityEcalIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &activityHcalIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &activityTrackIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &activityR9Map, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &activityR9IDMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &activityHoverEHMap, TTree *tree)
edm::InputTag gctBitCounts_
edm::InputTag NonIsoElectron_
edm::InputTag VertexTagOffline0_
edm::InputTag NonIsoR9ID_
edm::InputTag m_correctedBJets
void analyze(edm::Event const &iEvent, const edm::Handle< reco::CaloJetCollection > &ohjets, const edm::Handle< reco::CaloJetCollection > &ohcorjets, const edm::Handle< reco::CaloJetCollection > &ohcorL1L2L3jets, const edm::Handle< double > &rho, const edm::Handle< reco::CaloJetCollection > &recojets, const edm::Handle< reco::CaloJetCollection > &recocorjets, 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::CaloJetCollection > &myHLTL2Tau, const edm::Handle< reco::HLTTauCollection > &myHLTTau, const edm::Handle< reco::PFTauCollection > &myHLTPFTau, const edm::Handle< reco::PFTauCollection > &myHLTPFTauTightCone, 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, const edm::Handle< CaloTowerCollection > &caloTowersCleanerUpperR45, const edm::Handle< CaloTowerCollection > &caloTowersCleanerLowerR45, const edm::Handle< CaloTowerCollection > &caloTowersCleanerNoR45, const edm::Handle< reco::PFMETCollection > &pfmets, double thresholdForSavingTowers, double minPtCH, double minPtGamma, TTree *tree)
const char * kIsoPixelTracksL3
void analyze(edm::Handle< reco::VertexCollection > recoVertexs, TTree *tree)
edm::InputTag ActivityEcalIso_
edm::InputTag RecoPFTauAgainstMuon_
edm::InputTag ActivityTrackIso_
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
edm::InputTag PixelClustersTag_
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
const char * kBTagPerformanceBJetsL25L1FastJet
edm::InputTag m_correctedBJetsL1FastJet
std::pair< const char *, const edm::InputTag * > MissingCollectionInfo
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
edm::InputTag gtReadoutRecord_
edm::InputTag PFTauTightCone_
const char * ktheRecoPFTauDiscrByTanCOnePercent
edm::InputTag IsoPixelTrackVerticesTag_
edm::InputTag EcalNonIso_
edm::InputTag IsoElectron_
const char * ktheRecoPFTauDiscrByTanCTenthPercent
edm::InputTag ActivityR9ID_
edm::InputTag oniaPixelTag_
edm::InputTag MuCandTag3_
const char * kECALActivityHoverEH
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)
edm::InputTag MuIsolTag2_
void analyze(const edm::Handle< reco::MuonCollection > &muon, const edm::Handle< reco::PFCandidateCollection > &pfmuon, 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< edm::ValueMap< bool > > &isoTrk10Map3, const edm::Handle< reco::RecoChargedCandidateCollection > &oniaPixelCands, const edm::Handle< reco::RecoChargedCandidateCollection > &oniaTrackCands, const edm::Handle< reco::VertexCollection > &dimuvtxcands3, const edm::Handle< reco::RecoChargedCandidateCollection > &munovtxcands2, const edm::Handle< reco::MuonCollection > &trkmucands, const edm::ESHandle< MagneticField > &theMagField, const edm::Handle< reco::BeamSpot > &recoBeamSpotHandle, TTree *tree)
const char * kBTagPerformanceBJetsL3L1FastJet
edm::InputTag oniaTrackTag_
edm::InputTag MuCandTag2_
RECOVertex vrt_analysisOffline0_
const char * kBTagLifetimeBJetsL3L1FastJet
const char * kBTagLifetimePFBJetsL3
edm::InputTag RecoPFTauDiscrByTanCTenthPercent_
const char * kCaloTowersUpperR45
edm::InputTag RecoPFTauAgainstElec_
ParameterSet const & getProcessParameterSet()
const char * kECALActivityHcalIso
const char * kNonIsoHoverEH
const char * kHFElectrons
const char * kHFECALClusters
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
edm::InputTag IsoPixelTrackTagL3_
edm::InputTag m_lifetimeBJetsL25SingleTrackL1FastJet
edm::InputTag HcalNonIsoPho_
const char * kL1GctBitCounts
edm::InputTag m_lifetimeBJetsL3
edm::InputTag calotowers_
void analyze(const edm::Handle< edm::View< reco::Jet > > &rawBJets, const edm::Handle< edm::View< reco::Jet > > &correctedBJets, const edm::Handle< edm::View< reco::Jet > > &correctedBJetsL1FastJet, const edm::Handle< edm::View< reco::Jet > > &pfBJets, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL25, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL3, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL25L1FastJet, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL3L1FastJet, const edm::Handle< reco::JetTagCollection > &lifetimePFBJetsL3, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL25SingleTrack, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL3SingleTrack, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL25SingleTrackL1FastJet, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL3SingleTrackL1FastJet, const edm::Handle< reco::JetTagCollection > &performanceBJetsL25, const edm::Handle< reco::JetTagCollection > &performanceBJetsL3, const edm::Handle< reco::JetTagCollection > &performanceBJetsL25L1FastJet, const edm::Handle< reco::JetTagCollection > &performanceBJetsL3L1FastJet, TTree *tree)
edm::InputTag recoPFJets_
edm::InputTag m_l1extraemi
void setup(const edm::ParameterSet &pSet, TTree *tree)
const char * kRecoVerticesHLT
const char * kRecoVerticesOffline0
const char * kGenEventInfo
HLTAnalyzer(edm::ParameterSet const &conf)
RECOVertex vrt_analysisHLT_
const char * kMunovtxcands2
edm::InputTag m_lifetimeBJetsL3L1FastJet
const char * kL1NonIsoPixelSeeds
edm::InputTag IsoHoverEH_
void setup(const edm::ParameterSet &pSet, TTree *tree)
edm::InputTag ActivityHoverEH_
edm::InputTag NonIsoEleHcal_
edm::InputTag NonIsoEleTrackIsol_
const char * kPFTausTightCone
const char * kIsoPixelTracksL2
edm::InputTag PixelTracksTagL3_
void setup(const edm::ParameterSet &config, TTree *tree)
edm::InputTag genEventInfo_
edm::InputTag m_l1extrajetf
edm::InputTag m_lifetimeBJetsL25
edm::InputTag m_lifetimeBJetsL25SingleTrack
const char * ktheRecoPFTauDiscrByIsolation
const char * kOniaTrackCands
edm::InputTag m_performanceBJetsL3L1FastJet
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 calotowersLowerR45_
edm::InputTag m_lifetimeBJetsL25L1FastJet
edm::InputTag m_l1extrataujet
edm::InputTag RecoPFTauDiscrByIso_
const char * kL1IsoPixelSeeds