#include <LMFCorrCoefDat.h>
Public Member Functions | |
void | debug () |
void | dump () |
void | fetch (std::list< int > subiov_ids) |
void | fetch (int subiov_id) |
void | fetch (const LMFLmrSubIOV &iov) |
void | fetchAfter (const Tm &t) |
void | fetchAfter (const Tm &t, int howMany) |
void | fetchBetween (const Tm &tmin, const Tm &tmax) |
void | fetchBetween (const Tm &tmin, const Tm &tmax, int maxNumberOfIOVs) |
RunIOV | fetchLastInsertedRun () |
std::map< int, std::map< int, LMFSextuple > > | getCorrections (const Tm &t) |
std::map< int, std::map< int, LMFSextuple > > | getCorrections (const Tm &t, int max) |
std::map< int, std::map< int, LMFSextuple > > | getCorrections (const Tm &t, const Tm &t2, int max) |
int | getFlag (const LMFLmrSubIOV &iov, const EcalLogicID &id) |
std::vector< float > | getParameterErrors (const LMFLmrSubIOV &iov, const EcalLogicID &id) |
std::list< std::vector< float > > | getParameters (int id) |
std::list< std::vector< float > > | getParameters (const EcalLogicID &id) |
std::vector< float > | getParameters (const LMFLmrSubIOV &iov, const EcalLogicID &id) |
int | getSeqID (const LMFLmrSubIOV &iov, const EcalLogicID &id) |
LMFSeqDat | getSequence (const LMFLmrSubIOV &iov, const EcalLogicID &id) |
std::list< int > | getSubIOVIDs () |
std::vector< Tm > | getTimes (const LMFLmrSubIOV &iov) |
void | init () |
LMFCorrCoefDat () | |
LMFCorrCoefDat (EcalDBConnection *c) | |
LMFCorrCoefDat (oracle::occi::Environment *env, oracle::occi::Connection *conn) | |
void | nodebug () |
LMFCorrCoefDat & | setConnection (oracle::occi::Environment *env, oracle::occi::Connection *conn) |
LMFCorrCoefDat & | setFlag (const LMFLmrSubIOV &iov, const EcalLogicID &id, int flag) |
LMFCorrCoefDat & | setP123 (const LMFLmrSubIOV &iov, const EcalLogicID &id, float p1, float p2, float p3) |
LMFCorrCoefDat & | setP123 (const LMFLmrSubIOV &iov, const EcalLogicID &id, float p1, float p2, float p3, float p1e, float p2e, float p3e) |
LMFCorrCoefDat & | setP123Errors (const LMFLmrSubIOV &iov, const EcalLogicID &id, float p1e, float p2e, float p3e) |
LMFCorrCoefDat & | setSequence (const LMFLmrSubIOV &iov, const EcalLogicID &id, int seq_id) |
LMFCorrCoefDat & | setSequence (const LMFLmrSubIOV &iov, const EcalLogicID &id, const LMFSeqDat &seq) |
int | size () const |
void | writeDB () |
~LMFCorrCoefDat () | |
Private Member Functions | |
void | checkTriplets (int logic_id, const LMFSextuple &s, const std::map< int, LMFSextuple > &lastMap) |
LMFCorrCoefDatComponent * | find (const LMFLmrSubIOV &iov) |
Private Attributes | |
oracle::occi::Connection * | m_conn |
std::map< int, LMFCorrCoefDatComponent * > | m_data |
bool | m_debug |
oracle::occi::Environment * | m_env |
std::map< int, LMFLmrSubIOV * > | m_subiov |
Static Private Attributes | |
static const int | MAX_NUMBER_OF_SEQUENCES_TO_FETCH = 32 |
Definition at line 16 of file LMFCorrCoefDat.h.
LMFCorrCoefDat::LMFCorrCoefDat | ( | ) |
LMFCorrCoefDat::LMFCorrCoefDat | ( | EcalDBConnection * | c | ) |
Definition at line 6 of file LMFCorrCoefDat.cc.
References HltBtagPostValidation_cff::c, init(), m_conn, and m_env.
LMFCorrCoefDat::LMFCorrCoefDat | ( | oracle::occi::Environment * | env, |
oracle::occi::Connection * | conn | ||
) |
Definition at line 12 of file LMFCorrCoefDat.cc.
References getInfo::conn, web.browse_db::env, init(), m_conn, and m_env.
LMFCorrCoefDat::~LMFCorrCoefDat | ( | ) |
Definition at line 18 of file LMFCorrCoefDat.cc.
References MillePedeFileConverter_cfg::e, mps_fire::i, m_data, and m_subiov.
|
private |
Definition at line 298 of file LMFCorrCoefDat.cc.
Referenced by getCorrections().
void LMFCorrCoefDat::debug | ( | ) |
void LMFCorrCoefDat::dump | ( | void | ) |
Definition at line 105 of file LMFCorrCoefDat.cc.
References submitPVResolutionJobs::count, gather_cfg::cout, MillePedeFileConverter_cfg::e, mps_fire::i, and m_data.
void LMFCorrCoefDat::fetch | ( | std::list< int > | subiov_ids | ) |
Definition at line 223 of file LMFCorrCoefDat.cc.
References HltBtagPostValidation_cff::c, gather_cfg::cout, MillePedeFileConverter_cfg::e, mps_fire::i, and m_debug.
Referenced by fetch(), fetchBetween(), getFlag(), getParameterErrors(), getParameters(), getSeqID(), and getSequence().
void LMFCorrCoefDat::fetch | ( | int | subiov_id | ) |
Definition at line 240 of file LMFCorrCoefDat.cc.
References gather_cfg::cout, LMFUnique::dump(), fetch(), LMFUnique::getID(), m_conn, m_debug, m_env, m_subiov, and LMFUnique::setByID().
void LMFCorrCoefDat::fetch | ( | const LMFLmrSubIOV & | iov | ) |
Definition at line 260 of file LMFCorrCoefDat.cc.
References AlCaHLTBitMon_QueryRunRegistry::comp, gather_cfg::cout, LMFUnique::getID(), m_conn, m_data, m_debug, and m_env.
void LMFCorrCoefDat::fetchAfter | ( | const Tm & | t | ) |
Definition at line 185 of file LMFCorrCoefDat.cc.
References fetchBetween(), submitPVValidationJobs::t, and tmax.
void LMFCorrCoefDat::fetchAfter | ( | const Tm & | t, |
int | howMany | ||
) |
Definition at line 191 of file LMFCorrCoefDat.cc.
References fetchBetween(), submitPVValidationJobs::t, and tmax.
Definition at line 197 of file LMFCorrCoefDat.cc.
References tmax, and muonTiming_cfi::tmin.
Referenced by fetchAfter().
Definition at line 199 of file LMFCorrCoefDat.cc.
References gather_cfg::cout, LMFUnique::debug(), fetch(), LMFLmrSubIOV::getIOVIDsLaterThan(), MainPageGenerator::l, m_conn, m_data, m_debug, m_env, Tm::setToString(), tmax, and muonTiming_cfi::tmin.
RunIOV LMFCorrCoefDat::fetchLastInsertedRun | ( | ) |
Definition at line 142 of file LMFCorrCoefDat.cc.
References gather_cfg::cout, MillePedeFileConverter_cfg::e, m_conn, m_debug, m_env, RunIOV::setByID(), IDBObject::setConnection(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 87 of file LMFCorrCoefDat.cc.
References HltBtagPostValidation_cff::c, LMFUnique::getID(), m_conn, m_data, m_env, m_subiov, and IDBObject::setConnection().
Referenced by setFlag(), setP123(), setP123Errors(), and setSequence().
std::map< int, std::map< int, LMFSextuple > > LMFCorrCoefDat::getCorrections | ( | const Tm & | t | ) |
Definition at line 294 of file LMFCorrCoefDat.cc.
References MAX_NUMBER_OF_SEQUENCES_TO_FETCH, and submitPVValidationJobs::t.
Referenced by getCorrections().
std::map< int, std::map< int, LMFSextuple > > LMFCorrCoefDat::getCorrections | ( | const Tm & | t, |
int | max | ||
) |
Definition at line 320 of file LMFCorrCoefDat.cc.
References getCorrections(), SiStripPI::max, and submitPVValidationJobs::t.
std::map< int, std::map< int, LMFSextuple > > LMFCorrCoefDat::getCorrections | ( | const Tm & | t, |
const Tm & | t2, | ||
int | max | ||
) |
Definition at line 324 of file LMFCorrCoefDat.cc.
References HltBtagPostValidation_cff::c, checkTriplets(), gather_cfg::cout, ztail::d, cuy::dh, MillePedeFileConverter_cfg::e, mps_fire::i, m_conn, m_debug, m_env, SiStripPI::max, MAX_NUMBER_OF_SEQUENCES_TO_FETCH, runTheMatrix::ret, alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, submitPVValidationJobs::t, and RandomServiceHelper::t2.
int LMFCorrCoefDat::getFlag | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id | ||
) |
Definition at line 514 of file LMFCorrCoefDat.cc.
References fetch(), LMFUnique::getID(), m_data, edm::second(), and x.
std::vector< float > LMFCorrCoefDat::getParameterErrors | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id | ||
) |
Definition at line 504 of file LMFCorrCoefDat.cc.
References fetch(), LMFUnique::getID(), crabWrapper::key, m_data, and x.
std::list< std::vector< float > > LMFCorrCoefDat::getParameters | ( | int | id | ) |
Definition at line 467 of file LMFCorrCoefDat.cc.
References MillePedeFileConverter_cfg::e, spr::find(), mps_fire::i, l1ctLayer2EG_cff::id, dqmdumpme::k, m_data, m_subiov, AlCaHLTBitMon_ParallelJobs::p, and runTheMatrix::ret.
Referenced by getParameters().
std::list< std::vector< float > > LMFCorrCoefDat::getParameters | ( | const EcalLogicID & | id | ) |
Definition at line 463 of file LMFCorrCoefDat.cc.
References getParameters().
std::vector< float > LMFCorrCoefDat::getParameters | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id | ||
) |
Definition at line 494 of file LMFCorrCoefDat.cc.
References fetch(), LMFUnique::getID(), getParameters(), crabWrapper::key, m_data, and x.
int LMFCorrCoefDat::getSeqID | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id | ||
) |
Definition at line 523 of file LMFCorrCoefDat.cc.
References fetch(), LMFUnique::getID(), m_data, edm::second(), and x.
LMFSeqDat LMFCorrCoefDat::getSequence | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id | ||
) |
Definition at line 532 of file LMFCorrCoefDat.cc.
References fetch(), LMFUnique::getID(), m_conn, m_data, m_env, edm::second(), and cmsswSequenceInfo::seq.
std::list< int > LMFCorrCoefDat::getSubIOVIDs | ( | ) |
Definition at line 552 of file LMFCorrCoefDat.cc.
References MillePedeFileConverter_cfg::e, mps_fire::i, m_data, and runTheMatrix::ret.
std::vector< Tm > LMFCorrCoefDat::getTimes | ( | const LMFLmrSubIOV & | iov | ) |
void LMFCorrCoefDat::init | ( | void | ) |
Definition at line 35 of file LMFCorrCoefDat.cc.
References m_conn, m_data, m_env, m_subiov, and nodebug().
Referenced by LMFCorrCoefDat().
void LMFCorrCoefDat::nodebug | ( | ) |
LMFCorrCoefDat & LMFCorrCoefDat::setConnection | ( | oracle::occi::Environment * | env, |
oracle::occi::Connection * | conn | ||
) |
Definition at line 43 of file LMFCorrCoefDat.cc.
References getInfo::conn, MillePedeFileConverter_cfg::e, web.browse_db::env, mps_fire::i, m_conn, m_data, and m_env.
LMFCorrCoefDat & LMFCorrCoefDat::setFlag | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id, | ||
int | flag | ||
) |
Definition at line 72 of file LMFCorrCoefDat.cc.
References find(), RemoveAddSevLevel::flag, and LMFCorrCoefDatComponent::setFlag().
LMFCorrCoefDat & LMFCorrCoefDat::setP123 | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id, | ||
float | p1, | ||
float | p2, | ||
float | p3 | ||
) |
Definition at line 55 of file LMFCorrCoefDat.cc.
References find(), LaserDQM_cfg::p1, SiStripOfflineCRack_cfg::p2, chargedHadronTrackResolutionFilter_cfi::p3, and LMFCorrCoefDatComponent::setP123().
LMFCorrCoefDat & LMFCorrCoefDat::setP123 | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id, | ||
float | p1, | ||
float | p2, | ||
float | p3, | ||
float | p1e, | ||
float | p2e, | ||
float | p3e | ||
) |
Definition at line 60 of file LMFCorrCoefDat.cc.
References find(), LaserDQM_cfg::p1, SiStripOfflineCRack_cfg::p2, chargedHadronTrackResolutionFilter_cfi::p3, and LMFCorrCoefDatComponent::setP123().
LMFCorrCoefDat & LMFCorrCoefDat::setP123Errors | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id, | ||
float | p1e, | ||
float | p2e, | ||
float | p3e | ||
) |
Definition at line 66 of file LMFCorrCoefDat.cc.
References find(), and LMFCorrCoefDatComponent::setP123Errors().
LMFCorrCoefDat & LMFCorrCoefDat::setSequence | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id, | ||
int | seq_id | ||
) |
Definition at line 77 of file LMFCorrCoefDat.cc.
References find(), and LMFCorrCoefDatComponent::setSequence().
LMFCorrCoefDat & LMFCorrCoefDat::setSequence | ( | const LMFLmrSubIOV & | iov, |
const EcalLogicID & | id, | ||
const LMFSeqDat & | seq | ||
) |
Definition at line 82 of file LMFCorrCoefDat.cc.
References find(), cmsswSequenceInfo::seq, and LMFCorrCoefDatComponent::setSequence().
int LMFCorrCoefDat::size | ( | void | ) | const |
Definition at line 541 of file LMFCorrCoefDat.cc.
References HltBtagPostValidation_cff::c, MillePedeFileConverter_cfg::e, mps_fire::i, and m_data.
Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().
void LMFCorrCoefDat::writeDB | ( | ) |
Definition at line 123 of file LMFCorrCoefDat.cc.
References gather_cfg::cout, MillePedeFileConverter_cfg::e, mps_fire::i, m_data, and m_debug.
|
private |
Definition at line 66 of file LMFCorrCoefDat.h.
Referenced by fetch(), fetchBetween(), fetchLastInsertedRun(), find(), getCorrections(), getSequence(), init(), LMFCorrCoefDat(), and setConnection().
|
private |
Definition at line 63 of file LMFCorrCoefDat.h.
Referenced by dump(), fetch(), fetchBetween(), find(), getFlag(), getParameterErrors(), getParameters(), getSeqID(), getSequence(), getSubIOVIDs(), init(), setConnection(), size(), writeDB(), and ~LMFCorrCoefDat().
|
private |
Definition at line 67 of file LMFCorrCoefDat.h.
Referenced by debug(), fetch(), fetchBetween(), fetchLastInsertedRun(), getCorrections(), nodebug(), and writeDB().
|
private |
Definition at line 65 of file LMFCorrCoefDat.h.
Referenced by fetch(), fetchBetween(), fetchLastInsertedRun(), find(), getCorrections(), getSequence(), init(), LMFCorrCoefDat(), and setConnection().
|
private |
Definition at line 64 of file LMFCorrCoefDat.h.
Referenced by fetch(), find(), getParameters(), init(), and ~LMFCorrCoefDat().
|
staticprivate |
Definition at line 61 of file LMFCorrCoefDat.h.
Referenced by getCorrections().