|
|
Go to the documentation of this file. 1 #ifndef SISTRIPDETVOFF_SRC_BUILDER_H
2 #define SISTRIPDETVOFF_SRC_BUILDER_H
3 #define USING_NEW_CORAL
18 #include "CoralBase/TimeStamp.h"
34 class TestSiStripDetVOffBuilder;
59 std::vector<std::pair<SiStripDetVOff*, cond::Time_t> >::iterator& initialIt,
60 std::vector<std::pair<SiStripDetVOff*, cond::Time_t> >& resultVec,
61 const bool last =
false);
63 void reduction(
const uint32_t deltaTmin,
const uint32_t maxIOVlength);
67 std::vector<std::pair<SiStripDetVOff*, cond::Time_t> >::iterator& initialIt,
68 std::vector<std::pair<SiStripDetVOff*, cond::Time_t> >& resultVec,
70 const unsigned int first);
79 void printPar(std::stringstream&
ss,
const std::vector<int>& par);
86 const coral::TimeStamp& changeDate,
87 const std::vector<uint32_t>& settingID,
88 const std::vector<coral::TimeStamp>& settingDate);
92 const coral::TimeStamp& changeDate,
93 const std::vector<std::string>& settingDpname,
94 const std::vector<coral::TimeStamp>& settingDate);
98 std::vector<float>& vmonValues,
99 std::vector<coral::TimeStamp>& dateChange);
114 std::vector<std::pair<SiStripDetVOff*, cond::Time_t> >
modulesOff;
151 std::vector<unsigned int>
isHV;
160 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