43 LogTrace(
"SiStripHistoryDQMService") <<
"[SiStripHistoryDQMService::returnDetComponent]";
45 const size_t __key_length__=7;
46 const size_t __detid_length__=9;
48 uint32_t layer=0,side=0;
50 if (
str.find(
"__det__") != std::string::npos ) {
51 return atoi(
str.substr(
str.find(
"__det__")+__key_length__,__detid_length__).c_str());
54 else if (
str.find(
"TIB") != std::string::npos ) {
55 if (
str.find(
"layer")!= std::string::npos )
56 layer = atoi(
str.substr(
str.find(
"layer__")+__key_length__,1).c_str());
60 else if (
str.find(
"TOB") != std::string::npos ) {
61 if (
str.find(
"layer") != std::string::npos )
62 layer = atoi(
str.substr(
str.find(
"layer__")+__key_length__,1).c_str());
66 else if (
str.find(
"TID") != std::string::npos ) {
67 if (
str.find(
"side") != std::string::npos ) {
68 side = atoi(
str.substr(
str.find(
"_side__")+__key_length__,1).c_str());
69 if (
str.find(
"wheel") != std::string::npos ) {
70 layer = atoi(
str.substr(
str.find(
"wheel__")+__key_length__,1).c_str());
76 else if (
str.find(
"TEC") != std::string::npos ) {
77 if (
str.find(
"side") != std::string::npos ) {
78 side = atoi(
str.substr(
str.find(
"_side__")+__key_length__,1).c_str());
79 if (
str.find(
"wheel") != std::string::npos ) {
80 layer = atoi(
str.substr(
str.find(
"wheel__")+__key_length__,1).c_str());
92 if (quantity ==
"user_2DYmean") {
96 edm::LogError(
"SiStripHistoryDQMService") <<
"ERROR: quantity does not exist in SiStripHistoryDQMService::setDBValuesForUser(): " <<
quantity;
104 if (quantity ==
"user_2DYmean") {
105 TH2F* Hist = (TH2F*) me->
getTH2F();
106 values.push_back( Hist->GetMean(2) );
107 values.push_back( Hist->GetRMS(2) );
109 edm::LogError(
"SiStripHistoryDQMService") <<
"ERROR: quantity does not exist in SiStripHistoryDQMService::setDBValuesForUser(): " <<
quantity;
const std::string & getName(void) const
get name of ME
SiStripPopConHistoryDQM(const edm::ParameterSet &pset)
#define DEFINE_FWK_MODULE(type)
def setup(process, global_tag, zero_tesla=False)
void initES(const edm::EventSetup &) override
uint32_t rawId() const
get the raw id
std::vector< float > InputVector
DetId tobDetId(uint32_t layer, uint32_t rod_fw_bw, uint32_t rod, uint32_t module, uint32_t ster) const
DetId tidDetId(uint32_t side, uint32_t wheel, uint32_t ring, uint32_t module_fw_bw, uint32_t module, uint32_t ster) const
bool setDBValuesForUser(const MonitorElement *me, HDQMSummary::InputVector &values, const std::string &quantity) const override
uint32_t returnDetComponent(const MonitorElement *ME) const override
DetId tibDetId(uint32_t layer, uint32_t str_fw_bw, uint32_t str_int_ext, uint32_t str, uint32_t module, uint32_t ster) const
const TrackerTopology * trackerTopo_
TH2F * getTH2F(void) const
bool setDBLabelsForUser(const std::string &keyName, std::vector< std::string > &userDBContent, const std::string &quantity) const override
DetId tecDetId(uint32_t side, uint32_t wheel, uint32_t petal_fw_bw, uint32_t petal, uint32_t ring, uint32_t module, uint32_t ster) const
T const * product() const
~SiStripPopConHistoryDQM() override