1 #ifndef DetectorQuantity_h 2 #define DetectorQuantity_h 48 typedef std::vector<std::string> (*getLabels_did)();
66 "iphi",
"ieta",
"depth",
"Subdet",
"SubdetPM" 90 {
return getValue_functions_did[
_type](did);}
92 {
return getBin_functions_did[
_type](did);}
100 {
return getLabels_functions_did[
_type]();}
HcalDetId getDid_ieta(int)
int const nbins_did[nDetectorQuantityType]
uint32_t getBin_iphi(HcalDetId const &)
std::vector< std::string > getLabels_SubdetPM()
DetectorQuantity(DetectorQuantityType type, bool isLog=false)
std::vector< std::string > getLabels_ieta()
getDid_did const getDid_functions_did[nDetectorQuantityType]
HcalDetId getDid_depth(int)
uint32_t getBin_SubdetPM(HcalDetId const &)
virtual bool isCoordinate()
uint32_t(* getBinType_did)(HcalDetId const &)
int getValue_ieta(HcalDetId const &)
uint32_t getBin_ieta(HcalDetId const &)
uint32_t getBin_Subdet(HcalDetId const &)
int(* getValueType_did)(HcalDetId const &)
std::vector< std::string > getLabels_Subdet()
std::vector< std::string >(* getLabels_did)()
virtual uint32_t getBin(HcalDetId const &did)
HcalDetId(* getDid_did)(int)
virtual std::vector< std::string > getLabels()
getValueType_did const getValue_functions_did[nDetectorQuantityType]
std::string const name_did[nDetectorQuantityType]
virtual ~DetectorQuantity()
virtual QuantityType type()
double const min_did[nDetectorQuantityType]
HcalDetId getDid_iphi(int)
HcalDetId getDid_SubdetPM(int)
uint32_t getBin_depth(HcalDetId const &)
std::vector< std::string > getLabels_depth()
int getValue_iphi(HcalDetId const &)
virtual DetectorQuantity * makeCopy()
getLabels_did const getLabels_functions_did[nDetectorQuantityType]
virtual int getValue(HcalDetId const &did)
DetectorQuantityType _type
HcalDetId getDid_Subdet(int)
std::vector< std::string > getLabels_iphi()
int getValue_SubdetPM(HcalDetId const &)
int getValue_depth(HcalDetId const &)
double const max_did[nDetectorQuantityType]
int getValue_Subdet(HcalDetId const &)
getBinType_did const getBin_functions_did[nDetectorQuantityType]