|
void | analyze (const edm::Event &, const edm::EventSetup &) override |
|
void | beginJob () override |
|
void | endJob () override |
|
| QGLikelihoodSystematicsDBWriter (const edm::ParameterSet &) |
|
| ~QGLikelihoodSystematicsDBWriter () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
| ~EDAnalyzer () override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
void QGLikelihoodSystematicsDBWriter::beginJob |
( |
void |
| ) |
|
|
overridevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 38 of file QGLikelihoodSystematicsDBWriter.cc.
References QGLikelihoodSystematicsObject::Entry::a, cond::service::PoolDBOutputService::appendSinceTime(), QGLikelihoodSystematicsObject::Entry::b, cond::service::PoolDBOutputService::beginOfTime(), python.rootplot.argparse::category, cond::service::PoolDBOutputService::createNewIOV(), QGLikelihoodSystematicsObject::data, DEFINE_FWK_MODULE, cond::service::PoolDBOutputService::endOfTime(), ALCARECOTkAlBeamHalo_cff::etaMax, ALCARECOTkAlBeamHalo_cff::etaMin, fileName, recoMuon::in, edm::Service< T >::isAvailable(), cond::service::PoolDBOutputService::isNewTagRequest(), geometryCSVtoXML::line, QGLikelihoodSystematicsObject::Entry::lmax, QGLikelihoodSystematicsObject::Entry::lmin, jetCorrFactors_cfi::payload, payloadTag, AlignmentTrackSelector_cfi::ptMax, ALCARECOTkAlBeamHalo_cff::ptMin, QGLikelihoodCategory::QGIndex, electronConversionRejectionValidator::rhoMax, electronConversionRejectionValidator::rhoMin, alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, QGLikelihoodSystematicsObject::Entry::systCategory, and GlobalPosition_Frontier_DevDB_cff::tag.
41 payload->
data.clear();
43 std::ifstream database;
45 if(!database.is_open()){
edm::LogError(
"FileNotFound") <<
"Could not open file "<<
fileName << std::endl;
return;}
47 while(std::getline(database,line)){
48 float ptMin,
ptMax,
etaMin,
etaMax,
rhoMin,
rhoMax, a_q, b_q, a_g, b_g, lmin, lmax;
49 char tag[1023],leadchar;
50 sscanf(line.c_str(),
"%c",&leadchar);
51 if((leadchar==
'#') || (leadchar==
'!'))
continue;
52 sscanf(line.c_str(),
"%s %f %f %f %f %f %f %f %f %f %f %f %f", &tag[0], &
ptMin, &
ptMax, &
rhoMin, &
rhoMax, &
etaMin, &
etaMax, &a_q, &b_q, &a_g, &b_g, &lmin, &lmax);
57 category.PtMin =
ptMin;
58 category.PtMax =
ptMax;
62 category.VarIndex = -1;
69 quarkEntry.
lmin = lmin;
70 quarkEntry.
lmax = lmax;
78 payload->
data.push_back(quarkEntry);
79 payload->
data.push_back(gluonEntry);
84 edm::LogInfo(
"UserOutput") <<
"Opening PoolDBOutputService" << std::endl;
87 edm::LogInfo(
"UserOutput") <<
"Setting up payload with " << payload->
data.size() <<
" entries and tag " <<
payloadTag << std::endl;
91 edm::LogInfo(
"UserOutput") <<
"Wrote in CondDB QGLikelihoodSystematic payload label: " <<
payloadTag << std::endl;
std::vector< Entry > data
void appendSinceTime(T *payloadObj, cond::Time_t sinceTime, const std::string &recordName, bool withlogging=false)
payload
payload postfix for testing
bool isNewTagRequest(const std::string &recordName)
cond::Time_t beginOfTime() const
Category structure: ranges associated with QGLikelihood histograms.
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
QGLikelihoodCategory systCategory
cond::Time_t endOfTime() const
QGLikelihoodSystematicsObject containing the parameters for the systematic smearing.