7 pedHistDir = (TDirectory*)parent->Get(
"PEDESTAL");
17 case(
ENERGY) :
return "Energy";
break;
18 case(
TIME) :
return "Time";
break;
19 case(
PULSE) :
return "Pulse";
break;
20 case(
ADC) :
return "ADC";
break;
21 default :
return "";
break;
28 case(
PEDESTAL) :
return "Pedestal";
break;
29 case(
LED) :
return "LED";
break;
30 case(
LASER) :
return "Laser";
break;
31 case(
BEAM) :
return "Beam";
break;
32 default :
return "Other";
break;
49 default : td=0;
break;
53 printf(
"Event type not known, et=%d\n", et);
65 default : subdetStr=
"Other";
break;
69 sprintf(name,
"%s_%s_%d_%d_%d",
70 flavor.c_str(),subdetStr.c_str(),
id.ieta,
id.iphi,
id.depth);
72 TList* keyList = td->GetListOfKeys();
74 for(
int keyindex = 0; keyindex<keyList->GetEntries(); ++keyindex) {
75 std::string keyname = keyList->At(keyindex)->GetName();
76 if (strstr(keyname.c_str(),
name)) {
77 retval=(TH1*)td->Get(keyname.c_str());
101 default: td=0;
break;
105 printf(
"Unknown %d !\n", et);
113 if (eid.
tb==0){topbot =
'b';}
116 sprintf(name,
"%d_%d_HTR_%d:%d%c",
118 TList* keyList = td->GetListOfKeys();
120 for(
int keyindex = 0; keyindex<keyList->GetEntries(); ++keyindex) {
121 std::string keyname = keyList->At(keyindex)->GetName();
122 if ((strstr(keyname.c_str(),
name))&&(strstr(keyname.c_str(),flavor.c_str()))) {
123 retval=(TH1*)td->Get(keyname.c_str());
140 std::vector<MyHcalDetId> retvals;
150 default : td=0;
break;
154 printf(
"Event type not known, et=%d\n", et);
158 keyList = td->GetListOfKeys();
160 for(
int keyindex = 0; keyindex<keyList->GetEntries(); ++keyindex) {
162 std::string keyname = keyList->At(keyindex)->GetName();
164 while (keyname.find(
"_")!=std::string::npos)
165 keyname.replace(keyname.find(
"_"),1,
" ");
166 converted = sscanf(keyname.c_str(),
"%s %s %d %d %d",
169 if( (flavor==keyflavor) && (converted==5) ) {
176 retvals.push_back(mydetid);
193 std::vector<MyElectronicsId> retvals;
203 default: td=0;
break;
206 printf(
"Event type not known, et=%d\n", et);
210 keyList = td->GetListOfKeys();
211 if (keyList==0)
return retvals;
213 for(
int keyindex = 0; keyindex<keyList->GetEntries(); ++keyindex) {
215 std::string keyname = keyList->At(keyindex)->GetName();
216 while (keyname.find(
"_")!=std::string::npos)
217 keyname.replace(keyname.find(
"_"),1,
" ");
222 if(strstr(keyname.c_str(),
"CALIB")){
223 converted = sscanf(keyname.c_str(),
"%s %*s %s %*d %*d chan=%*s eid=%*d %*d %d %d HTR %d:%d%c ",
234 converted = sscanf(keyname.c_str(),
"%s %s %*d %*d %*d eid=%*d %*d %d %d HTR %d:%d%c ",
246 if( (flavor==keyflavor) && (converted==7) )
248 retvals.push_back(mydeteid);
static std::string nameForEvent(EventType et)
TDirectory * laserHistDir
std::vector< MyHcalDetId > getDetIdsForType(HistType ht, EventType et)
std::vector< MyElectronicsId > getElecIdsForType(HistType ht, EventType et)
printf("params %d %f %f %f\n", minT, eps, errmax, chi2max)
if(conf_.getParameter< bool >("UseStripCablingDB"))
TDirectory * otherHistDir
TH1 * GetAHistogram(const MyHcalDetId &id, HistType ht, EventType et)
HistoManager(TDirectory *parent)
static std::string nameForFlavor(HistType ht)