#include <StoreEcalCondition.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &evt, const edm::EventSetup &evtSetup) |
int | convertFromConstructionSMToSlot (int, int) |
virtual void | endJob () |
EcalADCToGeVConstant * | readEcalADCToGeVConstantFromFile (const char *) |
EcalChannelStatus * | readEcalChannelStatusFromFile (const char *) |
EcalGainRatios * | readEcalGainRatiosFromFile (const char *) |
EcalIntercalibConstants * | readEcalIntercalibConstantsFromFile (const char *, const char *) |
EcalIntercalibConstantsMC * | readEcalIntercalibConstantsMCFromFile (const char *, const char *) |
EcalTBWeights * | readEcalTBWeightsFromFile (const char *) |
EcalWeightXtalGroups * | readEcalWeightXtalGroupsFromFile (const char *) |
StoreEcalCondition (const edm::ParameterSet &iConfig) | |
void | writeToLogFile (std::string, std::string, unsigned long long) |
void | writeToLogFileResults (char *) |
~StoreEcalCondition () | |
Public Member Functions inherited from edm::EDAnalyzer | |
EDAnalyzer () | |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Private Member Functions | |
void | fillHeader (char *) |
std::string | to_string (char value[]) |
Private Attributes | |
std::vector< std::string > | inpFileName_ |
std::vector< std::string > | inpFileNameEE_ |
std::string | logfile_ |
std::vector< std::string > | objectName_ |
std::string | prog_name_ |
std::vector< unsigned long long > | since_ |
int | sm_constr_ |
int | sm_slot_ |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
typedef WorkerT< EDAnalyzer > | WorkerType |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions inherited from edm::EDAnalyzer | |
CurrentProcessingContext const * | currentContext () const |
Definition at line 38 of file StoreEcalCondition.h.
|
explicit |
Definition at line 21 of file StoreEcalCondition.cc.
References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), inpFileName_, inpFileNameEE_, logfile_, objectName_, prog_name_, since_, sm_constr_, sm_slot_, and convertXMLtoSQLite_cfg::toPut.
StoreEcalCondition::~StoreEcalCondition | ( | ) |
Definition at line 142 of file StoreEcalCondition.cc.
|
virtual |
Implements edm::EDAnalyzer.
Definition at line 147 of file StoreEcalCondition.cc.
int StoreEcalCondition::convertFromConstructionSMToSlot | ( | int | sm_constr, |
int | sm_slot | ||
) |
Definition at line 844 of file StoreEcalCondition.cc.
References query::result.
Referenced by readEcalIntercalibConstantsFromFile(), and readEcalIntercalibConstantsMCFromFile().
|
virtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 41 of file StoreEcalCondition.cc.
References cond::service::PoolDBOutputService::appendSinceTime(), cond::service::PoolDBOutputService::beginOfTime(), gather_cfg::cout, cond::service::PoolDBOutputService::createNewIOV(), cond::service::PoolDBOutputService::endOfTime(), i, inpFileName_, inpFileNameEE_, edm::Service< T >::isAvailable(), cond::service::PoolDBOutputService::isNewTagRequest(), python.rootplot.argparse::message, objectName_, readEcalADCToGeVConstantFromFile(), readEcalChannelStatusFromFile(), readEcalGainRatiosFromFile(), readEcalIntercalibConstantsFromFile(), readEcalIntercalibConstantsMCFromFile(), readEcalTBWeightsFromFile(), readEcalWeightXtalGroupsFromFile(), since_, and writeToLogFileResults().
|
private |
Definition at line 194 of file StoreEcalCondition.cc.
References cond::rpcobgas::time, and hcal_dqm_sourceclient-file_cfg::user.
Referenced by writeToLogFile(), and writeToLogFileResults().
EcalADCToGeVConstant * StoreEcalCondition::readEcalADCToGeVConstantFromFile | ( | const char * | inputFile | ) |
Definition at line 451 of file StoreEcalCondition.cc.
References analyzePatCOC_cfg::inputFile, geometryCSVtoXML::line, LogDebug, sm_constr_, and to_string().
Referenced by endJob().
EcalChannelStatus * StoreEcalCondition::readEcalChannelStatusFromFile | ( | const char * | inputFile | ) |
Definition at line 1024 of file StoreEcalCondition.cc.
References comment, gather_cfg::cout, edm::hlt::Exception, ecalpyutils::hashedIndex(), compare_using_db::ifile, ecalpyutils::ism(), EEDetId::IX_MAX, EEDetId::IX_MIN, EEDetId::IY_MAX, EEDetId::IY_MIN, geometryCSVtoXML::line, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, EBDetId::MIN_IPHI, EcalCondObjectContainer< T >::setValue(), EBDetId::SMCRYSTALMODE, ntuplemaker::status, EBDetId::unhashIndex(), EEDetId::unhashIndex(), EBDetId::validDetId(), and EEDetId::validDetId().
Referenced by endJob().
EcalGainRatios * StoreEcalCondition::readEcalGainRatiosFromFile | ( | const char * | inputFile | ) |
Definition at line 865 of file StoreEcalCondition.cc.
References gather_cfg::cout, eta(), EBDetId::ETAPHIMODE, i, analyzePatCOC_cfg::inputFile, EEDetId::IX_MAX, EEDetId::IX_MIN, EEDetId::IY_MAX, EEDetId::IY_MIN, geometryCSVtoXML::line, phi, DetId::rawId(), EcalMGPAGainRatio::setGain12Over6(), EcalMGPAGainRatio::setGain6Over1(), EcalCondObjectContainer< T >::setValue(), sm_constr_, sm_slot_, EBDetId::SMCRYSTALMODE, to_string(), and EEDetId::validDetId().
Referenced by endJob().
EcalIntercalibConstants * StoreEcalCondition::readEcalIntercalibConstantsFromFile | ( | const char * | inputFile, |
const char * | inputFileEE | ||
) |
Definition at line 513 of file StoreEcalCondition.cc.
References calib, convertFromConstructionSMToSlot(), gather_cfg::cout, i, analyzePatCOC_cfg::inputFile, EEDetId::IX_MAX, EEDetId::IX_MIN, EEDetId::IY_MAX, EEDetId::IY_MIN, geometryCSVtoXML::line, nchan, DetId::rawId(), EcalCondObjectContainer< T >::setValue(), sm_constr_, EBDetId::SMCRYSTALMODE, to_string(), and EEDetId::validDetId().
Referenced by endJob().
EcalIntercalibConstantsMC * StoreEcalCondition::readEcalIntercalibConstantsMCFromFile | ( | const char * | inputFile, |
const char * | inputFileEE | ||
) |
Definition at line 679 of file StoreEcalCondition.cc.
References calib, convertFromConstructionSMToSlot(), gather_cfg::cout, i, analyzePatCOC_cfg::inputFile, EEDetId::IX_MAX, EEDetId::IX_MIN, EEDetId::IY_MAX, EEDetId::IY_MIN, geometryCSVtoXML::line, nchan, DetId::rawId(), EcalCondObjectContainer< T >::setValue(), sm_constr_, EBDetId::SMCRYSTALMODE, to_string(), and EEDetId::validDetId().
Referenced by endJob().
EcalTBWeights * StoreEcalCondition::readEcalTBWeightsFromFile | ( | const char * | inputFile | ) |
Definition at line 305 of file StoreEcalCondition.cc.
References EcalWeightSet::getChi2WeightsAfterGainSwitch(), EcalWeightSet::getChi2WeightsBeforeGainSwitch(), EcalWeightSet::getWeightsAfterGainSwitch(), EcalWeightSet::getWeightsBeforeGainSwitch(), i, analyzePatCOC_cfg::inputFile, j, gen::k, LogDebug, EcalTBWeights::setValue(), sm_constr_, and groupFilesInBlocks::temp.
Referenced by endJob().
EcalWeightXtalGroups * StoreEcalCondition::readEcalWeightXtalGroupsFromFile | ( | const char * | inputFile | ) |
Definition at line 239 of file StoreEcalCondition.cc.
References i, analyzePatCOC_cfg::inputFile, LogDebug, DetId::rawId(), EcalCondObjectContainer< T >::setValue(), sm_constr_, sm_slot_, EBDetId::SMCRYSTALMODE, and groupFilesInBlocks::temp.
Referenced by endJob().
|
inlineprivate |
Definition at line 72 of file StoreEcalCondition.h.
References relativeConstraints::value.
Referenced by readEcalADCToGeVConstantFromFile(), readEcalGainRatiosFromFile(), readEcalIntercalibConstantsFromFile(), and readEcalIntercalibConstantsMCFromFile().
void StoreEcalCondition::writeToLogFile | ( | std::string | , |
std::string | , | ||
unsigned long | long | ||
) |
Definition at line 154 of file StoreEcalCondition.cc.
References fillHeader(), errorMatrix2Lands::header, logfile_, GetRecoTauVFromDQM_MC_cff::outFile, sm_constr_, and sm_slot_.
void StoreEcalCondition::writeToLogFileResults | ( | char * | arg | ) |
Definition at line 178 of file StoreEcalCondition.cc.
References fillHeader(), errorMatrix2Lands::header, logfile_, and GetRecoTauVFromDQM_MC_cff::outFile.
Referenced by endJob().
|
private |
Definition at line 64 of file StoreEcalCondition.h.
Referenced by endJob(), and StoreEcalCondition().
|
private |
Definition at line 65 of file StoreEcalCondition.h.
Referenced by endJob(), and StoreEcalCondition().
|
private |
Definition at line 70 of file StoreEcalCondition.h.
Referenced by StoreEcalCondition(), writeToLogFile(), and writeToLogFileResults().
|
private |
Definition at line 62 of file StoreEcalCondition.h.
Referenced by endJob(), and StoreEcalCondition().
|
private |
Definition at line 66 of file StoreEcalCondition.h.
Referenced by StoreEcalCondition().
|
private |
Definition at line 69 of file StoreEcalCondition.h.
Referenced by endJob(), and StoreEcalCondition().
|
private |
Definition at line 67 of file StoreEcalCondition.h.
Referenced by readEcalADCToGeVConstantFromFile(), readEcalGainRatiosFromFile(), readEcalIntercalibConstantsFromFile(), readEcalIntercalibConstantsMCFromFile(), readEcalTBWeightsFromFile(), readEcalWeightXtalGroupsFromFile(), StoreEcalCondition(), and writeToLogFile().
|
private |
Definition at line 68 of file StoreEcalCondition.h.
Referenced by readEcalGainRatiosFromFile(), readEcalWeightXtalGroupsFromFile(), StoreEcalCondition(), and writeToLogFile().