16#ifndef ALICEO2_TPC_SECTOREDGEFLUCTUATIONS_H
17#define ALICEO2_TPC_SECTOREDGEFLUCTUATIONS_H
35 std::vector<std::pair<int, float>>
sectors;
63 void dumpToFile(
const char* file,
const char*
name =
"ccdb_object",
const char* brName =
"SectorEdgeFluctuation");
68 void loadFromFile(
const char* inpf,
const char*
name =
"ccdb_object",
const int iEntry = 0,
const char* brName =
"SectorEdgeFluctuation");
71 void setFromTree(TTree&
tree,
const int iEntry = 0,
const char* brName =
"SectorEdgeFluctuation");
76 std::vector<std::pair<int, float>>
getSectorsAtTime(
int run, Long64_t timestampMS)
const;
86 for (
const auto& [run,
v] : mIntervals) {
93 size_t getNRuns()
const {
return mIntervals.size(); }
94 bool empty()
const {
return mIntervals.empty(); }
101 std::map<int, std::vector<SectorEdgeInterval>> mIntervals;
const auto & getIntervals() const
get stored data
size_t size() const
Total number of intervals across all runs.
bool loadFromCSVFile(const std::string &filename)
std::vector< std::pair< int, float > > getSectorsAtTime(int run, Long64_t timestampMS) const
void loadFromFile(const char *inpf, const char *name="ccdb_object", const int iEntry=0, const char *brName="SectorEdgeFluctuation")
void setFromTree(TTree &tree, const int iEntry=0, const char *brName="SectorEdgeFluctuation")
set this object from input tree
static int parseSectorId(const std::string §orStr)
size_t getNRuns() const
number of total runs stored
void dumpToFile(const char *file, const char *name="ccdb_object", const char *brName="SectorEdgeFluctuation")
GLuint const GLchar * name
Global TPC definitions and constants.
Long64_t startTimeMS
interval start, Unix time in ms
std::vector< std::pair< int, float > > sectors
{o2SectorId, scalingFactor}
Long64_t endTimeMS
interval end, Unix time in ms
ClassDefNV(SectorEdgeInterval, 1)
std::unique_ptr< TTree > tree((TTree *) flIn.Get(std::string(o2::base::NameConf::CTFTREENAME).c_str()))