#include <EcalLaserCondTools.h>
Classes | |
class | CorrReader |
class | FileReader |
Private Member Functions | |
void | dbToAscii (const edm::EventSetup &es) |
void | fillDb (CorrReader &r) |
void | processIov (CorrReader &r, int t1, int t2[nLmes], int t3) |
Static Private Member Functions | |
static std::string | timeToString (time_t t) |
static std::string | toNth (int n) |
Private Attributes | |
edm::Service < cond::service::PoolDBOutputService > | db_ |
FILE * | eventList_ |
std::string | eventListFileName_ |
FILE * | ferr_ |
std::vector< std::string > | fnames_ |
FILE * | fout_ |
int | fromTime_ |
edm::ESGetToken < EcalLaserAPDPNRatios, EcalLaserAPDPNRatiosRcd > | laserAPDPNRatiosToken_ |
double | maxP_ |
double | minP_ |
std::string | mode_ |
int | nIovs_ |
int | skipIov_ |
int | toTime_ |
int | verb_ |
Static Private Attributes | |
static constexpr int | nLmes = 92 |
Additional Inherited Members | |
Public Types inherited from edm::one::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::one::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
Definition at line 24 of file EcalLaserCondTools.h.
EcalLaserCondTools::EcalLaserCondTools | ( | const edm::ParameterSet & | ps | ) |
Constructor
ps | analyser configuration |
Definition at line 25 of file EcalLaserCondTools.cc.
References edm::EDConsumerBase::esConsumes(), eventList_, eventListFileName_, Exception, ferr_, laserAPDPNRatiosToken_, and mode_.
|
override |
|
overridevirtual |
Called by CMSSW event loop
evt | the event |
es | events setup |
Implements edm::one::EDAnalyzerBase.
Definition at line 59 of file EcalLaserCondTools.cc.
References db_, dbToAscii(), Exception, fillDb(), fnames_, from_hdf_to_db(), edm::Service< T >::isAvailable(), mode_, EcalLaserCondTools::CorrReader::setVerbosity(), and verb_.
|
private |
Definition at line 623 of file EcalLaserCondTools.cc.
References EcalCondObjectContainer< T >::barrel(), alignCSCRings::corr, EcalCondObjectContainer< T >::endcap(), Exception, fout_, edm::EventSetup::getData(), EBDetId::hashedIndex(), EEDetId::hashedIndex(), mps_fire::i, EEDetId::IX_MAX, EEDetId::IX_MIN, EEDetId::IY_MAX, EEDetId::IY_MIN, laserAPDPNRatiosToken_, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, EBDetId::MIN_IPHI, nLmes, AlCaHLTBitMon_ParallelJobs::p, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p1, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p2, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p3, submitPVValidationJobs::t, timeToString(), EBDetId::validDetId(), EEDetId::validDetId(), and verb_.
Referenced by analyze().
|
private |
Definition at line 259 of file EcalLaserCondTools.cc.
References c, eventList_, eventListFileName_, Exception, ntuplemaker::iline, dqmiodumpmetadata::n, nIovs_, nLmes, processIov(), EcalLaserCondTools::CorrReader::readTime(), skipIov_, submitPVValidationJobs::t, timeToString(), and verb_.
Referenced by analyze().
void EcalLaserCondTools::from_hdf_to_db | ( | ) |
Definition at line 79 of file EcalLaserCondTools.cc.
References cms::cuda::assert(), alignCSCRings::corr, submitPVResolutionJobs::count, db_, alignCSCRings::e, Exception, ferr_, mergeVDriftHistosByStation::file, fnames_, compare_using_db::ifile, maxP_, minP_, ecaldqm::nCrystals(), nIovs_, nLmes, hltrates_dqm_sourceclient-live_cfg::offset, fireworks::p1, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p1, fireworks::p2, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p2, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p3, EcalLaserAPDPNRatios::setTime(), EcalLaserAPDPNRatios::setValue(), skipIov_, mps_update::status, submitPVValidationJobs::t, EcalLaserAPDPNRatios::EcalLaserTimeStamp::t1, EcalLaserAPDPNRatios::EcalLaserTimeStamp::t2, EcalLaserAPDPNRatios::EcalLaserTimeStamp::t3, timeToString(), verb_, cms::Exception::what(), and cond::service::PoolDBOutputService::writeOneIOV().
Referenced by analyze().
|
private |
Definition at line 334 of file EcalLaserCondTools.cc.
References cond::service::PoolDBOutputService::beginOfTime(), alignCSCRings::corr, db_, alignCSCRings::e, EcalBarrel, EcalEndcap, Exception, ferr_, fromTime_, mps_fire::i, cond::service::PoolDBOutputService::isNewTagRequest(), maxP_, minP_, nLmes, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p1, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p2, EcalLaserAPDPNRatios::EcalLaserAPDPNpair::p3, EcalLaserCondTools::CorrReader::readPs(), EcalLaserAPDPNRatios::setTime(), EcalLaserAPDPNRatios::setValue(), DetId::subdetId(), submitPVValidationJobs::t, EcalLaserAPDPNRatios::EcalLaserTimeStamp::t1, EcalLaserAPDPNRatios::EcalLaserTimeStamp::t2, EcalLaserAPDPNRatios::EcalLaserTimeStamp::t3, timeToString(), toNth(), toTime_, verb_, cms::Exception::what(), and cond::service::PoolDBOutputService::writeOneIOV().
Referenced by fillDb().
|
staticprivate |
Definition at line 614 of file EcalLaserCondTools.cc.
References visDQMUpload::buf, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by dbToAscii(), fillDb(), from_hdf_to_db(), and processIov().
|
staticprivate |
Definition at line 591 of file EcalLaserCondTools.cc.
References dqmiodumpmetadata::n, and alignCSCRings::s.
Referenced by processIov().
|
private |
Definition at line 94 of file EcalLaserCondTools.h.
Referenced by analyze(), from_hdf_to_db(), and processIov().
|
private |
Definition at line 89 of file EcalLaserCondTools.h.
Referenced by EcalLaserCondTools(), and fillDb().
|
private |
Definition at line 90 of file EcalLaserCondTools.h.
Referenced by EcalLaserCondTools(), and fillDb().
|
private |
Definition at line 100 of file EcalLaserCondTools.h.
Referenced by EcalLaserCondTools(), from_hdf_to_db(), processIov(), and ~EcalLaserCondTools().
|
private |
Definition at line 93 of file EcalLaserCondTools.h.
Referenced by analyze(), from_hdf_to_db(), EcalLaserCondTools::FileReader::readPs(), and EcalLaserCondTools::FileReader::readTime().
|
private |
Definition at line 88 of file EcalLaserCondTools.h.
Referenced by dbToAscii(), and ~EcalLaserCondTools().
|
private |
Definition at line 97 of file EcalLaserCondTools.h.
Referenced by processIov().
|
private |
Definition at line 87 of file EcalLaserCondTools.h.
Referenced by dbToAscii(), and EcalLaserCondTools().
|
private |
Definition at line 99 of file EcalLaserCondTools.h.
Referenced by from_hdf_to_db(), and processIov().
|
private |
Definition at line 99 of file EcalLaserCondTools.h.
Referenced by from_hdf_to_db(), and processIov().
|
private |
Definition at line 92 of file EcalLaserCondTools.h.
Referenced by analyze(), and EcalLaserCondTools().
|
private |
Definition at line 96 of file EcalLaserCondTools.h.
Referenced by fillDb(), and from_hdf_to_db().
|
staticprivate |
Number of extended laser monitoring regions
Definition at line 29 of file EcalLaserCondTools.h.
Referenced by dbToAscii(), fillDb(), from_hdf_to_db(), processIov(), and EcalLaserCondTools::FileReader::readTime().
|
private |
Definition at line 95 of file EcalLaserCondTools.h.
Referenced by fillDb(), and from_hdf_to_db().
|
private |
Definition at line 98 of file EcalLaserCondTools.h.
Referenced by processIov().
|
private |
Definition at line 91 of file EcalLaserCondTools.h.
Referenced by analyze(), dbToAscii(), fillDb(), from_hdf_to_db(), processIov(), EcalLaserCondTools::FileReader::readPs(), and EcalLaserCondTools::FileReader::readTime().