70 switch (
id.subdet()) {
89 "%s_%s_%d_%d_%d_eid=%d_%d_%d_%d_HTR_%d:%d%c",
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",
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.";
283 retval =
new TProfile(name, name, bins, lo, hi);
284 retval->GetXaxis()->SetTitle(
"TimeSlice(25ns)");
285 retval->GetYaxis()->SetTitle(
"fC");
286 }
else if (ht ==
TIME) {
287 retval =
new TH1F(name, name, bins, lo, hi);
288 retval->GetXaxis()->SetTitle(
"Timing(ns)");
289 }
else if (ht ==
ENERGY) {
290 retval =
new TH1F(name, name, bins, lo, hi);
291 retval->GetXaxis()->SetTitle(
"Energy(GeV)");
292 }
else if (ht ==
ADC) {
293 retval =
new TH1F(name, name, bins, lo, hi);
294 retval->GetXaxis()->SetTitle(
"ADC Counts");
static const int TIME_BINS
static const int BEAM_BINS
HcalQLPlotHistoMgr(TDirectory *parent, const edm::ParameterSet &histoParams)
static const int OTHER_BINS
Log< level::Error, false > LogError
constexpr int dccid() const
get the (Hcal local) DCC id for VME, crate number for uTCA
edm::ParameterSet histoParams_
static const int LED_BINS
static std::string nameForFlavor(HistType ht)
constexpr int htrTopBottom() const
get the htr top/bottom (1=top/0=bottom), valid for VME
constexpr int htrSlot() const
get the htr slot
printf("params %d %f %f %f\n", minT, eps, errmax, chi2max)
TDirectory * laserHistDir
constexpr int readoutVMECrateId() const
get the readout VME crate number
constexpr int spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
Log< level::Info, false > LogInfo
constexpr int fiberIndex() const
get the fiber index. For VME 1-8 (which of eight fibers carried by a spigot), for uTCA fibers are zer...
static const int PULSE_BINS
TH1 * GetAHistogramImpl(const char *name, HistType ht, EventType et)
T getParameter(std::string const &) const
static const int LASER_BINS
TH1 * GetAHistogram(const HcalDetId &id, const HcalElectronicsId &eid, HistType ht, EventType et)
static std::string nameForEvent(EventType et)
constexpr int fiberChanId() const
get the fiber channel id (which of channels on a fiber)
static const int PED_BINS
Readout chain identification for Hcal.
TDirectory * otherHistDir