CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes
edm::EventSetupRecordIntervalFinder Class Referenceabstract

#include <EventSetupRecordIntervalFinder.h>

Inheritance diagram for edm::EventSetupRecordIntervalFinder:
BeamSpotFakeConditions CaloMiscalibTools CaloMiscalibToolsMC 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 CSCGasGainCorrectionDBConditions CSCL1TPParametersConditions CSCNoiseMatrixConditions CSCNoiseMatrixDBConditions CSCPedestalsDBConditions CTPPSBeamParametersESSource CTPPSLHCInfoESSource CTPPSLHCInfoRandomXangleESSource CTPPSOpticalFunctionsESSource CTPPSPixelDAQMappingESSourceXML CTPPSRPAlignmentCorrectionsDataESSourceXML DDDetectorESProducer DIPLumiProducer DTFakeT0ESProducer EcalTrivialConditionRetriever edm::EmptyESSource edm::ESProducerLooper edm::eventsetup::DependentRecordIntervalFinder edm::eventsetup::IntersectingIOVRecordIntervalFinder edm::test::EventSetupTestHelper ElectronLikelihoodESSource ESTrivialConditionRetriever FakeAlignmentSource FWLiteESSource HBHEDarkeningEP HcalHardcodeCalibrations HcalTextCalibrations HcalTimeSlewEP HepPDTESSource HiTrivialConditionRetriever JetCorrectionESSource< Corrector > LumiCorrectionSource Phase2TrackerCablingCfgESSource PhysicsTools::MVAComputerESSourceImpl< RecordType > PPSTimingCalibrationESSource RPCPerformanceESSource SiPixelFakeCPEGenericErrorParmESSource SiPixelFakeGainESSource SiPixelFakeGainForHLTESSource SiPixelFakeGainOfflineESSource SiPixelFakeGenErrorDBObjectESSource SiPixelFakeLorentzAngleESSource SiPixelFakeQualityESSource SiPixelFakeTemplateDBObjectESSource SiPixelQualityESProducer SiStripApvGainFakeESSource SiStripApvSimulationParametersESSource SiStripBackPlaneCorrectionFakeESSource SiStripBadModuleConfigurableFakeESSource SiStripBadModuleFedErrESSource SiStripBaseDelayFakeESSource SiStripConfObjectFakeESSource SiStripFedCablingBuilderFromDb SiStripFedCablingFakeESSource SiStripGainESSource SiStripHashedDetIdFakeESSource SiStripLatencyFakeESSource SiStripLorentzAngleFakeESSource SiStripNoiseESSource SiStripNoisesFakeESSource SiStripPedestalsESSource SiStripPedestalsFakeESSource SiStripQualityFakeESSource SiStripTemplateEmptyFakeESSource< TObject, TRecord > SiStripThresholdFakeESSource TotemDAQMappingESSourceXML XMLIdealGeometryESSource

Public Member Functions

const eventsetup::ComponentDescriptiondescriptionForFinder () const
 
 EventSetupRecordIntervalFinder ()
 
std::set< eventsetup::EventSetupRecordKeyfindingForRecords () const
 
const ValidityIntervalfindIntervalFor (const eventsetup::EventSetupRecordKey &, const IOVSyncValue &)
 
void setDescriptionForFinder (const eventsetup::ComponentDescription &iDescription)
 
virtual ~EventSetupRecordIntervalFinder () noexcept(false)
 

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, ValidityIntervalIntervals
 

Private Member Functions

virtual void delaySettingRecords ()
 
 EventSetupRecordIntervalFinder (const EventSetupRecordIntervalFinder &)=delete
 
const EventSetupRecordIntervalFinderoperator= (const EventSetupRecordIntervalFinder &)=delete
 

Private Attributes

eventsetup::ComponentDescription description_
 
Intervals intervals_
 

Detailed Description

Definition at line 33 of file EventSetupRecordIntervalFinder.h.

Member Typedef Documentation

Definition at line 70 of file EventSetupRecordIntervalFinder.h.

Constructor & Destructor Documentation

edm::EventSetupRecordIntervalFinder::EventSetupRecordIntervalFinder ( )
inline
EventSetupRecordIntervalFinder::~EventSetupRecordIntervalFinder ( )
virtualnoexcept

Definition at line 40 of file EventSetupRecordIntervalFinder.cc.

Referenced by EventSetupRecordIntervalFinder().

40 {}
edm::EventSetupRecordIntervalFinder::EventSetupRecordIntervalFinder ( const EventSetupRecordIntervalFinder )
privatedelete

Member Function Documentation

void EventSetupRecordIntervalFinder::delaySettingRecords ( )
privatevirtual

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

Reimplemented in FWLiteESSource, and edm::EmptyESSource.

Definition at line 71 of file EventSetupRecordIntervalFinder.cc.

Referenced by findingRecord().

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

Definition at line 41 of file EventSetupRecordIntervalFinder.h.

References description_, and findIntervalFor().

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

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

Definition at line 76 of file EventSetupRecordIntervalFinder.cc.

Referenced by EventSetupRecordIntervalFinder().

76  {
77  if (intervals_.empty()) {
78  //we are delaying our reading
80  }
81 
82  std::set<EventSetupRecordKey> returnValue;
83 
84  for (Intervals::const_iterator itEntry = intervals_.begin(), itEntryEnd = intervals_.end(); itEntry != itEntryEnd;
85  ++itEntry) {
86  returnValue.insert(returnValue.end(), itEntry->first);
87  }
88  return returnValue;
89  }
template<class T >
void edm::EventSetupRecordIntervalFinder::findingRecord ( )
inlineprotected

Definition at line 56 of file EventSetupRecordIntervalFinder.h.

References delaySettingRecords(), EventSetupRecordIntervalFinder(), findingRecordWithKey(), and operator=().

56  {
57  findingRecordWithKey(eventsetup::EventSetupRecordKey::makeKey<T>());
58  }
void findingRecordWithKey(const eventsetup::EventSetupRecordKey &)
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 57 of file EventSetupRecordIntervalFinder.cc.

Referenced by descriptionForFinder().

58  {
59  Intervals::iterator itFound = intervals_.find(iKey);
60  assert(itFound != intervals_.end());
61  if (!itFound->second.validFor(iInstance)) {
62  setIntervalFor(iKey, iInstance, itFound->second);
63  }
64  return itFound->second;
65  }
virtual void setIntervalFor(const eventsetup::EventSetupRecordKey &, const IOVSyncValue &, ValidityInterval &)=0
const EventSetupRecordIntervalFinder& edm::EventSetupRecordIntervalFinder::operator= ( const EventSetupRecordIntervalFinder )
privatedelete

Referenced by findingRecord().

void edm::EventSetupRecordIntervalFinder::setDescriptionForFinder ( const eventsetup::ComponentDescription iDescription)
inline
virtual void edm::EventSetupRecordIntervalFinder::setIntervalFor ( const eventsetup::EventSetupRecordKey ,
const IOVSyncValue ,
ValidityInterval  
)
protectedpure virtual

Implemented in EcalTrivialConditionRetriever, TotemDAQMappingESSourceXML, CTPPSPixelDAQMappingESSourceXML, FWLiteESSource, HcalTextCalibrations, SiStripFedCablingBuilderFromDb, FakeAlignmentSource, CTPPSBeamParametersESSource, ESTrivialConditionRetriever, HcalHardcodeCalibrations, CaloMiscalibTools, CaloMiscalibToolsMC, CTPPSRPAlignmentCorrectionsDataESSourceXML, edm::eventsetup::DependentRecordIntervalFinder, PPSTimingCalibrationESSource, SiPixelQualityESProducer, edm::test::EventSetupTestHelper, ElectronLikelihoodESSource, SiPixelFakeLorentzAngleESSource, SiPixelFakeQualityESSource, SiStripBadModuleFedErrESSource, DDDetectorESProducer, SiPixelFakeGainESSource, SiPixelFakeGainForHLTESSource, SiPixelFakeGainOfflineESSource, CondDBESSource, edm::ESProducerLooper, edm::eventsetup::IntersectingIOVRecordIntervalFinder, DTFakeT0ESProducer, HepPDTESSource, CastorTextCalibrations, SiStripLorentzAngleFakeESSource, HiTrivialConditionRetriever, CSCFakeGainsConditions, CSCFakePedestalsConditions, CSCChipSpeedCorrectionDBConditions, CSCFakeCrosstalkConditions, CSCFakeDBGainsPopCon, CSCChamberTimeCorrectionsValues, CSCFakeDBCrosstalkPopCon, SiStripQualityFakeESSource, CSCChamberIndexValues, CSCChamberMapValues, CSCCrateMapValues, CSCDDUMapValues, CSCGasGainCorrectionDBConditions, SiStripNoisesFakeESSource, CSCBadChambersConditions, CSCBadStripsConditions, CSCBadWiresConditions, CSCCrosstalkDBConditions, CSCDBL1TPParametersConditions, CSCFakeDBCrosstalk, CSCFakeDBNoiseMatrix, CSCFakeDBPedestals, CSCGainsDBConditions, CSCL1TPParametersConditions, CSCNoiseMatrixDBConditions, CSCPedestalsDBConditions, CTPPSLHCInfoRandomXangleESSource, CSCCrosstalkConditions, CSCGainsConditions, CSCNoiseMatrixConditions, SiStripTemplateEmptyFakeESSource< TObject, TRecord >, PhysicsTools::MVAComputerESSourceImpl< RecordType >, DIPLumiProducer, LumiCorrectionSource, BeamSpotFakeConditions, CastorHardcodeCalibrations, HBHEDarkeningEP, HcalTimeSlewEP, CSCFakeDBGains, SiStripBadModuleConfigurableFakeESSource, CSCFakeNoiseMatrixConditions, SiStripNoiseESSource, SiStripPedestalsESSource, SiStripApvGainFakeESSource, SiStripBackPlaneCorrectionFakeESSource, SiStripBaseDelayFakeESSource, SiStripConfObjectFakeESSource, SiStripLatencyFakeESSource, SiStripPedestalsFakeESSource, SiStripThresholdFakeESSource, SiStripGainESSource, RPCPerformanceESSource, CTPPSOpticalFunctionsESSource, CTPPSLHCInfoESSource, SiStripFedCablingFakeESSource, SiStripHashedDetIdFakeESSource, XMLIdealGeometryESSource, SiPixelFakeGenErrorDBObjectESSource, SiPixelFakeTemplateDBObjectESSource, SiPixelFakeCPEGenericErrorParmESSource, Phase2TrackerCablingCfgESSource, and SiStripApvSimulationParametersESSource.

Referenced by setDescriptionForFinder().

Member Data Documentation

eventsetup::ComponentDescription edm::EventSetupRecordIntervalFinder::description_
private
Intervals edm::EventSetupRecordIntervalFinder::intervals_
private

Definition at line 71 of file EventSetupRecordIntervalFinder.h.