#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_ |
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::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsInputProcessBlocks () |
static bool | wantsProcessBlocks () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
Protected Member Functions inherited from edm::EDConsumerBase | |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () noexcept |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) noexcept |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
Definition at line 23 of file EcalLaserCondTools.h.
EcalLaserCondTools::EcalLaserCondTools | ( | const edm::ParameterSet & | ps | ) |
Constructor
ps | analyser configuration |
Definition at line 26 of file EcalLaserCondTools.cc.
References eventList_, eventListFileName_, Exception, and ferr_.
|
override |
|
overridevirtual |
Called by CMSSW event loop
evt | the event |
es | events setup |
Implements edm::EDAnalyzer.
Definition at line 56 of file EcalLaserCondTools.cc.
References gather_cfg::cout, db_, dbToAscii(), fileCollector::done, Exception, fillDb(), fnames_, from_hdf_to_db(), edm::Service< T >::isAvailable(), mode_, EcalLaserCondTools::CorrReader::setVerbosity(), and verb_.
|
private |
Definition at line 620 of file EcalLaserCondTools.cc.
References alignCSCRings::corr, gather_cfg::cout, Exception, fout_, edm::EventSetup::get(), get, EBDetId::hashedIndex(), EEDetId::hashedIndex(), mps_fire::i, LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, EEDetId::IX_MAX, EEDetId::IX_MIN, EEDetId::IY_MAX, EEDetId::IY_MIN, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, EBDetId::MIN_IPHI, nLmes, AlCaHLTBitMon_ParallelJobs::p, edm::ESHandle< T >::product(), submitPVValidationJobs::t, RandomServiceHelper::t1, RandomServiceHelper::t2, RandomServiceHelper::t3, timeToString(), EBDetId::validDetId(), EEDetId::validDetId(), and verb_.
Referenced by analyze().
|
private |
Definition at line 261 of file EcalLaserCondTools.cc.
References c, gather_cfg::cout, eventList_, eventListFileName_, Exception, ntuplemaker::iline, dqmiodumpmetadata::n, nIovs_, nLmes, processIov(), alignCSCRings::r, skipIov_, submitPVValidationJobs::t, RandomServiceHelper::t1, RandomServiceHelper::t2, RandomServiceHelper::t3, timeToString(), and verb_.
Referenced by analyze().
void EcalLaserCondTools::from_hdf_to_db | ( | ) |
Definition at line 82 of file EcalLaserCondTools.cc.
References cms::cuda::assert(), alignCSCRings::corr, submitPVResolutionJobs::count, gather_cfg::cout, db_, MillePedeFileConverter_cfg::e, Exception, ferr_, geometryDiff::file, fnames_, compare_using_db::ifile, maxP_, minP_, ecaldqm::nCrystals(), nIovs_, nLmes, hltrates_dqm_sourceclient-live_cfg::offset, p1, p2, p3, skipIov_, mps_update::status, submitPVValidationJobs::t, RandomServiceHelper::t1, RandomServiceHelper::t2, RandomServiceHelper::t3, timeToString(), verb_, and cond::service::PoolDBOutputService::writeOne().
Referenced by analyze().
|
private |
Definition at line 336 of file EcalLaserCondTools.cc.
References cond::service::PoolDBOutputService::beginOfTime(), alignCSCRings::corr, gather_cfg::cout, db_, MillePedeFileConverter_cfg::e, EcalBarrel, EcalEndcap, Exception, ferr_, fromTime_, mps_fire::i, createfilelist::int, cond::service::PoolDBOutputService::isNewTagRequest(), maxP_, minP_, nLmes, alignCSCRings::r, DetId::subdetId(), submitPVValidationJobs::t, RandomServiceHelper::t1, RandomServiceHelper::t2, RandomServiceHelper::t3, timeToString(), toNth(), toTime_, verb_, and cond::service::PoolDBOutputService::writeOne().
Referenced by fillDb().
|
staticprivate |
Definition at line 611 of file EcalLaserCondTools.cc.
References visDQMUpload::buf, AlCaHLTBitMon_QueryRunRegistry::string, and submitPVValidationJobs::t.
Referenced by dbToAscii(), fillDb(), from_hdf_to_db(), and processIov().
|
staticprivate |
Definition at line 588 of file EcalLaserCondTools.cc.
References dqmiodumpmetadata::n, and alignCSCRings::s.
Referenced by processIov().
|
private |
Definition at line 92 of file EcalLaserCondTools.h.
Referenced by analyze(), from_hdf_to_db(), and processIov().
|
private |
Definition at line 87 of file EcalLaserCondTools.h.
Referenced by EcalLaserCondTools(), and fillDb().
|
private |
Definition at line 88 of file EcalLaserCondTools.h.
Referenced by EcalLaserCondTools(), and fillDb().
|
private |
Definition at line 98 of file EcalLaserCondTools.h.
Referenced by EcalLaserCondTools(), from_hdf_to_db(), processIov(), and ~EcalLaserCondTools().
|
private |
Definition at line 91 of file EcalLaserCondTools.h.
Referenced by analyze(), from_hdf_to_db(), EcalLaserCondTools::FileReader::readPs(), and EcalLaserCondTools::FileReader::readTime().
|
private |
Definition at line 86 of file EcalLaserCondTools.h.
Referenced by dbToAscii(), and ~EcalLaserCondTools().
|
private |
Definition at line 95 of file EcalLaserCondTools.h.
Referenced by processIov().
|
private |
Definition at line 97 of file EcalLaserCondTools.h.
Referenced by from_hdf_to_db(), and processIov().
|
private |
Definition at line 97 of file EcalLaserCondTools.h.
Referenced by from_hdf_to_db(), and processIov().
|
private |
Definition at line 90 of file EcalLaserCondTools.h.
Referenced by analyze().
|
private |
Definition at line 94 of file EcalLaserCondTools.h.
Referenced by fillDb(), and from_hdf_to_db().
|
staticconstexprprivate |
Number of extended laser monitoring regions
Definition at line 28 of file EcalLaserCondTools.h.
Referenced by dbToAscii(), fillDb(), from_hdf_to_db(), processIov(), and EcalLaserCondTools::FileReader::readTime().
|
private |
Definition at line 93 of file EcalLaserCondTools.h.
Referenced by fillDb(), and from_hdf_to_db().
|
private |
Definition at line 96 of file EcalLaserCondTools.h.
Referenced by processIov().
|
private |
Definition at line 89 of file EcalLaserCondTools.h.
Referenced by analyze(), dbToAscii(), fillDb(), from_hdf_to_db(), processIov(), EcalLaserCondTools::FileReader::readPs(), and EcalLaserCondTools::FileReader::readTime().