1 #ifndef SISTRIPDETVOFF_SRC_BUILDER_H 2 #define SISTRIPDETVOFF_SRC_BUILDER_H 3 #define USING_NEW_CORAL 17 #include "CoralBase/TimeStamp.h" 33 class TestSiStripDetVOffBuilder;
58 std::vector<std::pair<SiStripDetVOff*, cond::Time_t> >::iterator& initialIt,
59 std::vector<std::pair<SiStripDetVOff*, cond::Time_t> >& resultVec,
60 const bool last =
false);
62 void reduction(
const uint32_t deltaTmin,
const uint32_t maxIOVlength);
66 std::vector<std::pair<SiStripDetVOff*, cond::Time_t> >::iterator& initialIt,
67 std::vector<std::pair<SiStripDetVOff*, cond::Time_t> >& resultVec,
69 const unsigned int first);
78 void printPar(std::stringstream&
ss,
const std::vector<int>& par);
85 const coral::TimeStamp& changeDate,
86 const std::vector<uint32_t>& settingID,
87 const std::vector<coral::TimeStamp>& settingDate);
91 const coral::TimeStamp& changeDate,
92 const std::vector<std::string>& settingDpname,
93 const std::vector<coral::TimeStamp>& settingDate);
97 std::vector<float>& vmonValues,
98 std::vector<coral::TimeStamp>& dateChange);
113 std::vector<std::pair<SiStripDetVOff*, cond::Time_t> >
modulesOff;
150 std::vector<unsigned int>
isHV;
159 void setPayloadStats(
const uint32_t afterV,
const uint32_t numAdded,
const uint32_t numRemoved);
SiStripDetVOffBuilder(const edm::ParameterSet &, const edm::ActivityRegistry &)
std::string lastValueFileName
std::vector< int > actualStatus
std::vector< std::pair< std::vector< uint32_t >, coral::TimeStamp > > DetIdTimeStampVector
std::string authenticationPath
Builds the SiStripDetVOff object for transfer by O2O.
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.
std::pair< int, int > extractDetIdVector(const unsigned int i, SiStripDetVOff *modV, DetIdListTimeAndStatus &detIdStruct)
void printPar(std::stringstream &ss, const std::vector< int > &par)
std::vector< std::pair< SiStripDetVOff *, cond::Time_t > > modulesOff
void buildPSUdetIdMap(TimesAndValues &tStruct, DetIdListTimeAndStatus &dStruct)
std::string psuDetIdMapFile_
friend class TestSiStripDetVOffBuilder
std::vector< std::vector< uint32_t > > getPayloadStats()
DetIdTimeStampVector detidV
double highVoltageOnThreshold_
std::string detIdListFile_
int findSetting(uint32_t id, const coral::TimeStamp &changeDate, const std::vector< uint32_t > &settingID, const std::vector< coral::TimeStamp > &settingDate)
void removeDuplicates(std::vector< uint32_t > &vec)
std::vector< std::string > dpname
bool FileExists(std::string filename)
std::vector< int > tDefault
std::pair< SiStripDetVOff *, cond::Time_t > lastStoredCondObj
std::unique_ptr< SiStripCoralIface > coralInterface
unsigned long long Time_t
std::vector< uint32_t > dpid
std::string excludedDetIdListFile_
cond::Time_t getCondTime(const coral::TimeStamp &coralTime)
std::vector< bool > StatusGood
std::vector< coral::TimeStamp > changeDate
std::vector< unsigned int > isHV
void reduction(const uint32_t deltaTmin, const uint32_t maxIOVlength)
std::vector< std::vector< uint32_t > > payloadStats
void lastValue(TimesAndValues &tStruct)
void readLastValueFromFile(std::vector< uint32_t > &dpIDs, std::vector< float > &vmonValues, std::vector< coral::TimeStamp > &dateChange)
cond::Time_t findMostRecentTimeStamp(const std::vector< coral::TimeStamp > &coralDate)
void lastValueFromFile(TimesAndValues &tStruct)
std::vector< int > tmax_par
coral::TimeStamp getCoralTime(cond::Time_t iovTime)
void setLastSiStripDetVOff(SiStripDetVOff *lastPayload, cond::Time_t lastTimeStamp)
std::vector< int > tmin_par
std::vector< std::pair< SiStripDetVOff *, cond::Time_t > > getModulesVOff()
void setPayloadStats(const uint32_t afterV, const uint32_t numAdded, const uint32_t numRemoved)
std::vector< float > actualValue
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.
std::vector< std::string > psuName
void statusChange(cond::Time_t &lastTime, TimesAndValues &tStruct)
std::string timeToStream(const coral::TimeStamp &coralTime, const string &comment="")
std::vector< int > tset_par
std::string onlineDbConnectionString