1 #ifndef SISTRIPDETVOFF_SRC_BUILDER_H 2 #define SISTRIPDETVOFF_SRC_BUILDER_H 3 #define USING_NEW_CORAL 19 #include "CoralBase/TimeStamp.h" 35 class TestSiStripDetVOffBuilder;
59 void reduce(std::vector<std::pair<SiStripDetVOff*, cond::Time_t> >::iterator& it,
60 std::vector<std::pair<SiStripDetVOff*, cond::Time_t> >::iterator& initialIt,
61 std::vector<std::pair<SiStripDetVOff*, cond::Time_t> >& resultVec,
62 const bool last =
false);
64 void reduction(
const uint32_t deltaTmin,
const uint32_t maxIOVlength);
67 void discardIOVs(std::vector<std::pair<SiStripDetVOff*, cond::Time_t> >::iterator& it,
68 std::vector<std::pair<SiStripDetVOff*, cond::Time_t> >::iterator& initialIt,
69 std::vector<std::pair<SiStripDetVOff*, cond::Time_t> >& resultVec,
71 const unsigned int first);
80 void printPar(std::stringstream& ss,
const std::vector<int>& par);
87 const coral::TimeStamp& changeDate,
88 const std::vector<uint32_t>& settingID,
89 const std::vector<coral::TimeStamp>& settingDate);
93 const coral::TimeStamp& changeDate,
94 const std::vector<std::string>& settingDpname,
95 const std::vector<coral::TimeStamp>& settingDate);
99 std::vector<float>& vmonValues,
100 std::vector<coral::TimeStamp>& dateChange);
115 std::vector<std::pair<SiStripDetVOff*, cond::Time_t> >
modulesOff;
152 std::vector<unsigned int>
isHV;
161 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