14 edm::LogInfo(
"SiStripHistoryDQMService") <<
"[SiStripHistoryDQMService::SiStripHistoryDQMService]";
19 edm::LogInfo(
"SiStripHistoryDQMService") <<
"[SiStripHistoryDQMService::~SiStripHistoryDQMService]";
24 LogTrace(
"SiStripHistoryDQMService") <<
"[SiStripHistoryDQMService::returnDetComponent]";
26 size_t __key_length__=7;
27 size_t __detid_length__=9;
29 uint32_t layer=0,side=0;
31 if(str.find(
"__det__")!= std::string::npos){
32 return atoi(str.substr(str.find(
"__det__")+__key_length__,__detid_length__).c_str());
35 else if(str.find(
"TIB")!= std::string::npos){
36 if (str.find(
"layer")!= std::string::npos)
37 layer=atoi(str.substr(str.find(
"layer__")+__key_length__,1).c_str());
41 else if(str.find(
"TOB")!= std::string::npos){
42 if (str.find(
"layer")!= std::string::npos)
43 layer=atoi(str.substr(str.find(
"layer__")+__key_length__,1).c_str());
47 else if(str.find(
"TID")!= std::string::npos){
48 if (str.find(
"side")!= std::string::npos){
49 side=atoi(str.substr(str.find(
"_side__")+__key_length__,1).c_str());
50 if (str.find(
"wheel")!= std::string::npos){
51 layer=atoi(str.substr(str.find(
"wheel__")+__key_length__,1).c_str());
57 else if(str.find(
"TEC")!= std::string::npos){
58 if (str.find(
"side")!= std::string::npos){
59 side=atoi(str.substr(str.find(
"_side__")+__key_length__,1).c_str());
60 if (str.find(
"wheel")!= std::string::npos){
61 layer=atoi(str.substr(str.find(
"wheel__")+__key_length__,1).c_str());
72 if (quantity ==
"user_2DYmean") {
76 edm::LogError(
"SiStripHistoryDQMService") <<
"ERROR: quantity does not exist in SiStripHistoryDQMService::setDBValuesForUser(): " << quantity;
82 if (quantity ==
"user_2DYmean") {
83 TH2F* Hist = (TH2F*) (*iterMes)->getTH2F();
84 values.push_back( Hist->GetMean(2) );
85 values.push_back( Hist->GetRMS(2) );
87 edm::LogError(
"SiStripHistoryDQMService") <<
"ERROR: quantity does not exist in SiStripHistoryDQMService::setDBValuesForUser(): " << quantity;
const std::string & getName(void) const
get name of ME
uint32_t returnDetComponent(const MonitorElement *ME)
uint32_t rawId() const
get the raw id
bool setDBValuesForUser(std::vector< MonitorElement * >::const_iterator iterMes, HDQMSummary::InputVector &values, std::string &quantity)
std::vector< float > InputVector
~SiStripHistoryDQMService()
Detector identifier class for the strip tracker.
bool setDBLabelsForUser(std::string &keyName, std::vector< std::string > &userDBContent, std::string &quantity)
SiStripHistoryDQMService(const edm::ParameterSet &, const edm::ActivityRegistry &)