#include <CalibMuon/CSCCalibration/interface/CSCL1TPParametersConditions.h>
Public Types | |
typedef const CSCL1TPParameters * | ReturnType |
Public Member Functions | |
CSCL1TPParametersConditions (const edm::ParameterSet &) | |
ReturnType | produceCSCL1TPParameters (const CSCL1TPParametersRcd &) |
~CSCL1TPParametersConditions () | |
Static Public Member Functions | |
static CSCL1TPParameters * | prefillCSCL1TPParameters () |
Private Member Functions | |
void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) |
Private Attributes | |
CSCL1TPParameters * | CSCl1TPParameters |
Definition at line 20 of file CSCL1TPParametersConditions.h.
typedef const CSCL1TPParameters* CSCL1TPParametersConditions::ReturnType |
Definition at line 28 of file CSCL1TPParametersConditions.h.
CSCL1TPParametersConditions::CSCL1TPParametersConditions | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 10 of file CSCL1TPParameters.cc.
References CSCl1TPParameters, prefillCSCL1TPParameters(), produceCSCL1TPParameters(), and edm::ESProducer::setWhatProduced().
00011 { 00012 //the following line is needed to tell the framework what 00013 // data is being produced 00014 CSCl1TPParameters = prefillCSCL1TPParameters(); 00015 // added by Zhen (changed since 1_2_0) 00016 setWhatProduced(this,&CSCL1TPParametersConditions::produceCSCL1TPParameters); 00017 findingRecord<CSCL1TPParametersRcd>(); 00018 //now do what ever other initialization is needed 00019 }
CSCL1TPParametersConditions::~CSCL1TPParametersConditions | ( | ) |
Definition at line 22 of file CSCL1TPParameters.cc.
References CSCl1TPParameters.
00023 { 00024 00025 // do anything here that needs to be done at desctruction time 00026 // (e.g. close files, deallocate resources etc.) 00027 delete CSCl1TPParameters; 00028 }
CSCL1TPParameters * CSCL1TPParametersConditions::prefillCSCL1TPParameters | ( | ) | [inline, static] |
Definition at line 44 of file CSCL1TPParametersConditions.h.
References CSCL1TPParameters::setAlctAccelMode(), CSCL1TPParameters::setAlctDriftDelay(), CSCL1TPParameters::setAlctFifoPretrig(), CSCL1TPParameters::setAlctFifoTbins(), CSCL1TPParameters::setAlctL1aWindowWidth(), CSCL1TPParameters::setAlctNplanesHitAccelPattern(), CSCL1TPParameters::setAlctNplanesHitAccelPretrig(), CSCL1TPParameters::setAlctNplanesHitPattern(), CSCL1TPParameters::setAlctNplanesHitPretrig(), CSCL1TPParameters::setAlctTrigMode(), CSCL1TPParameters::setClctDriftDelay(), CSCL1TPParameters::setClctFifoPretrig(), CSCL1TPParameters::setClctFifoTbins(), CSCL1TPParameters::setClctHitPersist(), CSCL1TPParameters::setClctMinSeparation(), CSCL1TPParameters::setClctNplanesHitPattern(), CSCL1TPParameters::setClctNplanesHitPretrig(), and CSCL1TPParameters::setClctPidThreshPretrig().
Referenced by CSCL1TPParametersConditions().
00045 { 00046 00047 CSCL1TPParameters * cnl1tp = new CSCL1TPParameters(); 00048 00049 cnl1tp->setAlctFifoTbins(16); 00050 cnl1tp->setAlctFifoPretrig(10); 00051 cnl1tp->setAlctDriftDelay(2); 00052 cnl1tp->setAlctNplanesHitPretrig(2); 00053 cnl1tp->setAlctNplanesHitPattern(4); 00054 cnl1tp->setAlctNplanesHitAccelPretrig(2); 00055 cnl1tp->setAlctNplanesHitAccelPattern(4); 00056 cnl1tp->setAlctTrigMode(2); 00057 cnl1tp->setAlctAccelMode(0); 00058 cnl1tp->setAlctL1aWindowWidth(7); 00059 00060 cnl1tp->setClctFifoTbins(12); 00061 cnl1tp->setClctFifoPretrig(7); 00062 cnl1tp->setClctHitPersist(6); 00063 cnl1tp->setClctDriftDelay(2); 00064 cnl1tp->setClctNplanesHitPretrig(2); 00065 cnl1tp->setClctNplanesHitPattern(4); 00066 cnl1tp->setClctPidThreshPretrig(2); 00067 cnl1tp->setClctMinSeparation(10); 00068 00069 return cnl1tp; 00070 }
CSCL1TPParametersConditions::ReturnType CSCL1TPParametersConditions::produceCSCL1TPParameters | ( | const CSCL1TPParametersRcd & | iRecord | ) |
Definition at line 37 of file CSCL1TPParameters.cc.
References CSCl1TPParameters.
Referenced by CSCL1TPParametersConditions().
00038 { 00039 //need a new object so to not be deleted at exit 00040 CSCL1TPParameters* mydata=new CSCL1TPParameters( *CSCl1TPParameters); 00041 return mydata; 00042 00043 }
void CSCL1TPParametersConditions::setIntervalFor | ( | const edm::eventsetup::EventSetupRecordKey & | , | |
const edm::IOVSyncValue & | , | |||
edm::ValidityInterval & | oValidity | |||
) | [private, virtual] |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 45 of file CSCL1TPParameters.cc.
References edm::IOVSyncValue::beginOfTime(), and edm::IOVSyncValue::endOfTime().
00047 { 00048 oValidity = edm::ValidityInterval(edm::IOVSyncValue::beginOfTime(),edm::IOVSyncValue::endOfTime()); 00049 00050 }
Definition at line 35 of file CSCL1TPParametersConditions.h.
Referenced by CSCL1TPParametersConditions(), produceCSCL1TPParameters(), and ~CSCL1TPParametersConditions().