CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
SiStripPayloadHandler< SiStripPayload > Class Template Reference
Inheritance diagram for SiStripPayloadHandler< SiStripPayload >:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &evt, const edm::EventSetup &evtSetup) override
 
void endJob () override
 
 SiStripPayloadHandler (const edm::ParameterSet &iConfig)
 
 ~SiStripPayloadHandler () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
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::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

std::string makeConfigHash ()
 
std::string queryConfigMap (std::string configHash)
 
void updateConfigMap (std::string configHash, std::string payloadHash)
 

Private Attributes

std::string m_cfgMapDbFile
 
std::string m_cfgMapSchemaName
 
std::string m_cfgMapTableName
 
std::string m_condDb
 
std::string m_configMapDb
 
cond::persistency::ConnectionPool m_connectionPool
 
std::string m_localCondDbFile
 
cond::Time_t m_since
 
std::string m_targetTag
 
std::string p_cfgstr
 
std::string p_type
 

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)
 

Detailed Description

template<typename SiStripPayload>
class SiStripPayloadHandler< SiStripPayload >

Definition at line 29 of file SiStripPayloadHandler.cc.

Constructor & Destructor Documentation

◆ SiStripPayloadHandler()

template<typename SiStripPayload >
SiStripPayloadHandler< SiStripPayload >::SiStripPayloadHandler ( const edm::ParameterSet iConfig)
explicit

Definition at line 57 of file SiStripPayloadHandler.cc.

58  : m_connectionPool(),
59  m_cfgMapSchemaName(iConfig.getUntrackedParameter<std::string>("cfgMapSchemaName", "CMS_COND_O2O")),
60  m_cfgMapTableName(iConfig.getUntrackedParameter<std::string>("cfgMapTableName", "STRIP_CONFIG_TO_PAYLOAD_MAP")),
61  m_condDb(iConfig.getParameter<std::string>("conditionDatabase")),
62  m_localCondDbFile(iConfig.getParameter<std::string>("condDbFile")),
63  m_targetTag(iConfig.getParameter<std::string>("targetTag")),
64  m_since(iConfig.getParameter<uint32_t>("since")),
65  p_type(cond::demangledName(typeid(SiStripPayload))) {
67  p_cfgstr = condObjBuilder->getConfigString(typeid(SiStripPayload));
68  if (iConfig.exists("configMapDatabase"))
69  m_configMapDb = iConfig.getParameter<std::string>("configMapDatabase");
70  if (iConfig.exists("cfgMapDbFile"))
71  m_cfgMapDbFile = iConfig.getParameter<std::string>("cfgMapDbFile");
74 }

References cond::persistency::ConnectionPool::configure(), edm::ParameterSet::exists(), SiStripCondObjBuilderFromDb::getConfigString(), edm::ParameterSet::getParameter(), SiStripPayloadHandler< SiStripPayload >::m_cfgMapDbFile, SiStripPayloadHandler< SiStripPayload >::m_configMapDb, SiStripPayloadHandler< SiStripPayload >::m_connectionPool, SiStripPayloadHandler< SiStripPayload >::p_cfgstr, cond::persistency::ConnectionPool::setParameters(), and AlCaHLTBitMon_QueryRunRegistry::string.

◆ ~SiStripPayloadHandler()

template<typename SiStripPayload >
SiStripPayloadHandler< SiStripPayload >::~SiStripPayloadHandler ( )
override

Definition at line 77 of file SiStripPayloadHandler.cc.

77 {}

Member Function Documentation

◆ analyze()

template<typename SiStripPayload >
void SiStripPayloadHandler< SiStripPayload >::analyze ( const edm::Event evt,
const edm::EventSetup evtSetup 
)
overridevirtual

Implements edm::EDAnalyzer.

Definition at line 80 of file SiStripPayloadHandler.cc.

80  {
81  // some extra work: Getting the payload hash of the last IOV from condDb
82  // Will be compared with the new payload and reported
84  condDbSession.transaction().start(true);
85  cond::persistency::IOVProxy iovProxy = condDbSession.readIov(m_targetTag);
86  cond::Hash last_hash = iovProxy.getLast().payloadId;
87 
88  // that's the final goal: obtain the payload to store into the sqlite file for the upload into the DB
89  std::shared_ptr<SiStripPayload> payloadToUpload;
90  // first compute the hash of the configuration
91  std::string configHash = makeConfigHash();
92  // query the configMap DB to find the corresponding payload hash
93  std::string mappedPayloadHash = queryConfigMap(configHash);
94  bool mapUpToDate = false;
95 
96  if (!mappedPayloadHash.empty()) {
97  // the payload has been found ( fast O2O case )
98  // copy the payload from condtition database
99  mapUpToDate = true;
100  edm::LogInfo("SiStripPayloadHandler") << "[SiStripPayloadHandler::" << __func__ << "] "
101  << "Try retrieving payload from " << m_condDb;
102  payloadToUpload = condDbSession.fetchPayload<SiStripPayload>(mappedPayloadHash);
103  std::cout << "@@@[FastO2O:true]@@@" << std::endl;
104  edm::LogInfo("SiStripPayloadHandler") << "[SiStripPayloadHandler::" << __func__ << "] "
105  << " ... Payload is copied from offline condition database.";
106  } else {
107  // start the long O2O...
108  edm::LogInfo("SiStripPayloadHandler") << "[SiStripPayloadHandler::" << __func__ << "] "
109  << "NO mapping payload hash found. Will run the long O2O. ";
110  SiStripPayload* obj = nullptr;
112  if (typeid(SiStripPayload) == typeid(SiStripApvGain)) {
113  // special treatment for ApvGain : provide last payload in DB
114  condObjBuilder->setLastIovGain(condDbSession.fetchPayload<SiStripApvGain>(last_hash));
115  }
116  condObjBuilder->getValue(obj);
117  payloadToUpload = std::shared_ptr<SiStripPayload>(obj);
118  std::cout << "@@@[FastO2O:false]@@@" << std::endl;
119  edm::LogInfo("SiStripPayloadHandler") << "[SiStripPayloadHandler::" << __func__ << "] "
120  << " ... New payload has been created.";
121  }
122  condDbSession.transaction().commit();
123 
124  // write payload and iov in the local file
125  edm::LogInfo("SiStripPayloadHandler") << "[SiStripPayloadHandler::" << __func__ << "] "
126  << "Write payload to local sqlite file: " << m_localCondDbFile;
128  localFileSession.transaction().start(false);
129  // write the payload
130  cond::Hash thePayloadHash = localFileSession.storePayload<SiStripPayload>(*payloadToUpload);
131  cond::persistency::IOVEditor iovEditor = localFileSession.createIov<SiStripPayload>(m_targetTag, cond::runnumber);
132  iovEditor.setDescription("New IOV");
133  // inserting the iov
134  iovEditor.insert(m_since, thePayloadHash);
135  iovEditor.flush();
136  localFileSession.transaction().commit();
137  edm::LogInfo("SiStripPayloadHandler") << "[SiStripPayloadHandler::" << __func__ << "] "
138  << "Payload " << thePayloadHash << " inserted to sqlite with IOV " << m_since;
139 
140  // last step, update the configMap if required
141  if (!mapUpToDate) {
142  updateConfigMap(configHash, thePayloadHash);
143  }
144 
145  // finish the extra work: Compare the new payload with last IOV
146  if (last_hash == thePayloadHash) {
147  std::cout << "@@@[PayloadChange:false]@@@" << last_hash << std::endl;
148  } else {
149  std::cout << "@@@[PayloadChange:true]@@@" << last_hash << " -> " << thePayloadHash << std::endl;
150  }
151 }

References cond::persistency::Transaction::commit(), gather_cfg::cout, cond::persistency::Session::createIov(), cond::persistency::Session::fetchPayload(), cond::persistency::IOVEditor::flush(), cond::persistency::IOVProxy::getLast(), SiStripCondObjBuilderFromDb::getValue(), cond::persistency::IOVEditor::insert(), getGTfromDQMFile::obj, cond::Iov_t::payloadId, cond::persistency::Session::readIov(), cond::runnumber, cond::persistency::IOVEditor::setDescription(), SiStripCondObjBuilderFromDb::setLastIovGain(), cond::persistency::Transaction::start(), cond::persistency::Session::storePayload(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::persistency::Session::transaction().

◆ endJob()

template<typename SiStripPayload >
void SiStripPayloadHandler< SiStripPayload >::endJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 154 of file SiStripPayloadHandler.cc.

154 {}

◆ makeConfigHash()

template<typename SiStripPayload >
std::string SiStripPayloadHandler< SiStripPayload >::makeConfigHash ( )
private

Definition at line 157 of file SiStripPayloadHandler.cc.

157  {
158  edm::LogInfo("SiStripPayloadHandler") << "[SiStripPayloadHandler::" << __func__ << "] "
159  << "Convert config string to SHA-1 hash for " << p_type
160  << "\n... config: " << p_cfgstr;
161 
162  // calcuate SHA-1 hash using openssl
163  // adapted from cond::persistency::makeHash() in CondCore/CondDB/src/IOVSchema.cc
164  SHA_CTX ctx;
165  if (!SHA1_Init(&ctx)) {
166  throw cms::Exception("SHA1 initialization error.");
167  }
168  if (!SHA1_Update(&ctx, p_type.c_str(), p_type.size())) {
169  throw cms::Exception("SHA1 processing error (1).");
170  }
171  if (!SHA1_Update(&ctx, p_cfgstr.c_str(), p_cfgstr.size())) {
172  throw cms::Exception("SHA1 processing error (2).");
173  }
174  unsigned char hash[SHA_DIGEST_LENGTH];
175  if (!SHA1_Final(hash, &ctx)) {
176  throw cms::Exception("SHA1 finalization error.");
177  }
178 
179  char tmp[SHA_DIGEST_LENGTH * 2 + 1];
180  // re-write bytes in hex
181  for (unsigned int i = 0; i < SHA_DIGEST_LENGTH; i++) {
182  ::sprintf(&tmp[i * 2], "%02x", hash[i]);
183  }
184  tmp[SHA_DIGEST_LENGTH * 2] = 0;
185 
186  edm::LogInfo("SiStripPayloadHandler") << "[SiStripPayloadHandler::" << __func__
187  << "] "
188  "... hash: "
189  << tmp;
190  return tmp;
191 }

References Exception, cond::hash, mps_fire::i, and createJobs::tmp.

◆ queryConfigMap()

template<typename SiStripPayload >
std::string SiStripPayloadHandler< SiStripPayload >::queryConfigMap ( std::string  configHash)
private

Definition at line 194 of file SiStripPayloadHandler.cc.

194  {
195  if (m_configMapDb.empty())
196  return ""; // return empty string if m_configMapDb is not specified
197 
198  edm::LogInfo("SiStripPayloadHandler") << "[SiStripPayloadHandler::" << __func__ << "] "
199  << "Query " << m_configMapDb << " to see if the payload is already in DB.";
200 
202  // query the STRIP_CONFIG_TO_PAYLOAD_MAP table
203  cmDbSession->transaction().start(true);
204  coral::ITable& cmTable = cmDbSession->schema(m_cfgMapSchemaName).tableHandle(m_cfgMapTableName);
205  std::unique_ptr<coral::IQuery> query(cmTable.newQuery());
206  query->addToOutputList("PAYLOAD_HASH");
207  query->defineOutputType("PAYLOAD_HASH", coral::AttributeSpecification::typeNameForType<std::string>());
208  // also print these for debugging
209  query->addToOutputList("PAYLOAD_TYPE");
210  query->addToOutputList("CONFIG_STRING");
211  query->addToOutputList("INSERTION_TIME");
212  std::string whereClause("CONFIG_HASH = :CONFIG_HASH");
213  coral::AttributeList whereData;
214  whereData.extend<std::string>("CONFIG_HASH");
215  whereData.begin()->data<std::string>() = configHash;
216  query->setCondition(whereClause, whereData);
217  coral::ICursor& cursor = query->execute();
218  std::string p_hash;
219  if (cursor.next()) {
220  // the payload has been found ( fast O2O case )
221  p_hash = cursor.currentRow()["PAYLOAD_HASH"].data<std::string>();
222  edm::LogInfo("SiStripPayloadHandler")
223  << "[SiStripPayloadHandler::" << __func__ << "] "
224  << "Found associated payload hash " << p_hash
225  << "\n... type=" << cursor.currentRow()["PAYLOAD_TYPE"].data<std::string>()
226  << "\n... config=" << cursor.currentRow()["CONFIG_STRING"].data<std::string>()
227  << "\n... insertion_time=" << cursor.currentRow()["INSERTION_TIME"].data<coral::TimeStamp>().toString();
228  }
229  cmDbSession->transaction().commit();
230 
231  return p_hash;
232 }

References contentValuesFiles::query, AlCaHLTBitMon_QueryRunRegistry::string, and toolbox::toString().

◆ updateConfigMap()

template<typename SiStripPayload >
void SiStripPayloadHandler< SiStripPayload >::updateConfigMap ( std::string  configHash,
std::string  payloadHash 
)
private

Definition at line 235 of file SiStripPayloadHandler.cc.

235  {
236  if (m_cfgMapDbFile.empty())
237  return; // skip this if m_cfgMapDbFile is not set
238 
239  edm::LogInfo("SiStripPayloadHandler") << "[SiStripPayloadHandler::" << __func__ << "] "
240  << "Updating the config to payload hash map to " << m_cfgMapDbFile;
241 
242  // create a writable transaction
243  auto cmSQLiteSession = m_connectionPool.createCoralSession(m_cfgMapDbFile, true);
244  cmSQLiteSession->transaction().start(false);
245 
246  if (!cmSQLiteSession->nominalSchema().existsTable(m_cfgMapTableName)) {
247  // create the table if it does not exist
248  coral::TableDescription mapTable;
249  mapTable.setName(m_cfgMapTableName);
250  mapTable.insertColumn("CONFIG_HASH", coral::AttributeSpecification::typeNameForType<std::string>());
251  mapTable.insertColumn("PAYLOAD_HASH", coral::AttributeSpecification::typeNameForType<std::string>());
252  mapTable.insertColumn("PAYLOAD_TYPE", coral::AttributeSpecification::typeNameForType<std::string>());
253  mapTable.insertColumn("CONFIG_STRING", coral::AttributeSpecification::typeNameForType<std::string>());
254  mapTable.insertColumn("INSERTION_TIME", coral::AttributeSpecification::typeNameForType<coral::TimeStamp>());
255  mapTable.setPrimaryKey("CONFIG_HASH");
256  mapTable.setNotNullConstraint("CONFIG_HASH");
257  mapTable.setNotNullConstraint("PAYLOAD_HASH");
258  mapTable.setNotNullConstraint("PAYLOAD_TYPE");
259  mapTable.setNotNullConstraint("CONFIG_STRING");
260  mapTable.setNotNullConstraint("INSERTION_TIME");
261  cmSQLiteSession->nominalSchema().createTable(mapTable);
262  }
263 
264  coral::ITable& cmTable = cmSQLiteSession->nominalSchema().tableHandle(m_cfgMapTableName);
265  coral::AttributeList insertData;
266  insertData.extend<std::string>("CONFIG_HASH");
267  insertData.extend<std::string>("PAYLOAD_HASH");
268  // also insert these for bookkeeping
269  insertData.extend<std::string>("PAYLOAD_TYPE");
270  insertData.extend<std::string>("CONFIG_STRING");
271  insertData.extend<coral::TimeStamp>("INSERTION_TIME");
272  insertData["CONFIG_HASH"].data<std::string>() = configHash;
273  insertData["PAYLOAD_HASH"].data<std::string>() = payloadHash;
274  insertData["PAYLOAD_TYPE"].data<std::string>() = p_type;
275  insertData["CONFIG_STRING"].data<std::string>() = p_cfgstr;
276  insertData["INSERTION_TIME"].data<coral::TimeStamp>() = coral::TimeStamp::now(); // UTC time
277  cmTable.dataEditor().insertRow(insertData);
278  cmSQLiteSession->transaction().commit();
279  edm::LogInfo("SiStripPayloadHandler") << "[SiStripPayloadHandler::" << __func__ << "] "
280  << "Updated with mapping (configHash : payloadHash)" << configHash << " : "
281  << payloadHash;
282 }

References submitPVValidationJobs::now, and AlCaHLTBitMon_QueryRunRegistry::string.

Member Data Documentation

◆ m_cfgMapDbFile

template<typename SiStripPayload >
std::string SiStripPayloadHandler< SiStripPayload >::m_cfgMapDbFile
private

◆ m_cfgMapSchemaName

template<typename SiStripPayload >
std::string SiStripPayloadHandler< SiStripPayload >::m_cfgMapSchemaName
private

Definition at line 44 of file SiStripPayloadHandler.cc.

◆ m_cfgMapTableName

template<typename SiStripPayload >
std::string SiStripPayloadHandler< SiStripPayload >::m_cfgMapTableName
private

Definition at line 45 of file SiStripPayloadHandler.cc.

◆ m_condDb

template<typename SiStripPayload >
std::string SiStripPayloadHandler< SiStripPayload >::m_condDb
private

Definition at line 46 of file SiStripPayloadHandler.cc.

◆ m_configMapDb

template<typename SiStripPayload >
std::string SiStripPayloadHandler< SiStripPayload >::m_configMapDb
private

◆ m_connectionPool

template<typename SiStripPayload >
cond::persistency::ConnectionPool SiStripPayloadHandler< SiStripPayload >::m_connectionPool
private

◆ m_localCondDbFile

template<typename SiStripPayload >
std::string SiStripPayloadHandler< SiStripPayload >::m_localCondDbFile
private

Definition at line 48 of file SiStripPayloadHandler.cc.

◆ m_since

template<typename SiStripPayload >
cond::Time_t SiStripPayloadHandler< SiStripPayload >::m_since
private

Definition at line 50 of file SiStripPayloadHandler.cc.

◆ m_targetTag

template<typename SiStripPayload >
std::string SiStripPayloadHandler< SiStripPayload >::m_targetTag
private

Definition at line 49 of file SiStripPayloadHandler.cc.

◆ p_cfgstr

template<typename SiStripPayload >
std::string SiStripPayloadHandler< SiStripPayload >::p_cfgstr
private

◆ p_type

template<typename SiStripPayload >
std::string SiStripPayloadHandler< SiStripPayload >::p_type
private

Definition at line 52 of file SiStripPayloadHandler.cc.

SiStripPayloadHandler::m_cfgMapSchemaName
std::string m_cfgMapSchemaName
Definition: SiStripPayloadHandler.cc:44
cond::persistency::IOVEditor::insert
void insert(cond::Time_t since, const cond::Hash &payloadHash, bool checkType=false)
Definition: IOVEditor.cc:159
SiStripPayloadHandler::m_targetTag
std::string m_targetTag
Definition: SiStripPayloadHandler.cc:49
SiStripPayloadHandler::p_type
std::string p_type
Definition: SiStripPayloadHandler.cc:52
mps_fire.i
i
Definition: mps_fire.py:428
cond::persistency::IOVProxy::getLast
cond::Iov_t getLast()
Definition: IOVProxy.cc:396
cond::Hash
std::string Hash
Definition: Types.h:43
SiStripPayloadHandler::m_localCondDbFile
std::string m_localCondDbFile
Definition: SiStripPayloadHandler.cc:48
submitPVValidationJobs.now
now
Definition: submitPVValidationJobs.py:639
SiStripCondObjBuilderFromDb::getValue
void getValue(SiStripFedCabling *&val)
Definition: SiStripCondObjBuilderFromDb.h:121
cond::hash
Definition: Time.h:19
cond::persistency::ConnectionPool::createCoralSession
std::shared_ptr< coral::ISessionProxy > createCoralSession(const std::string &connectionString, bool writeCapable=false)
Definition: ConnectionPool.cc:183
gather_cfg.cout
cout
Definition: gather_cfg.py:144
cond::persistency::IOVEditor
Definition: IOVEditor.h:28
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
cond::persistency::ConnectionPool::createSession
Session createSession(const std::string &connectionString, bool writeCapable=false)
Definition: ConnectionPool.cc:174
cond::persistency::Session::fetchPayload
std::unique_ptr< T > fetchPayload(const cond::Hash &payloadHash)
Definition: Session.h:213
SiStripPayloadHandler::p_cfgstr
std::string p_cfgstr
Definition: SiStripPayloadHandler.cc:53
toolbox::toString
std::string toString(const char *format,...)
Definition: xdaq_compat.cc:4
query
Definition: query.py:1
SiStripPayloadHandler::m_condDb
std::string m_condDb
Definition: SiStripPayloadHandler.cc:46
SiStripPayloadHandler::m_cfgMapDbFile
std::string m_cfgMapDbFile
Definition: SiStripPayloadHandler.cc:47
SiStripPayloadHandler::makeConfigHash
std::string makeConfigHash()
Definition: SiStripPayloadHandler.cc:157
cond::persistency::Session::readIov
IOVProxy readIov(const std::string &tag)
Definition: Session.cc:63
cond::persistency::IOVEditor::setDescription
void setDescription(const std::string &description)
Definition: IOVEditor.cc:139
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
cond::persistency::IOVProxy
Definition: IOVProxy.h:92
SiStripPayloadHandler::queryConfigMap
std::string queryConfigMap(std::string configHash)
Definition: SiStripPayloadHandler.cc:194
edm::ParameterSet::exists
bool exists(std::string const &parameterName) const
checks if a parameter exists
Definition: ParameterSet.cc:681
SiStripPayloadHandler::m_cfgMapTableName
std::string m_cfgMapTableName
Definition: SiStripPayloadHandler.cc:45
edm::ParameterSet
Definition: ParameterSet.h:47
cond::Iov_t::payloadId
Hash payloadId
Definition: Types.h:55
SiStripPayloadHandler::m_configMapDb
std::string m_configMapDb
Definition: SiStripPayloadHandler.cc:43
cond::runnumber
Definition: Time.h:19
cond::persistency::Session
Definition: Session.h:63
edm::Service< SiStripCondObjBuilderFromDb >
cond::persistency::Transaction::commit
void commit()
Definition: Session.cc:23
cond::persistency::ConnectionPool::setParameters
void setParameters(const edm::ParameterSet &connectionPset)
Definition: ConnectionPool.cc:43
cond::persistency::ConnectionPool::configure
void configure()
Definition: ConnectionPool.cc:129
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cond::persistency::Session::storePayload
cond::Hash storePayload(const T &payload, const boost::posix_time::ptime &creationTime=boost::posix_time::microsec_clock::universal_time())
Definition: Session.h:186
SiStripCondObjBuilderFromDb::setLastIovGain
void setLastIovGain(std::shared_ptr< SiStripApvGain > gain)
Definition: SiStripCondObjBuilderFromDb.h:130
SiStripPayloadHandler::updateConfigMap
void updateConfigMap(std::string configHash, std::string payloadHash)
Definition: SiStripPayloadHandler.cc:235
cond::persistency::Session::transaction
Transaction & transaction()
Definition: Session.cc:52
cond::persistency::Transaction::start
void start(bool readOnly=true)
Definition: Session.cc:18
SiStripPayloadHandler::m_connectionPool
cond::persistency::ConnectionPool m_connectionPool
Definition: SiStripPayloadHandler.cc:42
Exception
Definition: hltDiff.cc:245
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
cond::persistency::Session::createIov
IOVEditor createIov(const std::string &tag, cond::TimeType timeType, cond::SynchronizationType synchronizationType=cond::SYNCH_ANY)
Definition: Session.h:179
SiStripCondObjBuilderFromDb::getConfigString
std::string getConfigString(const std::type_info &typeInfo)
Definition: SiStripCondObjBuilderFromDb.cc:194
contentValuesFiles.query
query
Definition: contentValuesFiles.py:38
cond::persistency::IOVEditor::flush
bool flush()
Definition: IOVEditor.cc:315
SiStripApvGain
Definition: SiStripApvGain.h:25
SiStripPayloadHandler::m_since
cond::Time_t m_since
Definition: SiStripPayloadHandler.cc:50