CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes

edm::EventSetupRecordIntervalFinder Class Reference

#include <EventSetupRecordIntervalFinder.h>

Inheritance diagram for edm::EventSetupRecordIntervalFinder:
BeamSpotFakeConditions CaloMiscalibTools CaloMiscalibToolsMC CaloTPGTranscoderULUTs CastorHardcodeCalibrations CastorTextCalibrations CondDBESSource CSCBadChambersConditions CSCBadStripsConditions CSCBadWiresConditions CSCChamberIndexValues CSCChamberMapValues CSCChamberTimeCorrectionsValues CSCChipSpeedCorrectionDBConditions CSCCrateMapValues CSCCrosstalkConditions CSCCrosstalkDBConditions CSCDBL1TPParametersConditions CSCDDUMapValues CSCFakeCrosstalkConditions CSCFakeDBCrosstalk CSCFakeDBCrosstalkPopCon CSCFakeDBGains CSCFakeDBGainsPopCon CSCFakeDBNoiseMatrix CSCFakeDBPedestals CSCFakeGainsConditions CSCFakeNoiseMatrixConditions CSCFakePedestalsConditions CSCGainsConditions CSCGainsDBConditions CSCL1TPParametersConditions CSCNoiseMatrixConditions CSCNoiseMatrixDBConditions CSCPedestalsDBConditions DTFakeT0ESProducer DTFakeTTrigESProducer DTFakeVDriftESProducer EcalTrivialConditionRetriever edm::EmptyESSource edm::ESProducerLooper edm::eventsetup::DependentRecordIntervalFinder edm::eventsetup::IntersectingIOVRecordIntervalFinder ElectronLikelihoodESSource ESTrivialConditionRetriever FakeAlignmentSource FWLiteESSource HcalHardcodeCalibrations HcalOmdsCalibrations HcalTextCalibrations HepPDTESSource HiTrivialConditionRetriever JetCorrectionService< Corrector > JetCorrectionServiceChain PhysicsTools::MVAComputerESSourceImpl< RecordType > RingESSource RoadMapESSource RPCPerformanceESSource SiPixelFakeCPEGenericErrorParmESSource SiPixelFakeGainESSource SiPixelFakeGainForHLTESSource SiPixelFakeGainOfflineESSource SiPixelFakeLorentzAngleESSource SiPixelFakeQualityESSource SiPixelFakeTemplateDBObjectESSource SiStripFedCablingBuilderFromDb SiStripFedCablingFakeESSource SiStripGainESSource SiStripHashedDetIdFakeESSource SiStripNoiseESSource SiStripPedestalsESSource SiStripQualityFakeESSource SiStripTemplateEmptyFakeESSource< TObject, TRecord > SiStripTemplateFakeESSource< TObject, TRecord, TService > XMLIdealGeometryESSource

List of all members.

Public Member Functions

const
eventsetup::ComponentDescription
descriptionForFinder () const
 EventSetupRecordIntervalFinder ()
std::set
< eventsetup::EventSetupRecordKey
findingForRecords () const
const ValidityIntervalfindIntervalFor (const eventsetup::EventSetupRecordKey &, const IOVSyncValue &)
void setDescriptionForFinder (const eventsetup::ComponentDescription &iDescription)
virtual ~EventSetupRecordIntervalFinder ()

Protected Member Functions

template<class T >
void findingRecord ()
void findingRecordWithKey (const eventsetup::EventSetupRecordKey &)
virtual void setIntervalFor (const eventsetup::EventSetupRecordKey &, const IOVSyncValue &, ValidityInterval &)=0

Private Types

typedef std::map
< eventsetup::EventSetupRecordKey,
ValidityInterval
Intervals

Private Member Functions

virtual void delaySettingRecords ()
 EventSetupRecordIntervalFinder (const EventSetupRecordIntervalFinder &)
const
EventSetupRecordIntervalFinder
operator= (const EventSetupRecordIntervalFinder &)

Private Attributes

eventsetup::ComponentDescription description_
Intervals intervals_

Detailed Description

Definition at line 34 of file EventSetupRecordIntervalFinder.h.


Member Typedef Documentation

Definition at line 77 of file EventSetupRecordIntervalFinder.h.


Constructor & Destructor Documentation

edm::EventSetupRecordIntervalFinder::EventSetupRecordIntervalFinder ( ) [inline]

Definition at line 38 of file EventSetupRecordIntervalFinder.h.

: intervals_() {}
EventSetupRecordIntervalFinder::~EventSetupRecordIntervalFinder ( ) [virtual]

Definition at line 41 of file EventSetupRecordIntervalFinder.cc.

{
}
edm::EventSetupRecordIntervalFinder::EventSetupRecordIntervalFinder ( const EventSetupRecordIntervalFinder ) [private]

Member Function Documentation

void EventSetupRecordIntervalFinder::delaySettingRecords ( ) [private, virtual]

override this method if you need to delay setting what records you will be using until after all modules are loaded

Reimplemented in edm::EmptyESSource, and FWLiteESSource.

Definition at line 78 of file EventSetupRecordIntervalFinder.cc.

{
}
const eventsetup::ComponentDescription& edm::EventSetupRecordIntervalFinder::descriptionForFinder ( ) const [inline]

Definition at line 44 of file EventSetupRecordIntervalFinder.h.

References description_.

Referenced by edm::EmptyESSource::delaySettingRecords().

{ return description_;}
std::set< EventSetupRecordKey > EventSetupRecordIntervalFinder::findingForRecords ( ) const

Definition at line 86 of file EventSetupRecordIntervalFinder.cc.

{
   if(intervals_.empty()) {
      //we are delaying our reading
      const_cast<EventSetupRecordIntervalFinder*>(this)->delaySettingRecords();
   }
   
   std::set<EventSetupRecordKey> returnValue;
   
   for(Intervals::const_iterator itEntry = intervals_.begin(), itEntryEnd = intervals_.end();
       itEntry != itEntryEnd;
       ++itEntry) {
      returnValue.insert(returnValue.end(), itEntry->first);
   }
   return returnValue;
}
template<class T >
void edm::EventSetupRecordIntervalFinder::findingRecord ( ) [inline, protected]

Definition at line 63 of file EventSetupRecordIntervalFinder.h.

References findingRecordWithKey().

                              {
            findingRecordWithKey(eventsetup::EventSetupRecordKey::makeKey<T>());
         }
void EventSetupRecordIntervalFinder::findingRecordWithKey ( const eventsetup::EventSetupRecordKey iKey) [protected]
const ValidityInterval & EventSetupRecordIntervalFinder::findIntervalFor ( const eventsetup::EventSetupRecordKey iKey,
const IOVSyncValue iInstance 
)

returns the 'default constructed' ValidityInterval if no valid interval. If upperbound is not known, it should be set to IOVSyncValue::invalidIOVSyncValue()

Definition at line 61 of file EventSetupRecordIntervalFinder.cc.

{
   Intervals::iterator itFound = intervals_.find(iKey);
   assert(itFound != intervals_.end()) ;
   if(! itFound->second.validFor(iInstance)) {
      setIntervalFor(iKey, iInstance, itFound->second);
   }
   return itFound->second;
}
const EventSetupRecordIntervalFinder& edm::EventSetupRecordIntervalFinder::operator= ( const EventSetupRecordIntervalFinder ) [private]
void edm::EventSetupRecordIntervalFinder::setDescriptionForFinder ( const eventsetup::ComponentDescription iDescription) [inline]
virtual void edm::EventSetupRecordIntervalFinder::setIntervalFor ( const eventsetup::EventSetupRecordKey ,
const IOVSyncValue ,
ValidityInterval  
) [protected, pure virtual]

Implemented in FakeAlignmentSource, CaloMiscalibTools, CaloMiscalibToolsMC, CaloTPGTranscoderULUTs, CastorHardcodeCalibrations, CastorTextCalibrations, EcalTrivialConditionRetriever, ESTrivialConditionRetriever, HcalHardcodeCalibrations, HcalTextCalibrations, CSCBadChambersConditions, CSCBadStripsConditions, CSCBadWiresConditions, CSCChipSpeedCorrectionDBConditions, CSCCrosstalkConditions, CSCCrosstalkDBConditions, CSCDBL1TPParametersConditions, CSCFakeCrosstalkConditions, CSCFakeDBCrosstalk, CSCFakeDBCrosstalkPopCon, CSCFakeDBGains, CSCFakeDBGainsPopCon, CSCFakeDBNoiseMatrix, CSCFakeDBPedestals, CSCFakeGainsConditions, CSCFakeNoiseMatrixConditions, CSCFakePedestalsConditions, CSCGainsConditions, CSCGainsDBConditions, CSCL1TPParametersConditions, CSCNoiseMatrixConditions, CSCNoiseMatrixDBConditions, CSCPedestalsDBConditions, DTFakeT0ESProducer, DTFakeTTrigESProducer, DTFakeVDriftESProducer, RPCPerformanceESSource, SiPixelFakeCPEGenericErrorParmESSource, SiPixelFakeGainESSource, SiPixelFakeGainForHLTESSource, SiPixelFakeGainOfflineESSource, SiPixelFakeLorentzAngleESSource, SiPixelFakeQualityESSource, SiPixelFakeTemplateDBObjectESSource, SiStripGainESSource, SiStripNoiseESSource, SiStripPedestalsESSource, SiStripFedCablingFakeESSource, SiStripHashedDetIdFakeESSource, SiStripQualityFakeESSource, SiStripTemplateEmptyFakeESSource< TObject, TRecord >, SiStripTemplateFakeESSource< TObject, TRecord, TService >, HcalOmdsCalibrations, CondDBESSource, edm::eventsetup::DependentRecordIntervalFinder, edm::ESProducerLooper, edm::eventsetup::IntersectingIOVRecordIntervalFinder, edm::EmptyESSource, XMLIdealGeometryESSource, JetCorrectionService< Corrector >, JetCorrectionServiceChain, CSCChamberIndexValues, CSCChamberMapValues, CSCChamberTimeCorrectionsValues, CSCCrateMapValues, CSCDDUMapValues, SiStripFedCablingBuilderFromDb, FWLiteESSource, PhysicsTools::MVAComputerESSourceImpl< RecordType >, ElectronLikelihoodESSource, HiTrivialConditionRetriever, RingESSource, RoadMapESSource, BeamSpotFakeConditions, and HepPDTESSource.


Member Data Documentation

Definition at line 78 of file EventSetupRecordIntervalFinder.h.