Builds the SiStripDetVOff object for transfer by O2O.
More...
#include <SiStripDetVOffBuilder.h>
|
void | BuildDetVOffObj () |
|
void | discardIOVs (std::vector< std::pair< SiStripDetVOff *, cond::Time_t > >::iterator &it, std::vector< std::pair< SiStripDetVOff *, cond::Time_t > >::iterator &initialIt, std::vector< std::pair< SiStripDetVOff *, cond::Time_t > > &resultVec, const bool last, const unsigned int first) |
| Removes IOVs as dictated by reduction. More...
|
|
bool | FileExists (std::string filename) |
|
std::vector< std::pair
< SiStripDetVOff
*, cond::Time_t > > | getModulesVOff () |
|
std::vector< std::vector
< uint32_t > > | getPayloadStats () |
|
void | reduce (std::vector< std::pair< SiStripDetVOff *, cond::Time_t > >::iterator &it, std::vector< std::pair< SiStripDetVOff *, cond::Time_t > >::iterator &initialIt, std::vector< std::pair< SiStripDetVOff *, cond::Time_t > > &resultVec, const bool last=false) |
| Operates the reduction of the fast sequences of ramping up and down of the voltages. More...
|
|
void | reduction (const uint32_t deltaTmin, const uint32_t maxIOVlength) |
|
void | setLastSiStripDetVOff (SiStripDetVOff *lastPayload, cond::Time_t lastTimeStamp) |
|
| SiStripDetVOffBuilder (const edm::ParameterSet &, const edm::ActivityRegistry &) |
|
| ~SiStripDetVOffBuilder () |
|
|
typedef std::vector< std::pair
< std::vector< uint32_t >
, coral::TimeStamp > > | DetIdTimeStampVector |
|
|
void | buildPSUdetIdMap (TimesAndValues &tStruct, DetIdListTimeAndStatus &dStruct) |
|
std::pair< int, int > | extractDetIdVector (const unsigned int i, SiStripDetVOff *modV, DetIdListTimeAndStatus &detIdStruct) |
|
cond::Time_t | findMostRecentTimeStamp (const std::vector< coral::TimeStamp > &coralDate) |
|
int | findSetting (uint32_t id, const coral::TimeStamp &changeDate, const std::vector< uint32_t > &settingID, const std::vector< coral::TimeStamp > &settingDate) |
|
int | findSetting (std::string dpname, const coral::TimeStamp &changeDate, const std::vector< std::string > &settingDpname, const std::vector< coral::TimeStamp > &settingDate) |
|
cond::Time_t | getCondTime (const coral::TimeStamp &coralTime) |
|
coral::TimeStamp | getCoralTime (cond::Time_t iovTime) |
|
void | lastValue (TimesAndValues &tStruct) |
|
void | lastValueFromFile (TimesAndValues &tStruct) |
|
void | printPar (std::stringstream &ss, const std::vector< int > &par) |
|
void | readLastValueFromFile (std::vector< uint32_t > &dpIDs, std::vector< float > &vmonValues, std::vector< coral::TimeStamp > &dateChange) |
|
void | removeDuplicates (std::vector< uint32_t > &vec) |
|
void | setPayloadStats (const uint32_t afterV, const uint32_t numAdded, const uint32_t numRemoved) |
|
void | statusChange (cond::Time_t &lastTime, TimesAndValues &tStruct) |
|
std::string | timeToStream (const coral::TimeStamp &coralTime, const string &comment="") |
|
std::string | timeToStream (const cond::Time_t &condTime, const string &comment="") |
|
Builds the SiStripDetVOff object for transfer by O2O.
- Author
- J.Cole modified by Marco De Mattia
Definition at line 39 of file SiStripDetVOffBuilder.h.
SiStripDetVOffBuilder::~SiStripDetVOffBuilder |
( |
| ) |
|
void SiStripDetVOffBuilder::BuildDetVOffObj |
( |
| ) |
|
bool SiStripDetVOffBuilder::FileExists |
( |
std::string |
filename | ) |
|
cond::Time_t SiStripDetVOffBuilder::findMostRecentTimeStamp |
( |
const std::vector< coral::TimeStamp > & |
coralDate | ) |
|
|
private |
int SiStripDetVOffBuilder::findSetting |
( |
uint32_t |
id, |
|
|
const coral::TimeStamp & |
changeDate, |
|
|
const std::vector< uint32_t > & |
settingID, |
|
|
const std::vector< coral::TimeStamp > & |
settingDate |
|
) |
| |
|
private |
int SiStripDetVOffBuilder::findSetting |
( |
std::string |
dpname, |
|
|
const coral::TimeStamp & |
changeDate, |
|
|
const std::vector< std::string > & |
settingDpname, |
|
|
const std::vector< coral::TimeStamp > & |
settingDate |
|
) |
| |
|
private |
Returns the PSU channel setting, based on date. Works from PSU channel name. Overloaded.
Definition at line 335 of file SiStripDetVOffBuilder.cc.
cond::Time_t SiStripDetVOffBuilder::getCondTime |
( |
const coral::TimeStamp & |
coralTime | ) |
|
|
private |
Utility code to convert a coral timestamp to the correct time format for O2O timestamp.
Definition at line 423 of file SiStripDetVOffBuilder.cc.
coral::TimeStamp SiStripDetVOffBuilder::getCoralTime |
( |
cond::Time_t |
iovTime | ) |
|
|
private |
std::vector< std::vector<uint32_t> > SiStripDetVOffBuilder::getPayloadStats |
( |
| ) |
|
|
inline |
void SiStripDetVOffBuilder::lastValueFromFile |
( |
TimesAndValues & |
tStruct | ) |
|
|
private |
void SiStripDetVOffBuilder::printPar |
( |
std::stringstream & |
ss, |
|
|
const std::vector< int > & |
par |
|
) |
| |
|
private |
void SiStripDetVOffBuilder::readLastValueFromFile |
( |
std::vector< uint32_t > & |
dpIDs, |
|
|
std::vector< float > & |
vmonValues, |
|
|
std::vector< coral::TimeStamp > & |
dateChange |
|
) |
| |
|
private |
Operates the reduction of the fast sequences of ramping up and down of the voltages.
Definition at line 486 of file SiStripDetVOffBuilder.cc.
void SiStripDetVOffBuilder::reduction |
( |
const uint32_t |
deltaTmin, |
|
|
const uint32_t |
maxIOVlength |
|
) |
| |
void SiStripDetVOffBuilder::removeDuplicates |
( |
std::vector< uint32_t > & |
vec | ) |
|
|
private |
Store the last payload transferred to DB as starting point for creation of new object list. ONLY WORKS FOR STATUSCHANGE OPTION.
Definition at line 460 of file SiStripDetVOffBuilder.cc.
void SiStripDetVOffBuilder::setPayloadStats |
( |
const uint32_t |
afterV, |
|
|
const uint32_t |
numAdded, |
|
|
const uint32_t |
numRemoved |
|
) |
| |
|
private |
string SiStripDetVOffBuilder::timeToStream |
( |
const coral::TimeStamp & |
coralTime, |
|
|
const string & |
comment = "" |
|
) |
| |
|
private |
string SiStripDetVOffBuilder::timeToStream |
( |
const cond::Time_t & |
condTime, |
|
|
const string & |
comment = "" |
|
) |
| |
|
private |
friend class TestSiStripDetVOffBuilder |
|
friend |
std::string SiStripDetVOffBuilder::authenticationPath |
|
private |
bool SiStripDetVOffBuilder::debug_ |
|
private |
uint32_t SiStripDetVOffBuilder::deltaTmin_ |
|
private |
std::string SiStripDetVOffBuilder::detIdListFile_ |
|
private |
std::string SiStripDetVOffBuilder::excludedDetIdListFile_ |
|
private |
bool SiStripDetVOffBuilder::fromFile |
|
private |
double SiStripDetVOffBuilder::highVoltageOnThreshold_ |
|
private |
std::string SiStripDetVOffBuilder::lastValueFileName |
|
private |
uint32_t SiStripDetVOffBuilder::maxIOVlength_ |
|
private |
std::string SiStripDetVOffBuilder::onlineDbConnectionString |
|
private |
std::vector< std::vector<uint32_t> > SiStripDetVOffBuilder::payloadStats |
|
private |
std::string SiStripDetVOffBuilder::psuDetIdMapFile_ |
|
private |
std::vector<int> SiStripDetVOffBuilder::tDefault |
|
private |
coral::TimeStamp SiStripDetVOffBuilder::tmax |
|
private |
std::vector<int> SiStripDetVOffBuilder::tmax_par |
|
private |
coral::TimeStamp SiStripDetVOffBuilder::tmin |
|
private |
std::vector<int> SiStripDetVOffBuilder::tmin_par |
|
private |
std::vector<int> SiStripDetVOffBuilder::tset_par |
|
private |
coral::TimeStamp SiStripDetVOffBuilder::tsetmin |
|
private |
bool SiStripDetVOffBuilder::whichQuery |
|
private |
std::string SiStripDetVOffBuilder::whichTable |
|
private |