|
|
Go to the documentation of this file.
70 switch (
id.subdet()) {
89 "%s_%s_%d_%d_%d_eid=%d_%d_%d_%d_HTR_%d:%d%c",
99 eid.readoutVMECrateId(),
101 (
eid.htrTopBottom() == 1) ? (
't') : (
'b'));
115 switch (
id.hcalSubdet()) {
134 if (chanstring.empty()) {
135 chanstring =
"Unknown";
136 edm::LogInfo(
"HcalQLPlotHistoMgr::GetAHistogram") <<
"Unknown calibration channel " <<
id.cboxChannel();
140 "%s_CALIB_%s_%d_%d_chan=%s_eid=%d_%d_%d_%d_HTR_%d:%d%c",
150 eid.readoutVMECrateId(),
152 (
eid.htrTopBottom() == 1) ? (
't') : (
'b'));
182 printf(
"Unknown %d !\n",
et);
186 TH1* retval =
nullptr;
188 retval = (TH1*)td->Get(
name);
190 double lo = 0,
hi = 0;
195 if (retval ==
nullptr) {
206 edm::LogError(
"HcalQLPlotHistoMgr::GetAHistogram") <<
"Parameter(s) pedGeVlo/hi not found.";
216 edm::LogError(
"HcalQLPlotHistoMgr::GetAHistogram") <<
"Parameter(s) ledGeVlo/hi not found.";
226 edm::LogError(
"HcalQLPlotHistoMgr::GetAHistogram") <<
"Parameter(s) laserGeVlo/hi not found.";
236 edm::LogError(
"HcalQLPlotHistoMgr::GetAHistogram") <<
"Parameter(s) beamGeVlo/hi not found.";
246 edm::LogError(
"HcalQLPlotHistoMgr::GetAHistogram") <<
"Parameter(s) otherGeVlo/hi not found.";
260 edm::LogError(
"HcalQLPlotHistoMgr::GetAHistogram") <<
"Parameter(s) timeNSlo/hi not found.";
275 edm::LogError(
"HcalQLPlotHistoMgr::GetAHistogram") <<
"Parameter(s) pedADClo/hi not found.";
284 retval->GetXaxis()->SetTitle(
"TimeSlice(25ns)");
285 retval->GetYaxis()->SetTitle(
"fC");
286 }
else if (ht ==
TIME) {
288 retval->GetXaxis()->SetTitle(
"Timing(ns)");
289 }
else if (ht ==
ENERGY) {
291 retval->GetXaxis()->SetTitle(
"Energy(GeV)");
292 }
else if (ht ==
ADC) {
294 retval->GetXaxis()->SetTitle(
"ADC Counts");
HcalQLPlotHistoMgr(TDirectory *parent, const edm::ParameterSet &histoParams)
static const int TIME_BINS
static const int BEAM_BINS
static const int OTHER_BINS
edm::ParameterSet histoParams_
static const int LED_BINS
Readout chain identification for Hcal.
static std::string nameForFlavor(HistType ht)
TDirectory * laserHistDir
TDirectory * otherHistDir
static const int PULSE_BINS
static std::string nameForEvent(EventType et)
T getParameter(std::string const &) const
static const int LASER_BINS
static const int PED_BINS
TH1 * GetAHistogram(const HcalDetId &id, const HcalElectronicsId &eid, HistType ht, EventType et)
TH1 * GetAHistogramImpl(const char *name, HistType ht, EventType et)