CMS 3D CMS Logo

Public Member Functions | Private Attributes

edm::InputTag Class Reference

#include <InputTag.h>

List of all members.

Public Member Functions

BranchTypebranchType () const
size_t & cachedOffset () const
std::string encode () const
int & fillCount () const
 InputTag (std::string const &label, std::string const &instance, std::string const &processName="")
 InputTag (std::string const &s)
 InputTag ()
 InputTag (char const *label, char const *instance, char const *processName="")
std::string const & instance () const
std::string const & label () const
bool operator== (InputTag const &tag) const
std::string const & process () const
void const *& productRegistry () const
TypeIDtypeID () const
 ~InputTag ()

Private Attributes

BranchType branchType_
size_t cachedOffset_
int fillCount_
std::string instance_
std::string label_
std::string process_
void const * productRegistry_
TypeID typeID_

Detailed Description

Definition at line 12 of file InputTag.h.


Constructor & Destructor Documentation

edm::InputTag::InputTag ( )

Definition at line 7 of file InputTag.cc.

edm::InputTag::InputTag ( std::string const &  label,
std::string const &  instance,
std::string const &  processName = "" 
)

Definition at line 19 of file InputTag.cc.

edm::InputTag::InputTag ( char const *  label,
char const *  instance,
char const *  processName = "" 
)

Definition at line 30 of file InputTag.cc.

edm::InputTag::InputTag ( std::string const &  s)

the input string is of the form: label label:instance label:instance:process

Definition at line 42 of file InputTag.cc.

References edm::errors::Configuration, Exception, instance_, label_, process_, edm::tokenize(), and EcalElecEmulTccFlatFileProducerFromTPG_cfg::tokens.

  : label_(""),
    instance_(""),
    process_(),
    branchType_(NumBranchTypes),
    cachedOffset_(0U),
    fillCount_(0),
    productRegistry_(0) {

    // string is delimited by colons
    std::vector<std::string> tokens = tokenize(s, ":");
    size_t nwords = tokens.size();
    if(nwords > 3) {
      throw edm::Exception(errors::Configuration,"InputTag")
        << "Input tag " << s << " has " << nwords << " tokens";
    }
    if(nwords > 0) label_ = tokens[0];
    if(nwords > 1) instance_ = tokens[1];
    if(nwords > 2) process_=tokens[2];
  }
edm::InputTag::~InputTag ( )

Definition at line 63 of file InputTag.cc.

{}

Member Function Documentation

BranchType& edm::InputTag::branchType ( ) const [inline]

Definition at line 35 of file InputTag.h.

References branchType_.

Referenced by edm::Principal::maybeFlushCache().

{return branchType_;}
size_t& edm::InputTag::cachedOffset ( ) const [inline]
std::string edm::InputTag::encode ( ) const

Definition at line 72 of file InputTag.cc.

References instance_, label_, process_, and query::result.

Referenced by GenericTriggerEventFlag::acceptDcs(), TriggerHelper::acceptDcs(), TriggerHelper::acceptGt(), GenericTriggerEventFlag::acceptGt(), GenericTriggerEventFlag::acceptGtLogicalExpression(), GenericTriggerEventFlag::acceptHlt(), TriggerHelper::acceptHlt(), trigger::TriggerFilterObjectWithRefs::addCollectionTag(), CSCComparatorDigiValidation::analyze(), TriggerValidator::analyze(), CSCCLCTDigiValidation::analyze(), HLTrigReport::analyze(), CSCWireDigiValidation::analyze(), TriggerSummaryAnalyzerAOD::analyze(), CSCALCTDigiValidation::analyze(), HLTHiggsBits::analyze(), TriggerSummaryAnalyzerRAW::analyze(), CSCStripDigiValidation::analyze(), MuTriggerAnalyzer::analyze(), TopValidation::analyze(), pat::PATTriggerEventProducer::beginLuminosityBlock(), pat::PATTriggerEventProducer::beginRun(), HLTMonBTagIPSource::beginRun(), HLTMonBTagMuSource::beginRun(), edm::CFWriter::CFWriter(), edm::MixingWorker< T >::checkSignal(), trigger::TriggerEvent::collectionIndex(), pat::helper::IsoDepositIsolator::description(), pat::helper::SimpleIsolator::description(), AlignmentProducer::duringLoop(), egammaisolation::EgammaRecHitExtractor::EgammaRecHitExtractor(), edm::encode(), DimuonStatistics::endJob(), AlignmentProducer::endRun(), TriggerSummaryProducerAOD::fillFilterObjectMembers(), HLTSummaryFilter::filter(), HLTDoublet< T1, Tid1, T2, Tid2 >::filter(), HLTHighLevel::filter(), trigger::TriggerEvent::filterIndex(), trigger::TriggerEventWithRefs::filterIndex(), pat::TriggerObjectStandAlone::hasCollection(), pat::TriggerObject::hasCollection(), edm::HiMixingModule::HiMixingModule(), HLT1CaloJetEnergy::HLT1CaloJetEnergy(), HLTDoublet< T1, Tid1, T2, Tid2 >::HLTDoublet(), HLTEcalTowerFilter::HLTEcalTowerFilter(), HLTEventAnalyzerAOD::HLTEventAnalyzerAOD(), HLTEventAnalyzerRAW::HLTEventAnalyzerRAW(), HLTFiltCand::HLTFiltCand(), HLTGlobalSums< T, Tid >::HLTGlobalSums(), HLTJetTag::HLTJetTag(), HLTMuonDimuonL2Filter::HLTMuonDimuonL2Filter(), HLTMuonDimuonL3Filter::HLTMuonDimuonL3Filter(), HLTMuonIsoFilter::HLTMuonIsoFilter(), HLTMuonL1Filter::HLTMuonL1Filter(), HLTMuonL1RegionalFilter::HLTMuonL1RegionalFilter(), HLTMuonL1toL3TkPreFilter::HLTMuonL1toL3TkPreFilter(), HLTMuonL2PreFilter::HLTMuonL2PreFilter(), HLTMuonL3PreFilter::HLTMuonL3PreFilter(), HLTPixlMBFilt::HLTPixlMBFilt(), HLTPixlMBForAlignmentFilter::HLTPixlMBForAlignmentFilter(), HLTPrescaleRecorder::HLTPrescaleRecorder(), HLTRFilter::HLTRFilter(), HLTRHemisphere::HLTRHemisphere(), HLTrigReport::HLTrigReport(), HLTSinglet< T, Tid >::HLTSinglet(), HLTSmartSinglet< T, Tid >::HLTSmartSinglet(), HLTSummaryFilter::HLTSummaryFilter(), HLTHighLevel::init(), TriggerHelper::initRun(), GenericTriggerEventFlag::initRun(), edm::MixingModule::MixingModule(), ZGoldenFilter::newEvent(), cand::parser::operator<<(), PrescaleWeightProvider::prescaleWeight(), pat::PATElectronProducer::produce(), pat::PATTriggerProducer::produce(), pat::PATMETProducer::produce(), pat::PATMuonProducer::produce(), pat::PATTriggerEventProducer::produce(), PdfWeightProducer::produce(), TrackClusterRemover::produce(), pat::TriggerObject::setCollection(), trigger::TriggerEventWithRefs::TriggerFilterObject::TriggerFilterObject(), and trigger::TriggerEvent::TriggerFilterObject::TriggerFilterObject().

                                   {
    //NOTE: since the encoding gets used to form the configuration hash I did not want
    // to change it so that not specifying a process would cause two colons to appear in the
    // encoding and thus not being backwards compatible
    static std::string const separator(":");
    std::string result = label_;
    if(!instance_.empty() || !process_.empty()) {
      result += separator + instance_;
    }
    if(!process_.empty()) {
      result += separator + process_;
    }
    return result;
  }
int& edm::InputTag::fillCount ( ) const [inline]
std::string const& edm::InputTag::instance ( ) const [inline]

Definition at line 26 of file InputTag.h.

References instance_.

Referenced by MatacqProducer::addMatacqData(), EETriggerTowerTask::analyze(), CSCTFAnalyzer::analyze(), MultiTrackValidator::analyze(), HLTJetMETDQMSource::analyze(), L1TdeCSCTF::analyze(), JetMETHLTOfflineSource::analyze(), FourVectorHLTOnline::analyze(), FourVectorHLTriggerOffline::analyze(), SiStripSpyDisplayModule::analyze(), FourVectorHLTOffline::analyze(), L1GtPatternGenerator::analyze(), CSCTFanalyzer::analyze(), EBTriggerTowerTask::analyze(), L1TCSCTF::analyze(), BTagHLTOfflineSource::analyze(), TrigResRateMon::analyze(), MuonTrackAnalyzer::beginJob(), MuonTrackResidualAnalyzer::beginJob(), pat::PATTriggerEventProducer::beginRun(), pat::PATTriggerProducer::beginRun(), MultiTrackValidator::beginRun(), MuonTrackValidator::beginRun(), BOOST_PYTHON_MODULE(), edm::MixingModule::branchesActivate(), edm::CFWriter::branchesActivate(), edm::MixingWorker< T >::checkSignal(), edm::InputTagSelector::doMatch(), L1GtPatternGenerator::extractGlobalTriggerData(), edm::Event::getByLabel(), edm::PrincipalGetAdapter::getByLabel_(), fwlite::EventBase::getByLabelImpl(), fwlite::RunBase::getByLabelImpl(), fwlite::LuminosityBlockBase::getByLabelImpl(), JetPlusTrackCorrector::getElectrons(), JetPlusTrackCorrector::getMuons(), edm::getProductByTag(), GlobalDigisAnalyzer::GlobalDigisAnalyzer(), GlobalDigisProducer::GlobalDigisProducer(), GlobalHitsAnalyzer::GlobalHitsAnalyzer(), GlobalHitsProdHist::GlobalHitsProdHist(), GlobalHitsProducer::GlobalHitsProducer(), GlobalRecHitsAnalyzer::GlobalRecHitsAnalyzer(), GlobalRecHitsProducer::GlobalRecHitsProducer(), pat::TriggerObjectStandAlone::hasCollection(), pat::TriggerObject::hasCollection(), edm::HiMixingModule::HiMixingModule(), HLTMuonMatchAndPlot::HLTMuonMatchAndPlot(), JetPlusTrackCorrector::jetTrackAssociation(), JetPlusTrackCorrector::jtaUsingEventData(), MuonAssociatorEDProducer::MuonAssociatorEDProducer(), TriggerSummaryProducerAOD::OrderInputTag::operator()(), edm::operator<<(), pat::PATTriggerProducer::PATTriggerProducer(), EventWithHistoryFilter::printConfig(), SiStripZeroSuppression::processRaw(), EcalTPSkimmer::produce(), EcalTBWeightUncalibRecHitProducer::produce(), GamIsoDetIdCollectionProducer::produce(), EgammaSCCorrectionMaker::produce(), CSCTFPacker::produce(), EleIsoDetIdCollectionProducer::produce(), CSCTFUnpacker::produce(), HiEgammaSCCorrectionMaker::produce(), CSCTFTrackProducer::produce(), MuonAssociatorEDProducer::produce(), CSCTriggerPrimitivesProducer::produce(), EcalRecHitProducer::produce(), EcalUncalibRecHitProducer::produce(), CSCTFCandidateProducer::produce(), EcalRecalibRecHitProducer::produce(), EcalRecHitWorkerRecover::run(), TrackerHitProducer::TrackerHitProducer(), and edm::HiMixingModule::verifyRegistry().

{return instance_;}
std::string const& edm::InputTag::label ( ) const [inline]

Definition at line 25 of file InputTag.h.

References label_.

Referenced by edm::DataMixingEMDigiWorker::addEMSignals(), MatacqProducer::addMatacqData(), edm::DataMixingSiStripRawWorker::addSiStripSignals(), METTester::analyze(), L1TGMT::analyze(), L1TGT::analyze(), EgammaBasicClusters::analyze(), L1TRCT::analyze(), EETriggerTowerTask::analyze(), TopDiLeptonOfflineDQM::analyze(), CSCTFAnalyzer::analyze(), L1TCompare::analyze(), MultiTrackValidator::analyze(), MuonIdVal::analyze(), ParticleListDrawer::analyze(), GctErrorAnalyzer::analyze(), HLTJetMETDQMSource::analyze(), L1TRPCTPG::analyze(), L1Scalers::analyze(), ErsatzMEt::analyze(), JPTJetTester::analyze(), L1GtTrigReport::analyze(), L1TdeCSCTF::analyze(), L1TdeRCT::analyze(), JetMETHLTOfflineSource::analyze(), EgammaSuperClusters::analyze(), FourVectorHLTOnline::analyze(), L1TECALTPG::analyze(), HLTOniaSource::analyze(), FourVectorHLTriggerOffline::analyze(), HLTJetMETValidation::analyze(), L1TDTTPG::analyze(), GctDigiToPsbText::analyze(), L1TRPCTF::analyze(), SiStripSpyDisplayModule::analyze(), L1GtPatternGenerator::analyze(), FourVectorHLTOffline::analyze(), PFJetTester::analyze(), TopSingleLeptonDQM::analyze(), CaloJetTester::analyze(), SiPixelErrorsDigisToCalibDigis::analyze(), EBTriggerTowerTask::analyze(), L1TCSCTF::analyze(), L1TCSCTPG::analyze(), BTagHLTOfflineSource::analyze(), CSCTFanalyzer::analyze(), L1TDTTF::analyze(), RecoTauPlotDiscriminator::analyze(), TrigResRateMon::analyze(), EgammaObjects::analyzeElectrons(), EgammaObjects::analyzePhotons(), TkAlCaRecoMonitor::beginJob(), MuonTrackAnalyzer::beginJob(), MuonTrackResidualAnalyzer::beginJob(), ElectronMcFakeValidator::beginJob(), pat::PATTriggerEventProducer::beginLuminosityBlock(), RecoMuonValidator::beginRun(), pat::PATTriggerEventProducer::beginRun(), pat::PATTriggerProducer::beginRun(), SiPixelOfflineCalibAnalysisBase::beginRun(), HLTOniaSource::beginRun(), METTester::beginRun(), SiStripLAProfileBooker::beginRun(), SiPixelTrackResidualSource::beginRun(), MultiTrackValidator::beginRun(), MuonTrackValidator::beginRun(), ElectronTagProbeAnalyzer::book(), SiPixelHitEfficiencyModule::book(), SiPixelClusterModule::book(), SiPixelTrackResidualModule::book(), SiPixelRecHitModule::book(), SiPixelDigiModule::book(), ElectronAnalyzer::book(), SiPixelRawDataErrorModule::bookFED(), BTagPerformanceAnalyzerOnData::bookHistos(), SiPixelHLTSource::bookMEs(), BOOST_PYTHON_MODULE(), edm::MixingModule::branchesActivate(), edm::CFWriter::branchesActivate(), CaloJetTester::CaloJetTester(), edm::MixingWorker< T >::checkSignal(), DumpGctDigis::doEM(), DumpGctDigis::doEnergySums(), DumpGctDigis::doFibres(), DumpGctDigis::doInternEM(), DumpGctDigis::doJets(), edm::InputTagSelector::doMatch(), DumpGctDigis::doRctEM(), DumpGctDigis::doRegions(), DTHitAssociator::DTHitAssociator(), ElectronMcFakeValidator::endJob(), L1GtPatternGenerator::extractGlobalTriggerData(), TopSingleLepton::MonitorEnsemble::fill(), TopDiLeptonOffline::MonitorEnsemble::fill(), HcalTBTriggerFilter::filter(), HiggsToWW2LeptonsSkim::filter(), TtDecaySelection::filter(), edm::Event::getByLabel(), edm::PrincipalGetAdapter::getByLabel_(), fwlite::EventBase::getByLabelImpl(), fwlite::RunBase::getByLabelImpl(), fwlite::LuminosityBlockBase::getByLabelImpl(), JetPlusTrackCorrector::getElectrons(), JetPlusTrackCorrector::getMuons(), edm::getProductByTag(), GlobalDigisAnalyzer::GlobalDigisAnalyzer(), GlobalDigisProducer::GlobalDigisProducer(), GlobalHitsAnalyzer::GlobalHitsAnalyzer(), GlobalHitsProdHist::GlobalHitsProdHist(), GlobalHitsProducer::GlobalHitsProducer(), GlobalRecHitsAnalyzer::GlobalRecHitsAnalyzer(), GlobalRecHitsProducer::GlobalRecHitsProducer(), pat::TriggerObjectStandAlone::hasCollection(), pat::TriggerObject::hasCollection(), triggerExpression::Data::hasHLT(), triggerExpression::Data::hasL1T(), HcalHitSelection::HcalHitSelection(), HiGenCleaner< T2 >::HiGenCleaner(), edm::HiMixingModule::HiMixingModule(), HLTAnalyzer::HLTAnalyzer(), HLTBitAnalyzer::HLTBitAnalyzer(), HLTMonElectronConsumer::HLTMonElectronConsumer(), HLTMuonMatchAndPlot::HLTMuonMatchAndPlot(), EwkElecDQM::init_histograms(), WMuNuValidator::init_histograms(), EwkMuDQM::init_histograms(), PrescaleWeightProvider::initRun(), JetEnergyShift::JetEnergyShift(), JetPlusTrackCorrector::jetTrackAssociation(), JPTJetTester::JPTJetTester(), JetPlusTrackCorrector::jtaUsingEventData(), L1TDTTF::L1TDTTF(), MuonAssociatorEDProducer::MuonAssociatorEDProducer(), cms::MuonMET::MuonMET(), MuonTruth::MuonTruth(), TriggerSummaryProducerAOD::OrderInputTag::operator()(), edm::operator<<(), pat::PATTriggerProducer::PATTriggerProducer(), PFJetTester::PFJetTester(), PrescaleWeightProvider::PrescaleWeightProvider(), EventWithHistoryFilter::printConfig(), HcalHitSelection::produce(), pat::PATElectronProducer::produce(), pat::JetCorrFactorsProducer::produce(), MuonSeedOrcaPatternRecognition::produce(), EcalTPSkimmer::produce(), pat::PATTriggerProducer::produce(), EcalTBWeightUncalibRecHitProducer::produce(), ConversionProducer::produce(), EgammaSCCorrectionMaker::produce(), CSCTFPacker::produce(), SiStripElectronAssociator::produce(), GctDigiToRaw::produce(), HiSpikeCleaner::produce(), CSCTFUnpacker::produce(), L3MuonCandidateProducerFromMuons::produce(), HiEgammaSCCorrectionMaker::produce(), PhotonCoreProducer::produce(), EgammaHLTMulti5x5ClusterProducer::produce(), cms::MuonMET::produce(), HcalDigiToRaw::produce(), CSCTFTrackProducer::produce(), pat::PATMuonProducer::produce(), AlCaHOCalibProducer::produce(), PhotonProducer::produce(), ConvertedPhotonProducer::produce(), EgammaHLTEcalRecIsolationProducer::produce(), pat::PATTriggerEventProducer::produce(), EgammaHLTIslandClusterProducer::produce(), EgammaHLTHybridClusterProducer::produce(), CastorDigiToRaw::produce(), MuonAssociatorEDProducer::produce(), EcalRecHitProducer::produce(), EgammaEcalRecHitIsolationProducer::produce(), CSCTriggerPrimitivesProducer::produce(), EcalUncalibRecHitProducer::produce(), EcalRecalibRecHitProducer::produce(), JetExtender::produce(), ConversionTrackCandidateProducer::produce(), CSCTFCandidateProducer::produce(), L1GlobalTriggerPSB::receiveGctObjectData(), RecoTauPlotDiscriminator::RecoTauPlotDiscriminator(), RPCHitAssociator::RPCHitAssociator(), EcalRecHitWorkerRecover::run(), triggerExpression::Data::setEvent(), SiStripElectronAssociator::SiStripElectronAssociator(), TauMVATrainer::TauMVATrainer(), TauTagValidation::TauTagValidation(), TrackerHitProducer::TrackerHitProducer(), TracktoRPC::TracktoRPC(), and edm::HiMixingModule::verifyRegistry().

{return label_;} 
bool edm::InputTag::operator== ( InputTag const &  tag) const

Definition at line 65 of file InputTag.cc.

References instance_, label_, and process_.

                                                     {
    return (label_ == tag.label_)  
        && (instance_ == tag.instance_)
        && (process_ == tag.process_);
  }
std::string const& edm::InputTag::process ( ) const [inline]

an empty string means find the most recently produced product with the label and instance

Definition at line 29 of file InputTag.h.

References process_.

Referenced by TriggerHelper::acceptHltLogicalExpression(), GenericTriggerEventFlag::acceptHltLogicalExpression(), MultiTrackValidator::analyze(), HLTJetMETDQMSource::analyze(), L1TDTTPG::analyze(), L1TDTTF::analyze(), MuonTrackAnalyzer::beginJob(), MuonTrackResidualAnalyzer::beginJob(), pat::PATTriggerEventProducer::beginRun(), TrackerDpgAnalysis::beginRun(), pat::PATTriggerProducer::beginRun(), HLTMonBitSummary::beginRun(), EwkMuLumiMonitorDQM::beginRun(), HLTrigReport::beginRun(), CandidateTriggerObjectProducer::beginRun(), MultiTrackValidator::beginRun(), MuonTrackValidator::beginRun(), BOOST_PYTHON_MODULE(), edm::InputTagSelector::doMatch(), ZeeCandidateFilter::filter(), edm::Event::getByLabel(), edm::PrincipalGetAdapter::getByLabel_(), fwlite::EventBase::getByLabelImpl(), fwlite::RunBase::getByLabelImpl(), fwlite::LuminosityBlockBase::getByLabelImpl(), JetPlusTrackCorrector::getElectrons(), JetPlusTrackCorrector::getMuons(), edm::getProductByTag(), pat::TriggerObjectStandAlone::hasCollection(), pat::TriggerObject::hasCollection(), TriggerHelper::initRun(), PrescaleWeightProvider::initRun(), GenericTriggerEventFlag::initRun(), JetPlusTrackCorrector::jetTrackAssociation(), JetPlusTrackCorrector::jtaUsingEventData(), L1TDTTF::L1TDTTF(), TriggerSummaryProducerAOD::OrderInputTag::operator()(), edm::operator<<(), pat::PATTriggerProducer::PATTriggerProducer(), PrescaleWeightProvider::PrescaleWeightProvider(), EventWithHistoryFilter::printConfig(), and CandidateTriggerObjectProducer::produce().

{return process_;} 
void const*& edm::InputTag::productRegistry ( ) const [inline]

Definition at line 41 of file InputTag.h.

References productRegistry_.

Referenced by edm::Principal::maybeFlushCache().

{return productRegistry_;}
TypeID& edm::InputTag::typeID ( ) const [inline]

Definition at line 33 of file InputTag.h.

References typeID_.

Referenced by edm::Principal::maybeFlushCache().

{return typeID_;}

Member Data Documentation

Definition at line 47 of file InputTag.h.

Referenced by branchType().

size_t edm::InputTag::cachedOffset_ [mutable, private]

Definition at line 49 of file InputTag.h.

Referenced by cachedOffset().

int edm::InputTag::fillCount_ [mutable, private]

Definition at line 50 of file InputTag.h.

Referenced by fillCount().

std::string edm::InputTag::instance_ [private]

Definition at line 45 of file InputTag.h.

Referenced by encode(), InputTag(), instance(), and operator==().

std::string edm::InputTag::label_ [private]

Definition at line 44 of file InputTag.h.

Referenced by encode(), InputTag(), label(), and operator==().

std::string edm::InputTag::process_ [private]

Definition at line 46 of file InputTag.h.

Referenced by encode(), InputTag(), operator==(), and process().

void const* edm::InputTag::productRegistry_ [mutable, private]

Definition at line 51 of file InputTag.h.

Referenced by productRegistry().

TypeID edm::InputTag::typeID_ [mutable, private]

Definition at line 48 of file InputTag.h.

Referenced by typeID().