9 #ifndef RUNHISTORYDUNE_H 10 #define RUNHISTORYDUNE_H 15 #include <unordered_map> 21 #include "nuevdb/IFDatabase/Table.h" 66 if (detStr ==
"dune35t" || detStr ==
"DUNE35t" ||
67 detStr ==
"35t")
return k35t;
68 else return kUnknownDet;
79 virtual int RunNumber()
const override{
return fRun; }
80 int DetId()
const {
return fDetId; }
81 virtual int NSubruns()
const override{
return fNSubruns; }
82 virtual int RunType()
const override{
return fRunType; }
83 virtual std::string RunTypeAsString()
const override;
88 std::vector<std::string>
Shifters() {
return fShifter; }
89 std::vector<std::string>
Components() {
return fComponents; }
96 void SetShifters(std::vector<std::string> sh) { fShifter = sh; }
103 void DumpASICSettings();
107 bool LoadSCChanMap();
109 bool LoadASICSettings();
137 #endif // RUNHISTORYDUNE_H
virtual uint64_t TStart() const override
Pedestal provider class for DUNE.
std::vector< std::string > fShifter
std::string TStopAsString() const
virtual int RunType() const override
std::unordered_map< int, std::string > fSCInvChanMap
virtual uint64_t Duration() const override
static int DetNameToId(std::string detStr)
std::unique_ptr< nutools::dbi::Table > fASICSettingsTable
std::string TStartAsString() const
void SetTStart(uint64_t t)
virtual int NSubruns() const override
void SetTStart(uint64_t t)
static std::string DetIdToString(int detId)
std::unordered_map< std::string, int > fSCChanMap
std::vector< SubRunDUNE > fSubrun
std::unique_ptr< nutools::dbi::Table > fSCDataTable
unsigned __int64 uint64_t
bool Update(TCSlice &slc, PFPStruct &pfp, bool prt)
ASICSetting(float g, float s, int b)
std::vector< std::string > Shifters()
virtual int RunNumber() const override
virtual uint64_t TStop() const override
std::vector< std::string > Components()
void SetTStop(uint64_t t)
void SetShifters(std::vector< std::string > sh)
void AddShifter(std::string sh)
void SetNSubruns(int nsr)
std::string CfgLabel() const
virtual uint64_t TStart() const override
std::unordered_map< int, ASICSetting > fASICSettingsMap
std::vector< std::string > fComponents