1 #ifndef SISTRIPDETVOFF_SRC_BUILDER_H
2 #define SISTRIPDETVOFF_SRC_BUILDER_H
3 #define USING_NEW_CORAL
20 #include "CoralBase/TimeStamp.h"
46 std::vector< std::pair<SiStripDetVOff*,cond::Time_t> >
getModulesVOff(
const int deltaTmin = 1,
const int maxIOVlength = 120) {
57 void reduce( std::vector< std::pair<SiStripDetVOff*,cond::Time_t> >::iterator & it,
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);
65 void discardIOVs( std::vector< std::pair<SiStripDetVOff*,cond::Time_t> >::iterator & it,
66 std::vector< std::pair<SiStripDetVOff*,cond::Time_t> >::iterator & initialIt,
67 std::vector< std::pair<SiStripDetVOff*,cond::Time_t> > & resultVec,
68 const bool last,
const unsigned int first );
78 void printPar(std::stringstream& ss,
const std::vector<int>& par);
85 coral::TimeStamp changeDate,
86 std::vector<uint32_t> settingID,
87 std::vector<coral::TimeStamp> settingDate);
91 coral::TimeStamp changeDate,
92 std::vector<std::string> settingDpname,
93 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;
155 std::vector<unsigned int>
isHV;
164 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::string authenticationPath
std::vector< std::pair< std::vector< uint32_t >, coral::TimeStamp > > DetIdTimeStampVector
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 > > getModulesVOff(const int deltaTmin=1, const int maxIOVlength=120)
void buildPSUdetIdMap(TimesAndValues &tStruct, DetIdListTimeAndStatus &dStruct)
std::string psuDetIdMapFile_
DetIdTimeStampVector detidV
double highVoltageOnThreshold_
std::string detIdListFile_
std::auto_ptr< SiStripCoralIface > coralInterface
void removeDuplicates(std::vector< uint32_t > &vec)
std::vector< std::string > dpname
bool FileExists(std::string filename)
std::vector< int > tDefault
unsigned long long Time_t
std::vector< uint32_t > dpid
std::string excludedDetIdListFile_
std::vector< bool > StatusGood
std::vector< coral::TimeStamp > changeDate
std::vector< unsigned int > isHV
void reduction(const uint32_t deltaTmin, const uint32_t maxIOVlength)
void lastValue(TimesAndValues &tStruct)
void readLastValueFromFile(std::vector< uint32_t > &dpIDs, std::vector< float > &vmonValues, std::vector< coral::TimeStamp > &dateChange)
void lastValueFromFile(TimesAndValues &tStruct)
cond::Time_t findMostRecentTimeStamp(std::vector< coral::TimeStamp > coralDate)
std::vector< int > tmax_par
coral::TimeStamp getCoralTime(cond::Time_t iovTime)
cond::Time_t getCondTime(coral::TimeStamp coralTime)
std::vector< std::vector< uint32_t > > getPayloadStats()
void setLastSiStripDetVOff(SiStripDetVOff *lastPayload, cond::Time_t lastTimeStamp)
std::vector< int > tmin_par
std::vector< std::vector< uint32_t > > payloadStats
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
std::vector< std::pair< SiStripDetVOff *, cond::Time_t > > modulesOff
void statusChange(cond::Time_t &lastTime, TimesAndValues &tStruct)
std::pair< SiStripDetVOff *, cond::Time_t > lastStoredCondObj
std::string timeToStream(const coral::TimeStamp &coralTime, const string &comment="")
std::vector< int > tset_par
int findSetting(uint32_t id, coral::TimeStamp changeDate, std::vector< uint32_t > settingID, std::vector< coral::TimeStamp > settingDate)
std::string onlineDbConnectionString