#include <HLTAnalyzer.h>
$Date: November 2006 $Revision:
Definition at line 47 of file HLTAnalyzer.h.
HLTAnalyzer::HLTAnalyzer | ( | edm::ParameterSet const & | conf | ) | [explicit] |
Definition at line 26 of file HLTAnalyzer.cc.
References _EtaMax, _EtaMin, _HistName, _MinPtChargedHadrons, _MinPtGammas, ActivityEcalIso_, ActivityHcalIso_, ActivityHoverEH_, ActivityR9_, ActivityR9ID_, ActivityTrackIso_, bjet_analysis_, calotowers_, CandIso_, CandNonIso_, gather_cfg::cout, DiMuVtx_, ECALActivity_, EcalIso_, EcalNonIso_, Electron_, elm_analysis_, errCnt, evt_header_, filterEff_, firstLumi_, gctBitCounts_, gctRingSums_, genEventInfo_, genjets_, genmet_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), gtReadoutRecord_, HcalIsoPho_, HcalNonIsoPho_, HFECALClusters_, HFElectrons_, hlt_analysis_, hltcorjets_, hltcorL1L2L3jets_, hltjets_, hltresults_, HLTTau_, HltTree, ht_, IsoElectron_, IsoEleHcal_, IsoEleTrackIsol_, IsoHoverEH_, IsoPhoTrackIsol_, IsoR9_, IsoR9ID_, jet_analysis_, l1extramc_, l1extramu_, L1IsoPixelSeeds_, L1NonIsoPixelSeeds_, edm::InputTag::label(), lastLumi_, m_correctedBJets, m_file, m_l1extraemi, m_l1extraemn, m_l1extrajetc, m_l1extrajetf, m_l1extramet, m_l1extramht, m_l1extramu, m_l1extrataujet, m_lifetimeBJetsL25, m_lifetimeBJetsL25SingleTrack, m_lifetimeBJetsL3, m_lifetimeBJetsL3SingleTrack, m_performanceBJetsL25, m_performanceBJetsL3, m_rawBJets, mct_analysis_, mctruth_, MuCandTag2_, MuCandTag3_, MuIsolTag2_, MuIsolTag3_, MuNoVtxCandTag2_, muon_, muon_analysis_, MuTrkIsolTag3_, NonIsoElectron_, NonIsoEleHcal_, NonIsoEleTrackIsol_, NonIsoHoverEH_, NonIsoPhoTrackIsol_, NonIsoR9_, NonIsoR9ID_, oniaPixelTag_, oniaTrackTag_, PFJets_, pfmuon_, PFTau_, PFTauTightCone_, Photon_, PixelClustersTag_, PixelFEDSizeTag_, PixelTracksTagL3_, reccorjets_, recjets_, recmet_, recoPFJets_, recoPFMet_, RecoPFTau_, RecoPFTauAgainstElec_, RecoPFTauAgainstMuon_, RecoPFTauDiscrByIso_, RecoPFTauDiscrByTanCHalfPercent_, RecoPFTauDiscrByTanCOnePercent_, RecoPFTauDiscrByTanCQuarterPercent_, RecoPFTauDiscrByTanCTenthPercent_, environment_file_cfi::runParameters, HLTEgamma::setup(), RECOVertex::setup(), EventHeader::setup(), HLTJets::setup(), HLTMuon::setup(), HLTTrack::setup(), HLTMCtruth::setup(), HLTInfo::setup(), HLTBJet::setup(), simhits_, towerThreshold_, track_analysis_, TrackerMuonTag_, treeWeight, VertexTagHLT_, VertexTagOffline0_, vrt_analysisHLT_, vrt_analysisOffline0_, and xSection_.
{ // If your module takes parameters, here is where you would define // their names and types, and access them to initialize internal // variables. Example as follows: std::cout << " Beginning HLTAnalyzer Analysis " << std::endl; hltjets_ = conf.getParameter<edm::InputTag> ("hltjets"); hltcorjets_ = conf.getParameter<edm::InputTag> ("hltcorjets"); hltcorL1L2L3jets_ = conf.getParameter<edm::InputTag> ("hltcorL1L2L3jets"); recjets_ = conf.getParameter<edm::InputTag> ("recjets"); reccorjets_ = conf.getParameter<edm::InputTag> ("reccorjets"); genjets_ = conf.getParameter<edm::InputTag> ("genjets"); recmet_ = conf.getParameter<edm::InputTag> ("recmet"); recoPFMet_ = conf.getParameter<edm::InputTag> ("pfmet"); genmet_ = conf.getParameter<edm::InputTag> ("genmet"); ht_ = conf.getParameter<edm::InputTag> ("ht"); recoPFJets_ = conf.getParameter<edm::InputTag> ("recoPFJets"); calotowers_ = conf.getParameter<edm::InputTag> ("calotowers"); muon_ = conf.getParameter<edm::InputTag> ("muon"); pfmuon_ = conf.getParameter<edm::InputTag> ("pfmuon"); mctruth_ = conf.getParameter<edm::InputTag> ("mctruth"); genEventInfo_ = conf.getParameter<edm::InputTag> ("genEventInfo"); simhits_ = conf.getParameter<edm::InputTag> ("simhits"); xSection_ = conf.getUntrackedParameter<double> ("xSection",1.); filterEff_ = conf.getUntrackedParameter<double> ("filterEff",1.); firstLumi_ = conf.getUntrackedParameter<int> ("firstLumi",0); lastLumi_ = conf.getUntrackedParameter<int> ("lastLumi",-1); towerThreshold_ = conf.getParameter<double>("caloTowerThreshold"); // keep this separate from l1extramc_ as needed by FastSim: // This is purposefully done this way to allow FastSim to run with OpenHLT: // The {FastSim+OpenHLT} package runs on the head of HLTrigger/HLTanalyzers // where there is purposefully this duplication because FastSim does the // simulation of muons seperately, and needs the same collection. l1extramu_ = conf.getParameter<std::string> ("l1extramu"); m_l1extramu = edm::InputTag(l1extramu_, ""); // read the L1Extra collection name, and add the instance names as needed l1extramc_ = conf.getParameter<std::string> ("l1extramc"); m_l1extraemi = edm::InputTag(l1extramc_, "Isolated"); m_l1extraemn = edm::InputTag(l1extramc_, "NonIsolated"); m_l1extrajetc = edm::InputTag(l1extramc_, "Central"); m_l1extrajetf = edm::InputTag(l1extramc_, "Forward"); m_l1extrataujet = edm::InputTag(l1extramc_, "Tau"); m_l1extramet = edm::InputTag(l1extramc_, "MET"); m_l1extramht = edm::InputTag(l1extramc_, "MHT"); hltresults_ = conf.getParameter<edm::InputTag> ("hltresults"); gtReadoutRecord_ = conf.getParameter<edm::InputTag> ("l1GtReadoutRecord"); gctBitCounts_ = edm::InputTag( conf.getParameter<edm::InputTag>("l1GctHFBitCounts").label(), "" ); gctRingSums_ = edm::InputTag( conf.getParameter<edm::InputTag>("l1GctHFRingSums").label(), "" ); MuCandTag2_ = conf.getParameter<edm::InputTag> ("MuCandTag2"); MuIsolTag2_ = conf.getParameter<edm::InputTag> ("MuIsolTag2"); MuNoVtxCandTag2_ = conf.getParameter<edm::InputTag> ("MuNoVtxCandTag2"); MuCandTag3_ = conf.getParameter<edm::InputTag> ("MuCandTag3"); MuIsolTag3_ = conf.getParameter<edm::InputTag> ("MuIsolTag3"); MuTrkIsolTag3_ = conf.getParameter<edm::InputTag> ("MuTrkIsolTag3"); TrackerMuonTag_ = conf.getParameter<edm::InputTag> ("TrackerMuonTag"); oniaPixelTag_ = conf.getParameter<edm::InputTag> ("OniaPixelTag"); oniaTrackTag_ = conf.getParameter<edm::InputTag> ("OniaTrackTag"); DiMuVtx_ = conf.getParameter<edm::InputTag> ("DiMuVtx"); HLTTau_ = conf.getParameter<edm::InputTag> ("HLTTau"); PFTau_ = conf.getParameter<edm::InputTag> ("HLTPFTau"); PFTauTightCone_ = conf.getParameter<edm::InputTag> ("HLTPFTauTightCone"); _MinPtChargedHadrons = conf.getParameter<double>("minPtChargedHadronsForTaus"); _MinPtGammas = conf.getParameter<double>("minPtGammassForTaus"); PFJets_ = conf.getParameter<edm::InputTag> ("HLTPFJet"); // offline reco tau collection and discriminators RecoPFTau_ = conf.getParameter<edm::InputTag> ("RecoPFTau"); RecoPFTauDiscrByTanCOnePercent_ = conf.getParameter<edm::InputTag> ("RecoPFTauDiscrByTanCOnePercent"); RecoPFTauDiscrByTanCHalfPercent_ = conf.getParameter<edm::InputTag> ("RecoPFTauDiscrByTanCHalfPercent"); RecoPFTauDiscrByTanCQuarterPercent_ = conf.getParameter<edm::InputTag> ("RecoPFTauDiscrByTanCQuarterPercent"); RecoPFTauDiscrByTanCTenthPercent_ = conf.getParameter<edm::InputTag> ("RecoPFTauDiscrByTanCTenthPercent"); RecoPFTauDiscrByIso_ = conf.getParameter<edm::InputTag> ("RecoPFTauDiscrByIso"); RecoPFTauAgainstMuon_ = conf.getParameter<edm::InputTag> ("RecoPFTauAgainstMuon"); RecoPFTauAgainstElec_ = conf.getParameter<edm::InputTag> ("RecoPFTauAgainstElec"); // btag OpenHLT input collections m_rawBJets = conf.getParameter<edm::InputTag>("CommonBJetsL2"); m_correctedBJets = conf.getParameter<edm::InputTag>("CorrectedBJetsL2"); m_lifetimeBJetsL25 = conf.getParameter<edm::InputTag>("LifetimeBJetsL25"); m_lifetimeBJetsL3 = conf.getParameter<edm::InputTag>("LifetimeBJetsL3"); m_lifetimeBJetsL25SingleTrack = conf.getParameter<edm::InputTag>("LifetimeBJetsL25SingleTrack"); m_lifetimeBJetsL3SingleTrack = conf.getParameter<edm::InputTag>("LifetimeBJetsL3SingleTrack"); m_performanceBJetsL25 = conf.getParameter<edm::InputTag>("PerformanceBJetsL25"); m_performanceBJetsL3 = conf.getParameter<edm::InputTag>("PerformanceBJetsL3"); // egamma OpenHLT input collections Electron_ = conf.getParameter<edm::InputTag> ("Electron"); Photon_ = conf.getParameter<edm::InputTag> ("Photon"); CandIso_ = conf.getParameter<edm::InputTag> ("CandIso"); CandNonIso_ = conf.getParameter<edm::InputTag> ("CandNonIso"); EcalIso_ = conf.getParameter<edm::InputTag> ("EcalIso"); EcalNonIso_ = conf.getParameter<edm::InputTag> ("EcalNonIso"); HcalIsoPho_ = conf.getParameter<edm::InputTag> ("HcalIsoPho"); HcalNonIsoPho_ = conf.getParameter<edm::InputTag> ("HcalNonIsoPho"); IsoPhoTrackIsol_ = conf.getParameter<edm::InputTag> ("IsoPhoTrackIsol"); NonIsoPhoTrackIsol_ = conf.getParameter<edm::InputTag> ("NonIsoPhoTrackIsol"); IsoElectron_ = conf.getParameter<edm::InputTag> ("IsoElectrons"); NonIsoElectron_ = conf.getParameter<edm::InputTag> ("NonIsoElectrons"); IsoEleHcal_ = conf.getParameter<edm::InputTag> ("HcalIsoEle"); NonIsoEleHcal_ = conf.getParameter<edm::InputTag> ("HcalNonIsoEle"); IsoEleTrackIsol_ = conf.getParameter<edm::InputTag> ("IsoEleTrackIsol"); NonIsoEleTrackIsol_ = conf.getParameter<edm::InputTag> ("NonIsoEleTrackIsol"); L1IsoPixelSeeds_ = conf.getParameter<edm::InputTag> ("PixelSeedL1Iso"); L1NonIsoPixelSeeds_ = conf.getParameter<edm::InputTag> ("PixelSeedL1NonIso"); IsoR9_ = conf.getParameter<edm::InputTag> ("SpikeCleaningIsol"); NonIsoR9_ = conf.getParameter<edm::InputTag> ("SpikeCleaningNonIsol"); IsoHoverEH_ = conf.getParameter<edm::InputTag> ("HcalForHoverEIsol"); NonIsoHoverEH_ = conf.getParameter<edm::InputTag> ("HcalForHoverENonIsol"); IsoR9ID_ = conf.getParameter<edm::InputTag> ("R9IDIsol"); NonIsoR9ID_ = conf.getParameter<edm::InputTag> ("R9IDNonIsol"); HFECALClusters_ = conf.getParameter<edm::InputTag> ("HFECALClusters"); HFElectrons_ = conf.getParameter<edm::InputTag> ("HFElectrons"); // Add ECAL Activity ECALActivity_ = conf.getParameter<edm::InputTag> ("ECALActivity"); ActivityEcalIso_ = conf.getParameter<edm::InputTag> ("ActivityEcalIso"); ActivityHcalIso_ = conf.getParameter<edm::InputTag> ("ActivityHcalIso"); ActivityTrackIso_ = conf.getParameter<edm::InputTag> ("ActivityTrackIso"); ActivityR9_ = conf.getParameter<edm::InputTag> ("ActivityR9"); // spike cleaning ActivityR9ID_ = conf.getParameter<edm::InputTag> ("ActivityR9ID"); ActivityHoverEH_ = conf.getParameter<edm::InputTag> ("ActivityHcalForHoverE"); // AlCa OpenHLT input collections /* EERecHitTag_ = conf.getParameter<edm::InputTag> ("EERecHits"); EBRecHitTag_ = conf.getParameter<edm::InputTag> ("EBRecHits"); pi0EBRecHitTag_ = conf.getParameter<edm::InputTag> ("pi0EBRecHits"); pi0EERecHitTag_ = conf.getParameter<edm::InputTag> ("pi0EERecHits"); HBHERecHitTag_ = conf.getParameter<edm::InputTag> ("HBHERecHits"); HORecHitTag_ = conf.getParameter<edm::InputTag> ("HORecHits"); HFRecHitTag_ = conf.getParameter<edm::InputTag> ("HFRecHits"); IsoPixelTrackTagL3_ = conf.getParameter<edm::InputTag> ("IsoPixelTracksL3"); IsoPixelTrackTagL2_ = conf.getParameter<edm::InputTag> ("IsoPixelTracksL2"); IsoPixelTrackVerticesTag_ = conf.getParameter<edm::InputTag> ("IsoPixelTrackVertices"); */ // Track OpenHLT input collections PixelTracksTagL3_ = conf.getParameter<edm::InputTag> ("PixelTracksL3"); PixelFEDSizeTag_ = conf.getParameter<edm::InputTag> ("PixelFEDSize"); PixelClustersTag_ = conf.getParameter<edm::InputTag> ("PixelClusters"); // Reco Vertex collection VertexTagHLT_ = conf.getParameter<edm::InputTag> ("PrimaryVertices"); VertexTagOffline0_ = conf.getParameter<edm::InputTag> ("OfflinePrimaryVertices0"); m_file = 0; // set to null errCnt = 0; // read run parameters with a default value edm::ParameterSet runParameters = conf.getParameter<edm::ParameterSet>("RunParameters"); _HistName = runParameters.getUntrackedParameter<std::string>("HistogramFile", "test.root"); _EtaMin = runParameters.getUntrackedParameter<double>("EtaMin", -5.2); _EtaMax = runParameters.getUntrackedParameter<double>("EtaMax", 5.2); // open the tree file m_file = new TFile(_HistName.c_str(), "RECREATE"); if (m_file) m_file->cd(); // Initialize the tree HltTree = new TTree("HltTree", ""); treeWeight=xSection_*filterEff_; std::cout << "\n Setting HltTree weight to " << treeWeight << " = " << xSection_ << "*" << filterEff_ << " (cross section * gen filter efficiency)\n" << std::endl; // Setup the different analysis jet_analysis_.setup(conf, HltTree); bjet_analysis_.setup(conf, HltTree); elm_analysis_.setup(conf, HltTree); muon_analysis_.setup(conf, HltTree); track_analysis_.setup(conf, HltTree); mct_analysis_.setup(conf, HltTree); hlt_analysis_.setup(conf, HltTree); vrt_analysisHLT_.setup(conf, HltTree, "HLT"); vrt_analysisOffline0_.setup(conf, HltTree, "Offline0"); evt_header_.setup(HltTree); }
void HLTAnalyzer::analyze | ( | edm::Event const & | e, |
edm::EventSetup const & | iSetup | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 221 of file HLTAnalyzer.cc.
References _MinPtChargedHadrons, _MinPtGammas, ActivityEcalIso_, ActivityHcalIso_, ActivityHoverEH_, ActivityR9_, ActivityR9ID_, ActivityTrackIso_, HLTBJet::analyze(), HLTMuon::analyze(), HLTJets::analyze(), RECOVertex::analyze(), HLTMCtruth::analyze(), HLTInfo::analyze(), EventHeader::analyze(), HLTEgamma::analyze(), HLTTrack::analyze(), bjet_analysis_, HiRecoJets_cff::caloTowers, calotowers_, CandIso_, CandNonIso_, DiMuVtx_, ECALActivity_, EcalIso_, EcalNonIso_, Electron_, HI_PhotonSkim_cff::electrons, elm_analysis_, errCnt, errMax(), evt_header_, firstLumi_, gctBitCounts_, gctRingSums_, genEventInfo_, genjets_, genmet_, edm::EventSetup::get(), edm::Event::getByLabel(), getCollection(), gtReadoutRecord_, HcalIsoPho_, HcalNonIsoPho_, HFECALClusters_, HFElectrons_, hlt_analysis_, hltcorjets_, hltcorL1L2L3jets_, hltjets_, hltresults_, HLTTau_, HltTree, ht_, IsoElectron_, IsoEleHcal_, IsoEleTrackIsol_, IsoHoverEH_, IsoPhoTrackIsol_, IsoPixelTrackTagL2_, IsoPixelTrackTagL3_, IsoPixelTrackVerticesTag_, IsoR9_, IsoR9ID_, edm::HandleBase::isValid(), jet_analysis_, kBTagCorrectedJets, kBTagJets, kBTagLifetimeBJetsL25, kBTagLifetimeBJetsL25SingleTrack, kBTagLifetimeBJetsL3, kBTagLifetimeBJetsL3SingleTrack, kBTagPerformanceBJetsL25, kBTagPerformanceBJetsL3, kCaloTowers, kCandIso, kCandNonIso, kDimuvtxcands3, kECALActivity, kECALActivityEcalIso, kECALActivityHcalIso, kECALActivityHoverEH, kECALActivityR9, kECALActivityR9ID, kECALActivityTrackIso, kEcalIso, kEcalNonIso, kElectrons, kGenEventInfo, kGenjets, kGenmet, kHcalIsoPho, kHcalNonIsoPho, kHFECALClusters, kHFElectrons, kHLTCorjets, kHLTCorL1L2L3jets, kHLTjets, kHltresults, kHt, kIsoElectron, kIsoEleHcal, kIsoEleTrackIsol, kIsoHoverEH, kIsoMap2, kIsoMap3, kIsoPhoTrackIsol, kIsoPixelTracksL2, kIsoPixelTracksL3, kIsoPixelTrackVertices, kIsoR9, kIsoR9ID, kIsoTrk10Map3, kL1extemi, kL1extemn, kL1extjetc, kL1extjetf, kL1extmet, kL1extmht, kL1extmu, kL1exttaujet, kL1GctBitCounts, kL1GctRingSums, kL1GtRR, kL1IsoPixelSeeds, kL1NonIsoPixelSeeds, kMctruth, kMucands2, kMucands3, kMunovtxcands2, WDecay::kMuon, kNonIsoElectron, kNonIsoEleTrackIsol, kNonIsoHoverEH, kNonIsoPhoTrackIsol, kNonIsoR9, kNonIsoR9ID, kOniaPixelCands, kOniaTrackCands, kPFJets, kPFMet, kpfMuon, kPFTaus, kPFTausTightCone, kPhotons, kPixelClusters, kPixelFEDSize, kPixelTracksL3, kRecCorjets, kRecjets, kRecmet, kRecoPFJets, kRecoPFTaus, kRecoVerticesHLT, kRecoVerticesOffline0, kSimhit, kTaus, ktheRecoPFTauDiscrAgainstElec, ktheRecoPFTauDiscrAgainstMuon, ktheRecoPFTauDiscrByIsolation, ktheRecoPFTauDiscrByTanCHalfPercent, ktheRecoPFTauDiscrByTanCOnePercent, ktheRecoPFTauDiscrByTanCQuarterPercent, ktheRecoPFTauDiscrByTanCTenthPercent, kTrkMucands, L1IsoPixelSeeds_, L1NonIsoPixelSeeds_, lastLumi_, edm::EventBase::luminosityBlock(), m_correctedBJets, m_file, m_l1extraemi, m_l1extraemn, m_l1extrajetc, m_l1extrajetf, m_l1extramet, m_l1extramht, m_l1extramu, m_l1extrataujet, m_lifetimeBJetsL25, m_lifetimeBJetsL25SingleTrack, m_lifetimeBJetsL3, m_lifetimeBJetsL3SingleTrack, m_performanceBJetsL25, m_performanceBJetsL3, m_rawBJets, mct_analysis_, mctruth_, combine::missing, MuCandTag2_, MuCandTag3_, MuIsolTag2_, MuIsolTag3_, MuNoVtxCandTag2_, metsig::muon, muon_, muon_analysis_, MuTrkIsolTag3_, NonIsoElectron_, NonIsoEleHcal_, NonIsoEleTrackIsol_, NonIsoHoverEH_, NonIsoPhoTrackIsol_, NonIsoR9_, NonIsoR9ID_, oniaPixelTag_, oniaTrackTag_, dbtoconf::out, PFJets_, pfmuon_, PFTau_, PFTauTightCone_, Photon_, interactiveExample::photons, PixelClustersTag_, PixelFEDSizeTag_, PixelTracksTagL3_, reccorjets_, recjets_, recmet_, RecoPFJets_cff::recoPFJets, recoPFJets_, recoPFMet_, RecoPFTau_, RecoPFTauAgainstElec_, RecoPFTauAgainstMuon_, RecoPFTauDiscrByIso_, RecoPFTauDiscrByTanCHalfPercent_, RecoPFTauDiscrByTanCOnePercent_, RecoPFTauDiscrByTanCQuarterPercent_, RecoPFTauDiscrByTanCTenthPercent_, simhits_, towerThreshold_, track_analysis_, TrackerMuonTag_, VertexTagHLT_, VertexTagOffline0_, vrt_analysisHLT_, and vrt_analysisOffline0_.
{ // To get information from the event setup, you must request the "Record" // which contains it and then extract the object you need //edm::ESHandle<CaloGeometry> geometry; //iSetup.get<IdealGeometryRecord>().get(geometry); int iLumi = iEvent.luminosityBlock(); if (iLumi<firstLumi_) return; if (lastLumi_ != -1 && iLumi>lastLumi_) return; // These declarations create handles to the types of records that you want // to retrieve from event "iEvent". edm::Handle<reco::CaloJetCollection> hltjets; edm::Handle<reco::CaloJetCollection> hltcorjets; edm::Handle<reco::CaloJetCollection> hltcorL1L2L3jets; edm::Handle<reco::CaloJetCollection> recjets; edm::Handle<reco::CaloJetCollection> reccorjets; edm::Handle<reco::GenJetCollection> genjets; edm::Handle<CaloTowerCollection> caloTowers; edm::Handle<reco::CaloMETCollection> recmet; edm::Handle<reco::PFMETCollection> recoPFMet; edm::Handle<reco::GenMETCollection> genmet; edm::Handle<reco::METCollection> ht; edm::Handle<reco::PFJetCollection> recoPFJets; edm::Handle<reco::CandidateView> mctruth; edm::Handle<GenEventInfoProduct> genEventInfo; edm::Handle<std::vector<SimTrack> > simTracks; edm::Handle<std::vector<SimVertex> > simVertices; edm::Handle<reco::MuonCollection> muon; edm::Handle<reco::PFCandidateCollection> pfmuon; edm::Handle<edm::TriggerResults> hltresults; edm::Handle<l1extra::L1EmParticleCollection> l1extemi, l1extemn; edm::Handle<l1extra::L1MuonParticleCollection> l1extmu; edm::Handle<l1extra::L1JetParticleCollection> l1extjetc, l1extjetf, l1exttaujet; edm::Handle<l1extra::L1EtMissParticleCollection> l1extmet,l1extmht; edm::Handle<L1GlobalTriggerReadoutRecord> l1GtRR; edm::Handle< L1GctHFBitCountsCollection > gctBitCounts ; edm::Handle< L1GctHFRingEtSumsCollection > gctRingSums ; edm::Handle<reco::RecoChargedCandidateCollection> mucands2, mucands3, munovtxcands2; edm::Handle<reco::RecoChargedCandidateCollection> oniaPixelCands, oniaTrackCands; edm::Handle<reco::VertexCollection> dimuvtxcands3; edm::Handle<reco::MuonCollection> trkmucands; edm::Handle<edm::ValueMap<bool> > isoMap2, isoMap3, isoTrk10Map3; edm::Handle<reco::HLTTauCollection> taus; edm::Handle<reco::PFTauCollection> pftaus; edm::Handle<reco::PFTauCollection> pftausTightCone; edm::Handle<reco::PFJetCollection> pfjets; // offline reco tau collection and discriminators edm::Handle<reco::PFTauCollection> recoPftaus; edm::Handle<reco::PFTauDiscriminator> theRecoPFTauDiscrByTanCOnePercent; edm::Handle<reco::PFTauDiscriminator> theRecoPFTauDiscrByTanCHalfPercent; edm::Handle<reco::PFTauDiscriminator> theRecoPFTauDiscrByTanCQuarterPercent; edm::Handle<reco::PFTauDiscriminator> theRecoPFTauDiscrByTanCTenthPercent; edm::Handle<reco::PFTauDiscriminator> theRecoPFTauDiscrByIsolation; edm::Handle<reco::PFTauDiscriminator> theRecoPFTauDiscrAgainstMuon; edm::Handle<reco::PFTauDiscriminator> theRecoPFTauDiscrAgainstElec; // btag OpenHLT input collections edm::Handle<edm::View<reco::Jet> > hRawBJets; edm::Handle<edm::View<reco::Jet> > hCorrectedBJets; edm::Handle<reco::JetTagCollection> hLifetimeBJetsL25; edm::Handle<reco::JetTagCollection> hLifetimeBJetsL3; edm::Handle<reco::JetTagCollection> hLifetimeBJetsL25SingleTrack; edm::Handle<reco::JetTagCollection> hLifetimeBJetsL3SingleTrack; edm::Handle<reco::JetTagCollection> hPerformanceBJetsL25; edm::Handle<reco::JetTagCollection> hPerformanceBJetsL3; // egamma OpenHLT input collections edm::Handle<reco::GsfElectronCollection> electrons; edm::Handle<reco::PhotonCollection> photons; edm::Handle<reco::RecoEcalCandidateIsolationMap> photonR9IsoHandle; edm::Handle<reco::RecoEcalCandidateIsolationMap> photonR9NonIsoHandle; edm::Handle<reco::RecoEcalCandidateIsolationMap> photonR9IDIsoHandle; edm::Handle<reco::RecoEcalCandidateIsolationMap> photonR9IDNonIsoHandle; edm::Handle<reco::RecoEcalCandidateIsolationMap> photonHoverEHIsoHandle; edm::Handle<reco::RecoEcalCandidateIsolationMap> photonHoverEHNonIsoHandle; edm::Handle<reco::ElectronCollection> electronIsoHandle; edm::Handle<reco::ElectronCollection> electronNonIsoHandle; edm::Handle<reco::RecoEcalCandidateIsolationMap> electronR9IsoHandle; edm::Handle<reco::RecoEcalCandidateIsolationMap> electronR9NonIsoHandle; edm::Handle<reco::RecoEcalCandidateIsolationMap> electronR9IDIsoHandle; edm::Handle<reco::RecoEcalCandidateIsolationMap> electronR9IDNonIsoHandle; edm::Handle<reco::ElectronIsolationMap> NonIsoTrackEleIsolMap; edm::Handle<reco::ElectronIsolationMap> TrackEleIsolMap; edm::Handle<reco::ElectronSeedCollection> L1IsoPixelSeedsMap; edm::Handle<reco::ElectronSeedCollection> L1NonIsoPixelSeedsMap; edm::Handle<reco::RecoEcalCandidateCollection> recoIsolecalcands; edm::Handle<reco::RecoEcalCandidateCollection> recoNonIsolecalcands; edm::Handle<reco::RecoEcalCandidateIsolationMap> EcalIsolMap; edm::Handle<reco::RecoEcalCandidateIsolationMap> EcalNonIsolMap; edm::Handle<reco::RecoEcalCandidateIsolationMap> HcalEleIsolMap; edm::Handle<reco::RecoEcalCandidateIsolationMap> HcalEleNonIsolMap; edm::Handle<reco::RecoEcalCandidateIsolationMap> HcalIsolMap; edm::Handle<reco::RecoEcalCandidateIsolationMap> HcalNonIsolMap; edm::Handle<reco::RecoEcalCandidateIsolationMap> TrackIsolMap; edm::Handle<reco::RecoEcalCandidateIsolationMap> TrackNonIsolMap; edm::Handle<reco::SuperClusterCollection> electronHFClusterHandle; edm::Handle<reco::RecoEcalCandidateCollection> electronHFElectronHandle; // ECAL Activity edm::Handle<reco::RecoEcalCandidateCollection> ActivityCandsHandle; edm::Handle<reco::RecoEcalCandidateIsolationMap> ActivityEcalIsoHandle; edm::Handle<reco::RecoEcalCandidateIsolationMap> ActivityHcalIsoHandle; edm::Handle<reco::RecoEcalCandidateIsolationMap> ActivityTrackIsoHandle; edm::Handle<reco::RecoEcalCandidateIsolationMap> ActivityR9Handle; edm::Handle<reco::RecoEcalCandidateIsolationMap> ActivityR9IDHandle; edm::Handle<reco::RecoEcalCandidateIsolationMap> ActivityHoverEHHandle; // AlCa OpenHLT input collections /* edm::Handle<EBRecHitCollection> ebrechits; edm::Handle<EERecHitCollection> eerechits; edm::Handle<EBRecHitCollection> pi0ebrechits; edm::Handle<EERecHitCollection> pi0eerechits; edm::Handle<HBHERecHitCollection> hbherechits; edm::Handle<HORecHitCollection> horechits; edm::Handle<HFRecHitCollection> hfrechits; */ edm::Handle<reco::IsolatedPixelTrackCandidateCollection> isopixeltracksL3; edm::Handle<reco::IsolatedPixelTrackCandidateCollection> isopixeltracksL2; edm::Handle<reco::VertexCollection> isopixeltrackPixVertices; edm::Handle<reco::RecoChargedCandidateCollection> pixeltracksL3; edm::Handle<FEDRawDataCollection> pixelfedsize; edm::Handle<edmNew::DetSetVector<SiPixelCluster> > pixelclusters; // Reco vertex collection edm::Handle<reco::VertexCollection> recoVertexsHLT; edm::Handle<reco::VertexCollection> recoVertexsOffline0; // new stuff for the egamma EleId edm::InputTag ecalRechitEBTag (std::string("hltEcalRegionalEgammaRecHit:EcalRecHitsEB")); edm::InputTag ecalRechitEETag (std::string("hltEcalRegionalEgammaRecHit:EcalRecHitsEE")); EcalClusterLazyTools lazyTools( iEvent, iSetup, ecalRechitEBTag, ecalRechitEETag); edm::Handle<reco::HFEMClusterShapeAssociationCollection> electronHFClusterAssociation; iEvent.getByLabel(edm::InputTag("hltHFEMClusters"),electronHFClusterAssociation); edm::ESHandle<MagneticField> theMagField; iSetup.get<IdealMagneticFieldRecord>().get(theMagField); edm::Handle<reco::BeamSpot> recoBeamSpotHandle; edm::InputTag BSProducer_(std::string("hltOnlineBeamSpot")); // get EventSetup stuff needed for the AlCa pi0 path edm::ESHandle< EcalElectronicsMapping > ecalmapping; iSetup.get< EcalMappingRcd >().get(ecalmapping); edm::ESHandle<CaloGeometry> geoHandle; iSetup.get<CaloGeometryRecord>().get(geoHandle); edm::ESHandle<CaloTopology> pTopology; iSetup.get<CaloTopologyRecord>().get(pTopology); edm::ESHandle<L1CaloGeometry> l1CaloGeom ; iSetup.get<L1CaloGeometryRecord>().get(l1CaloGeom) ; // extract the collections from the event, check their validity and log which are missing std::vector<MissingCollectionInfo> missing; //get the BeamSpot getCollection( iEvent, missing, recoBeamSpotHandle, BSProducer_ , "Beam Spot handle"); // gets its position reco::BeamSpot::Point BSPosition(0,0,0); BSPosition = recoBeamSpotHandle->position(); getCollection( iEvent, missing, hltjets, hltjets_, kHLTjets ); getCollection( iEvent, missing, hltcorjets, hltcorjets_, kHLTCorjets ); getCollection( iEvent, missing, hltcorL1L2L3jets,hltcorL1L2L3jets_, kHLTCorL1L2L3jets ); getCollection( iEvent, missing, recjets, recjets_, kRecjets ); getCollection( iEvent, missing, reccorjets, reccorjets_, kRecCorjets ); getCollection( iEvent, missing, genjets, genjets_, kGenjets ); getCollection( iEvent, missing, recmet, recmet_, kRecmet ); getCollection( iEvent, missing, recoPFMet, recoPFMet_, kPFMet ); getCollection( iEvent, missing, genmet, genmet_, kGenmet ); getCollection( iEvent, missing, caloTowers, calotowers_, kCaloTowers ); getCollection( iEvent, missing, ht, ht_, kHt ); getCollection( iEvent, missing, recoPFJets, recoPFJets_, kRecoPFJets ); getCollection( iEvent, missing, muon, muon_, kMuon ); getCollection( iEvent, missing, pfmuon, pfmuon_, kpfMuon ); getCollection( iEvent, missing, taus, HLTTau_, kTaus ); getCollection( iEvent, missing, pftaus, PFTau_, kPFTaus ); getCollection( iEvent, missing, pftausTightCone, PFTauTightCone_, kPFTausTightCone ); getCollection( iEvent, missing, pfjets, PFJets_, kPFJets ); getCollection( iEvent, missing, recoPftaus, RecoPFTau_, kRecoPFTaus ); getCollection( iEvent, missing, theRecoPFTauDiscrByTanCOnePercent, RecoPFTauDiscrByTanCOnePercent_, ktheRecoPFTauDiscrByTanCOnePercent); getCollection( iEvent, missing, theRecoPFTauDiscrByTanCHalfPercent, RecoPFTauDiscrByTanCHalfPercent_, ktheRecoPFTauDiscrByTanCHalfPercent); getCollection( iEvent, missing, theRecoPFTauDiscrByTanCQuarterPercent, RecoPFTauDiscrByTanCQuarterPercent_, ktheRecoPFTauDiscrByTanCQuarterPercent); getCollection( iEvent, missing, theRecoPFTauDiscrByTanCTenthPercent, RecoPFTauDiscrByTanCTenthPercent_, ktheRecoPFTauDiscrByTanCTenthPercent); getCollection( iEvent, missing, theRecoPFTauDiscrByIsolation, RecoPFTauDiscrByIso_, ktheRecoPFTauDiscrByIsolation); getCollection( iEvent, missing, theRecoPFTauDiscrAgainstMuon, RecoPFTauAgainstMuon_, ktheRecoPFTauDiscrAgainstMuon); getCollection( iEvent, missing, theRecoPFTauDiscrAgainstElec, RecoPFTauAgainstElec_, ktheRecoPFTauDiscrAgainstElec); getCollection( iEvent, missing, hltresults, hltresults_, kHltresults ); getCollection( iEvent, missing, l1extemi, m_l1extraemi, kL1extemi ); getCollection( iEvent, missing, l1extemn, m_l1extraemn, kL1extemn ); getCollection( iEvent, missing, l1extmu, m_l1extramu, kL1extmu ); getCollection( iEvent, missing, l1extjetc, m_l1extrajetc, kL1extjetc ); getCollection( iEvent, missing, l1extjetf, m_l1extrajetf, kL1extjetf ); getCollection( iEvent, missing, l1exttaujet, m_l1extrataujet, kL1exttaujet ); getCollection( iEvent, missing, l1extmet, m_l1extramet, kL1extmet ); getCollection( iEvent, missing, l1extmht, m_l1extramht, kL1extmht ); getCollection( iEvent, missing, l1GtRR, gtReadoutRecord_, kL1GtRR ); getCollection( iEvent, missing, gctBitCounts, gctBitCounts_, kL1GctBitCounts ); getCollection( iEvent, missing, gctRingSums, gctRingSums_, kL1GctRingSums ); getCollection( iEvent, missing, mctruth, mctruth_, kMctruth ); getCollection( iEvent, missing, simTracks, simhits_, kSimhit ); getCollection( iEvent, missing, simVertices, simhits_, kSimhit ); getCollection( iEvent, missing, genEventInfo, genEventInfo_, kGenEventInfo ); getCollection( iEvent, missing, mucands2, MuCandTag2_, kMucands2 ); getCollection( iEvent, missing, munovtxcands2, MuNoVtxCandTag2_, kMunovtxcands2 ); getCollection( iEvent, missing, mucands3, MuCandTag3_, kMucands3 ); getCollection( iEvent, missing, oniaPixelCands, oniaPixelTag_, kOniaPixelCands ); getCollection( iEvent, missing, oniaTrackCands, oniaTrackTag_, kOniaTrackCands ); getCollection( iEvent, missing, trkmucands, TrackerMuonTag_, kTrkMucands ); getCollection( iEvent, missing, dimuvtxcands3, DiMuVtx_, kDimuvtxcands3 ); getCollection( iEvent, missing, isoMap2, MuIsolTag2_, kIsoMap2 ); getCollection( iEvent, missing, isoMap3, MuIsolTag3_, kIsoMap3 ); getCollection( iEvent, missing, isoTrk10Map3, MuTrkIsolTag3_, kIsoTrk10Map3 ); getCollection( iEvent, missing, hRawBJets, m_rawBJets, kBTagJets ); getCollection( iEvent, missing, hCorrectedBJets, m_correctedBJets, kBTagCorrectedJets ); getCollection( iEvent, missing, hLifetimeBJetsL25, m_lifetimeBJetsL25, kBTagLifetimeBJetsL25 ); getCollection( iEvent, missing, hLifetimeBJetsL3, m_lifetimeBJetsL3, kBTagLifetimeBJetsL3 ); getCollection( iEvent, missing, hLifetimeBJetsL25SingleTrack, m_lifetimeBJetsL25SingleTrack, kBTagLifetimeBJetsL25SingleTrack ); getCollection( iEvent, missing, hLifetimeBJetsL3SingleTrack, m_lifetimeBJetsL3SingleTrack, kBTagLifetimeBJetsL3SingleTrack ); getCollection( iEvent, missing, hPerformanceBJetsL25, m_performanceBJetsL25, kBTagPerformanceBJetsL25 ); getCollection( iEvent, missing, hPerformanceBJetsL3, m_performanceBJetsL3, kBTagPerformanceBJetsL3 ); getCollection( iEvent, missing, electrons, Electron_, kElectrons ); getCollection( iEvent, missing, photons, Photon_, kPhotons ); getCollection( iEvent, missing, ActivityCandsHandle, ECALActivity_, kECALActivity); getCollection( iEvent, missing, ActivityEcalIsoHandle, ActivityEcalIso_, kECALActivityEcalIso); getCollection( iEvent, missing, ActivityHcalIsoHandle, ActivityHcalIso_, kECALActivityHcalIso); getCollection( iEvent, missing, ActivityTrackIsoHandle, ActivityTrackIso_, kECALActivityTrackIso); getCollection( iEvent, missing, ActivityR9Handle, ActivityR9_, kECALActivityR9); getCollection( iEvent, missing, ActivityR9IDHandle, ActivityR9ID_, kECALActivityR9ID); getCollection( iEvent, missing, ActivityHoverEHHandle, ActivityHoverEH_, kECALActivityHoverEH); //Read offline eleID results std::vector<edm::Handle<edm::ValueMap<float> > > eIDValueMap(4); // edm::InputTag electronLabelRobustTight_(std::string("eidRobustTight")); // edm::InputTag electronLabelTight_(std::string("eidTight")); // edm::InputTag electronLabelRobustLoose_(std::string("eidRobustLoose")); // edm::InputTag electronLabelLoose_(std::string("eidLoose")); // getCollection( iEvent, missing, eIDValueMap[0], electronLabelRobustLoose_ , "EleId Robust-Loose"); // getCollection( iEvent, missing, eIDValueMap[1], electronLabelRobustTight_ , "EleId Robust-Tight"); // getCollection( iEvent, missing, eIDValueMap[2], electronLabelLoose_ , "EleId Loose"); // getCollection( iEvent, missing, eIDValueMap[3], electronLabelTight_ , "EleId Tight"); //read all the OpenHLT egamma collections getCollection( iEvent, missing, recoIsolecalcands, CandIso_, kCandIso); getCollection( iEvent, missing, recoNonIsolecalcands, CandNonIso_, kCandNonIso); getCollection( iEvent, missing, EcalIsolMap, EcalIso_, kEcalIso); getCollection( iEvent, missing, EcalNonIsolMap, EcalNonIso_, kEcalNonIso); getCollection( iEvent, missing, HcalIsolMap, HcalIsoPho_, kHcalIsoPho); getCollection( iEvent, missing, HcalNonIsolMap, HcalNonIsoPho_, kHcalNonIsoPho); getCollection( iEvent, missing, photonR9IsoHandle, IsoR9_, kIsoR9); getCollection( iEvent, missing, photonR9NonIsoHandle, NonIsoR9_, kNonIsoR9); getCollection( iEvent, missing, photonR9IDIsoHandle, IsoR9ID_, kIsoR9ID); getCollection( iEvent, missing, photonR9IDNonIsoHandle, NonIsoR9ID_, kNonIsoR9ID); getCollection( iEvent, missing, photonHoverEHIsoHandle, IsoHoverEH_, kIsoHoverEH); getCollection( iEvent, missing, photonHoverEHNonIsoHandle,NonIsoHoverEH_, kNonIsoHoverEH); getCollection( iEvent, missing, electronIsoHandle, IsoElectron_, kIsoElectron); getCollection( iEvent, missing, HcalEleIsolMap, IsoEleHcal_, kIsoEleHcal); getCollection( iEvent, missing, TrackEleIsolMap, IsoEleTrackIsol_, kIsoEleTrackIsol); getCollection( iEvent, missing, L1IsoPixelSeedsMap, L1IsoPixelSeeds_, kL1IsoPixelSeeds); getCollection( iEvent, missing, L1NonIsoPixelSeedsMap, L1NonIsoPixelSeeds_, kL1NonIsoPixelSeeds); getCollection( iEvent, missing, electronNonIsoHandle, NonIsoElectron_, kNonIsoElectron); getCollection( iEvent, missing, HcalEleNonIsolMap, NonIsoEleHcal_, kIsoEleHcal); getCollection( iEvent, missing, NonIsoTrackEleIsolMap, NonIsoEleTrackIsol_, kNonIsoEleTrackIsol); getCollection( iEvent, missing, TrackNonIsolMap, NonIsoPhoTrackIsol_, kNonIsoPhoTrackIsol); getCollection( iEvent, missing, TrackIsolMap, IsoPhoTrackIsol_, kIsoPhoTrackIsol); getCollection( iEvent, missing, electronR9IsoHandle, IsoR9_, kIsoR9); getCollection( iEvent, missing, electronR9NonIsoHandle, NonIsoR9_, kNonIsoR9); getCollection( iEvent, missing, electronR9IDIsoHandle, IsoR9ID_, kIsoR9ID); getCollection( iEvent, missing, electronR9IDNonIsoHandle, NonIsoR9ID_, kNonIsoR9ID); getCollection( iEvent, missing, electronHFClusterHandle, HFECALClusters_, kHFECALClusters); getCollection( iEvent, missing, electronHFElectronHandle, HFElectrons_, kHFElectrons); /* getCollection( iEvent, missing, eerechits, EERecHitTag_, kEErechits ); getCollection( iEvent, missing, ebrechits, EBRecHitTag_, kEBrechits ); getCollection( iEvent, missing, pi0eerechits, pi0EERecHitTag_, kpi0EErechits ); getCollection( iEvent, missing, pi0ebrechits, pi0EBRecHitTag_, kpi0EBrechits ); getCollection( iEvent, missing, hbherechits, HBHERecHitTag_, kHBHErechits ); getCollection( iEvent, missing, horechits, HORecHitTag_, kHOrechits ); getCollection( iEvent, missing, hfrechits, HFRecHitTag_, kHFrechits ); */ getCollection( iEvent, missing, isopixeltracksL3, IsoPixelTrackTagL3_, kIsoPixelTracksL3 ); getCollection( iEvent, missing, isopixeltracksL2, IsoPixelTrackTagL2_, kIsoPixelTracksL2 ); getCollection( iEvent, missing, isopixeltrackPixVertices, IsoPixelTrackVerticesTag_, kIsoPixelTrackVertices ); getCollection( iEvent, missing, pixeltracksL3, PixelTracksTagL3_, kPixelTracksL3 ); getCollection( iEvent, missing, pixelfedsize, PixelFEDSizeTag_, kPixelFEDSize ); getCollection( iEvent, missing, pixelclusters, PixelClustersTag_, kPixelClusters ); getCollection( iEvent, missing, recoVertexsHLT, VertexTagHLT_, kRecoVerticesHLT ); getCollection( iEvent, missing, recoVertexsOffline0, VertexTagOffline0_, kRecoVerticesOffline0 ); double ptHat=-1.; if (genEventInfo.isValid()) {ptHat=genEventInfo->qScale();} // print missing collections if (not missing.empty() and (errCnt < errMax())) { errCnt++; std::stringstream out; out << "OpenHLT analyser - missing collections:"; BOOST_FOREACH(const MissingCollectionInfo & entry, missing) out << "\n\t" << entry.first << ": " << entry.second->encode(); edm::LogPrint("OpenHLT") << out.str() << std::endl; if (errCnt == errMax()) edm::LogWarning("OpenHLT") << "Maximum error count reached -- No more messages will be printed."; } // run the analysis, passing required event fragments jet_analysis_.analyze(iEvent, hltjets, hltcorjets, hltcorL1L2L3jets, recjets, reccorjets, genjets, recmet, genmet, ht, taus, pftaus, pftausTightCone, pfjets, recoPftaus, theRecoPFTauDiscrByTanCOnePercent, theRecoPFTauDiscrByTanCHalfPercent, theRecoPFTauDiscrByTanCQuarterPercent, theRecoPFTauDiscrByTanCTenthPercent, theRecoPFTauDiscrByIsolation, theRecoPFTauDiscrAgainstMuon, theRecoPFTauDiscrAgainstElec, recoPFJets, caloTowers, recoPFMet, towerThreshold_, _MinPtGammas, _MinPtChargedHadrons, HltTree); muon_analysis_.analyze( muon, pfmuon, l1extmu, mucands2, isoMap2, mucands3, isoMap3, isoTrk10Map3, oniaPixelCands, oniaTrackCands, dimuvtxcands3, munovtxcands2, trkmucands, theMagField, recoBeamSpotHandle, // BSPosition, HltTree); elm_analysis_.analyze( electrons, photons, electronIsoHandle, electronNonIsoHandle, NonIsoTrackEleIsolMap, TrackEleIsolMap, L1IsoPixelSeedsMap, L1NonIsoPixelSeedsMap, recoIsolecalcands, recoNonIsolecalcands, EcalIsolMap, EcalNonIsolMap, HcalEleIsolMap, HcalEleNonIsolMap, HcalIsolMap, HcalNonIsolMap, TrackIsolMap, TrackNonIsolMap, lazyTools, theMagField, BSPosition, eIDValueMap, photonR9IsoHandle, photonR9NonIsoHandle, electronR9IsoHandle, electronR9NonIsoHandle, photonHoverEHIsoHandle, photonHoverEHNonIsoHandle, photonR9IDIsoHandle, photonR9IDNonIsoHandle, electronR9IDIsoHandle, electronR9IDNonIsoHandle, electronHFClusterHandle, electronHFElectronHandle, electronHFClusterAssociation, ActivityCandsHandle, ActivityEcalIsoHandle, ActivityHcalIsoHandle, ActivityTrackIsoHandle, ActivityR9Handle, ActivityR9IDHandle, ActivityHoverEHHandle, HltTree); mct_analysis_.analyze( mctruth, ptHat, simTracks, simVertices, HltTree); track_analysis_.analyze( isopixeltracksL3, isopixeltracksL2, isopixeltrackPixVertices, pixeltracksL3, pixelfedsize, pixelclusters, HltTree); hlt_analysis_.analyze( hltresults, l1extemi, l1extemn, l1extmu, l1extjetc, l1extjetf, l1exttaujet, l1extmet, l1extmht, l1GtRR, gctBitCounts, gctRingSums, iSetup, iEvent, HltTree); bjet_analysis_.analyze( hRawBJets, hCorrectedBJets, hLifetimeBJetsL25, hLifetimeBJetsL3, hLifetimeBJetsL25SingleTrack, hLifetimeBJetsL3SingleTrack, hPerformanceBJetsL25, hPerformanceBJetsL3, HltTree); vrt_analysisHLT_.analyze( recoVertexsHLT, HltTree); vrt_analysisOffline0_.analyze( recoVertexsOffline0, HltTree); evt_header_.analyze(iEvent, HltTree); // std::cout << " Ending Event Analysis" << std::endl; // After analysis, fill the variables tree if (m_file) m_file->cd(); HltTree->Fill(); }
void HLTAnalyzer::beginRun | ( | const edm::Run & | run, |
const edm::EventSetup & | c | ||
) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 215 of file HLTAnalyzer.cc.
References HLTInfo::beginRun(), and hlt_analysis_.
{ hlt_analysis_.beginRun(run, c); }
void HLTAnalyzer::endJob | ( | void | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 693 of file HLTAnalyzer.cc.
References edm::ParameterSet::dump(), edm::getProcessParameterSet(), HltTree, list(), m_file, and treeWeight.
{ if (m_file) m_file->cd(); const edm::ParameterSet &thepset = edm::getProcessParameterSet(); TList *list = HltTree->GetUserInfo(); list->Add(new TObjString(thepset.dump().c_str())); HltTree->SetWeight(treeWeight); HltTree->Write(); delete HltTree; HltTree = 0; if (m_file) { // if there was a tree file... m_file->Write(); // write out the branches delete m_file; // close and delete the file m_file = 0; // set to zero to clean up } }
static int HLTAnalyzer::errMax | ( | ) | [inline, static, private] |
double HLTAnalyzer::_EtaMax [private] |
Definition at line 190 of file HLTAnalyzer.h.
Referenced by HLTAnalyzer().
double HLTAnalyzer::_EtaMin [private] |
Definition at line 190 of file HLTAnalyzer.h.
Referenced by HLTAnalyzer().
std::string HLTAnalyzer::_HistName [private] |
Definition at line 189 of file HLTAnalyzer.h.
Referenced by HLTAnalyzer().
double HLTAnalyzer::_MinPtChargedHadrons [private] |
Definition at line 191 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
double HLTAnalyzer::_MinPtGammas [private] |
Definition at line 191 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::ActivityEcalIso_ [private] |
Definition at line 154 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::ActivityHcalIso_ [private] |
Definition at line 155 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::ActivityHoverEH_ [private] |
Definition at line 159 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::ActivityR9_ [private] |
Definition at line 157 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::ActivityR9ID_ [private] |
Definition at line 158 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::ActivityTrackIso_ [private] |
Definition at line 156 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
HLTBJet HLTAnalyzer::bjet_analysis_ [private] |
Definition at line 66 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::calotowers_ [private] |
Definition at line 81 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::CandIso_ [private] |
Definition at line 128 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::CandNonIso_ [private] |
Definition at line 129 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::DiMuVtx_ [private] |
Definition at line 100 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::ECALActivity_ [private] |
Definition at line 153 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::EcalIso_ [private] |
Definition at line 130 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::EcalNonIso_ [private] |
Definition at line 131 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::Electron_ [private] |
Definition at line 126 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
HLTEgamma HLTAnalyzer::elm_analysis_ [private] |
Definition at line 68 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
int HLTAnalyzer::errCnt [private] |
Definition at line 186 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
EventHeader HLTAnalyzer::evt_header_ [private] |
Default analyses.
Definition at line 64 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
double HLTAnalyzer::filterEff_ [private] |
Definition at line 79 of file HLTAnalyzer.h.
Referenced by HLTAnalyzer().
int HLTAnalyzer::firstLumi_ [private] |
Definition at line 78 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::gctBitCounts_ [private] |
Definition at line 97 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::gctRingSums_ [private] |
Definition at line 97 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::genEventInfo_ [private] |
Definition at line 81 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::genjets_ [private] |
Definition at line 81 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::genmet_ [private] |
Definition at line 81 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::gtObjectMap_ [private] |
Definition at line 96 of file HLTAnalyzer.h.
edm::InputTag HLTAnalyzer::gtReadoutRecord_ [private] |
Definition at line 96 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::HcalIsoPho_ [private] |
Definition at line 132 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::HcalNonIsoPho_ [private] |
Definition at line 133 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::HFECALClusters_ [private] |
Definition at line 150 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::HFElectrons_ [private] |
Definition at line 151 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
HLTInfo HLTAnalyzer::hlt_analysis_ [private] |
Definition at line 74 of file HLTAnalyzer.h.
Referenced by analyze(), beginRun(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::hltcorjets_ [private] |
Definition at line 82 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::hltcorL1L2L3jets_ [private] |
Definition at line 82 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::hltjets_ [private] |
Definition at line 82 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::hltresults_ [private] |
Definition at line 81 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::HLTTau_ [private] |
Definition at line 101 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
TTree* HLTAnalyzer::HltTree |
Definition at line 57 of file HLTAnalyzer.h.
Referenced by analyze(), endJob(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::ht_ [private] |
Definition at line 81 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::IsoElectron_ [private] |
Definition at line 136 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::IsoEleHcal_ [private] |
Definition at line 138 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::IsoEleTrackIsol_ [private] |
Definition at line 140 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::IsoHoverEH_ [private] |
Definition at line 148 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::IsoPhoTrackIsol_ [private] |
Definition at line 134 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
Definition at line 172 of file HLTAnalyzer.h.
Referenced by analyze().
Definition at line 171 of file HLTAnalyzer.h.
Referenced by analyze().
Definition at line 173 of file HLTAnalyzer.h.
Referenced by analyze().
edm::InputTag HLTAnalyzer::IsoR9_ [private] |
Definition at line 145 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::IsoR9ID_ [private] |
Definition at line 147 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
HLTJets HLTAnalyzer::jet_analysis_ [private] |
Definition at line 65 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
std::string HLTAnalyzer::l1extramc_ [private] |
Definition at line 85 of file HLTAnalyzer.h.
Referenced by HLTAnalyzer().
std::string HLTAnalyzer::l1extramu_ [private] |
Definition at line 85 of file HLTAnalyzer.h.
Referenced by HLTAnalyzer().
edm::InputTag HLTAnalyzer::L1IsoPixelSeeds_ [private] |
Definition at line 142 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
Definition at line 143 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
int HLTAnalyzer::lastLumi_ [private] |
Definition at line 78 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::m_correctedBJets [private] |
Definition at line 117 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
TFile* HLTAnalyzer::m_file [private] |
Definition at line 192 of file HLTAnalyzer.h.
Referenced by analyze(), endJob(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::m_l1extraemi [private] |
Definition at line 87 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::m_l1extraemn [private] |
Definition at line 88 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::m_l1extrajetc [private] |
Definition at line 89 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::m_l1extrajetf [private] |
Definition at line 90 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::m_l1extramet [private] |
Definition at line 92 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::m_l1extramht [private] |
Definition at line 93 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::m_l1extramu [private] |
Definition at line 86 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::m_l1extrataujet [private] |
Definition at line 91 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::m_lifetimeBJetsL25 [private] |
Definition at line 118 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
Definition at line 120 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::m_lifetimeBJetsL3 [private] |
Definition at line 119 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
Definition at line 121 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
Definition at line 122 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
Definition at line 123 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::m_rawBJets [private] |
Definition at line 116 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
HLTMCtruth HLTAnalyzer::mct_analysis_ [private] |
Definition at line 69 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::mctruth_ [private] |
Definition at line 95 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::MuCandTag2_ [private] |
Definition at line 99 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::MuCandTag3_ [private] |
Definition at line 99 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::MuIsolTag2_ [private] |
Definition at line 99 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::MuIsolTag3_ [private] |
Definition at line 99 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::MuNoVtxCandTag2_ [private] |
Definition at line 99 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::muon_ [private] |
Definition at line 83 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
HLTMuon HLTAnalyzer::muon_analysis_ [private] |
Definition at line 67 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::MuTrkIsolTag3_ [private] |
Definition at line 99 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::NonIsoElectron_ [private] |
Definition at line 137 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::NonIsoEleHcal_ [private] |
Definition at line 139 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
Definition at line 141 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::NonIsoHoverEH_ [private] |
Definition at line 149 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
Definition at line 135 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::NonIsoR9_ [private] |
Definition at line 144 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::NonIsoR9ID_ [private] |
Definition at line 146 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::oniaPixelTag_ [private] |
Definition at line 100 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::oniaTrackTag_ [private] |
Definition at line 100 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::particleMapSource_ [private] |
Definition at line 95 of file HLTAnalyzer.h.
edm::InputTag HLTAnalyzer::PFJets_ [private] |
Definition at line 102 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::pfmuon_ [private] |
Definition at line 84 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::PFTau_ [private] |
Definition at line 101 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::PFTauTightCone_ [private] |
Definition at line 101 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::Photon_ [private] |
Definition at line 127 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::PixelClustersTag_ [private] |
Definition at line 180 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::PixelFEDSizeTag_ [private] |
Definition at line 179 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::PixelTracksTagL3_ [private] |
Definition at line 178 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::reccorjets_ [private] |
Definition at line 81 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::recjets_ [private] |
Definition at line 81 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::recmet_ [private] |
Definition at line 81 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::recoPFJets_ [private] |
Definition at line 81 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::recoPFMet_ [private] |
Definition at line 81 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::RecoPFTau_ [private] |
Definition at line 105 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
Definition at line 112 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
Definition at line 111 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
Definition at line 110 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
Definition at line 107 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
Definition at line 106 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
Definition at line 108 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
Definition at line 109 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::simhits_ [private] |
Definition at line 95 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
int HLTAnalyzer::towerThreshold_ [private] |
Definition at line 78 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
HLTTrack HLTAnalyzer::track_analysis_ [private] |
Definition at line 73 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::TrackerMuonTag_ [private] |
Definition at line 100 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
double HLTAnalyzer::treeWeight [private] |
Definition at line 79 of file HLTAnalyzer.h.
Referenced by endJob(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::VertexTagHLT_ [private] |
Definition at line 183 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
edm::InputTag HLTAnalyzer::VertexTagOffline0_ [private] |
Definition at line 184 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
RECOVertex HLTAnalyzer::vrt_analysisHLT_ [private] |
Definition at line 75 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
RECOVertex HLTAnalyzer::vrt_analysisOffline0_ [private] |
Definition at line 76 of file HLTAnalyzer.h.
Referenced by analyze(), and HLTAnalyzer().
double HLTAnalyzer::xSection_ [private] |
Definition at line 79 of file HLTAnalyzer.h.
Referenced by HLTAnalyzer().