24 dataCollection_(
"defaultData"),
30 dataCollection_(dataCollection),
43 std::ostringstream rawIdString;
55 uint32_t local_component_id;
57 return local_component_id;
63 if(length1==std::string::npos){
64 LogWarning(
"PixelDQM")<<
"SiPixelHistogramId::returnIdPart - no regular histoid. Returning 0";
67 std::string part1 = histoid.substr(0,length1);
68 if(whichpart==1)
return part1;
69 std::string remain1 = histoid.substr(length1+
separator_.size());
71 if(length2==std::string::npos){
72 LogWarning(
"PixelDQM")<<
"SiPixelHistogramId::returnIdPart - no regular histoid. Returning 0";
75 std::string part2 = remain1.substr(0,length2);
76 if(whichpart==2)
return part2;
77 std::string part3 = remain1.substr(length2+
separator_.size());
78 if(whichpart==3)
return part3;
79 LogWarning(
"PixelDQM")<<
"SiPixelHistogramId::returnIdPart - no such whichpart="<<whichpart<<
" returning 0";
virtual ~SiPixelHistogramId()
Destructor.
std::string dataCollection_
std::string returnIdPart(std::string histoid, uint32_t whichpart)
get Part
std::string getDataCollection(std::string histogramId)
Get data Collection.
std::string setHistoId(std::string variable, uint32_t &rawId)
Set Histogram Id.
uint32_t getRawId(std::string histogramId)
Get Detector Raw Id.
SiPixelHistogramId()
Constructor.