|
|
Go to the documentation of this file. 1 #ifndef ValueQuantity_h
2 #define ValueQuantity_h
6 #include <unordered_map>
70 const std::map<ValueQuantityType, std::string>
name_value = {
323 }
else if (x >
max()) {
334 }
else if (x >
max()) {
374 double min()
override {
return 0; }
379 std::vector<std::string> vnames;
380 for (std::vector<flag::Flag>::const_iterator it =
_flags.begin(); it !=
_flags.end(); ++it)
381 vnames.push_back(it->_name);
400 double min()
override {
return 1; }
401 double max()
override {
return _n + 1; }
423 double min()
override {
return 1; }
424 double max()
override {
return _n + 1; }
442 double min()
override {
return 0; }
446 std::vector<std::string>
labels;
447 for (uint32_t
i = 0;
i <
_runs.size();
i++) {
455 for (uint32_t
i = 0;
i <
_runs.size();
i++)
481 double min()
override {
return 0.5; }
494 virtual void setup(std::vector<uint32_t>
const &vtypes) {
495 std::cout <<
"SIZE = " << vtypes.size() << std::endl;
496 for (uint32_t
i = 0;
i < vtypes.size();
i++)
497 _types.insert(std::make_pair((uint32_t)vtypes[
i],
i));
503 double min()
override {
return 0; }
508 typedef std::unordered_map<uint32_t, int>
TypeMap;
521 std::vector<uint32_t> vtypes;
523 vtypes.push_back(
p.first);
526 std::sort(vtypes.begin(), vtypes.end());
RunNumber(std::vector< int > runs)
uint32_t getBin(int f) override
virtual void setLS(TH1 *o)
void setMax(double x) override
std::vector< std::string > getLabels() override
uint32_t getBin(int l) override
std::string name() override
~LumiSectionCoarse() override
uint32_t getBin(int run) override
int getValue(int f) override
virtual void setBits(TH1 *o)
std::unordered_map< uint32_t, int > TypeMap
FlagQuantity * makeCopy() override
ValueQuantity(ValueQuantityType type, bool isLog=false)
void setBits(TH1 *o) override
FlagQuantity(std::vector< flag::Flag > const &flags)
~ValueQuantity() override
EventType * makeCopy() override
void setMax(double x) override
std::vector< std::string > getLabels() override
int getValue(int v) override
const std::map< ValueQuantityType, double > min_value
int getValue(int l) override
const std::map< ValueQuantityType, std::string > name_value
uint32_t getBin(int l) override
virtual void setup(std::vector< uint32_t > const &vtypes)
LumiSection * makeCopy() override
double getValue(double x) override
std::string name() override
std::string ogtype2string(constants::OrbitGapType type)
uint32_t getBin(int v) override
std::vector< flag::Flag > _flags
const std::map< ValueQuantityType, double > max_value
LumiSectionCoarse(int n, int binning)
ValueQuantity * makeCopy() override
std::vector< std::string > getLabels() override
int getValue(int l) override
QuantityType type() override
int getValue(int x) override
int getValue(int run) override
std::string name() override
std::string name() override
LumiSectionCoarse * makeCopy() override
EventType(std::vector< uint32_t > const &vtypes)
std::string name() override
std::string name() override
const std::map< ValueQuantityType, int > nbins_value