|
|
Go to the documentation of this file. 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);
void readLastValueFromFile(std::vector< uint32_t > &dpIDs, std::vector< float > &vmonValues, std::vector< coral::TimeStamp > &dateChange)
std::vector< std::vector< uint32_t > > getPayloadStats()
Builds the SiStripDetVOff object for transfer by O2O.
bool FileExists(std::string filename)
std::string lastValueFileName
std::string detIdListFile_
SiStripDetVOffBuilder(const edm::ParameterSet &, const edm::ActivityRegistry &)
std::vector< float > actualValue
coral::TimeStamp getCoralTime(cond::Time_t iovTime)
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::vector< int > tset_par
std::vector< std::string > dpname
std::pair< SiStripDetVOff *, cond::Time_t > lastStoredCondObj
void statusChange(cond::Time_t &lastTime, TimesAndValues &tStruct)
cond::Time_t findMostRecentTimeStamp(const std::vector< coral::TimeStamp > &coralDate)
void printPar(std::stringstream &ss, const std::vector< int > &par)
void removeDuplicates(std::vector< uint32_t > &vec)
void lastValueFromFile(TimesAndValues &tStruct)
void setLastSiStripDetVOff(SiStripDetVOff *lastPayload, cond::Time_t lastTimeStamp)
std::vector< std::pair< std::vector< uint32_t >, coral::TimeStamp > > DetIdTimeStampVector
std::vector< std::string > psuName
std::vector< bool > StatusGood
std::vector< unsigned int > isHV
void lastValue(TimesAndValues &tStruct)
std::vector< std::pair< SiStripDetVOff *, cond::Time_t > > modulesOff
std::vector< int > tDefault
std::vector< int > actualStatus
double highVoltageOnThreshold_
DetIdTimeStampVector detidV
void reduction(const uint32_t deltaTmin, const uint32_t maxIOVlength)
std::string authenticationPath
std::vector< uint32_t > dpid
unsigned long long Time_t
std::vector< int > tmax_par
std::string onlineDbConnectionString
std::string timeToStream(const coral::TimeStamp &coralTime, const string &comment="")
cond::Time_t getCondTime(const coral::TimeStamp &coralTime)
std::vector< std::vector< uint32_t > > payloadStats
std::pair< int, int > extractDetIdVector(const unsigned int i, SiStripDetVOff *modV, DetIdListTimeAndStatus &detIdStruct)
void buildPSUdetIdMap(TimesAndValues &tStruct, DetIdListTimeAndStatus &dStruct)
std::vector< coral::TimeStamp > changeDate
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::string excludedDetIdListFile_
std::unique_ptr< SiStripCoralIface > coralInterface
std::vector< int > tmin_par
int findSetting(uint32_t id, const coral::TimeStamp &changeDate, const std::vector< uint32_t > &settingID, const std::vector< coral::TimeStamp > &settingDate)
void setPayloadStats(const uint32_t afterV, const uint32_t numAdded, const uint32_t numRemoved)
std::string psuDetIdMapFile_
std::vector< std::pair< SiStripDetVOff *, cond::Time_t > > getModulesVOff()
friend class TestSiStripDetVOffBuilder