24 LogDebug(
"Commissioning") <<
"[FineDelayTask::FineDelayTask] Constructing object...";
30 LogDebug(
"Commissioning") <<
"[FineDelayTask::FineDelayTask] Destructing object...";
36 LogDebug(
"Commissioning") <<
"[FineDelayTask::book]";
45 LogDebug(
"Commissioning") <<
"[FineDelayTask::book] using existing histogram.";
48 LogDebug(
"Commissioning") <<
"[LatencyTask::book] booking a new histogram.";
60 100, 0., -1.,
"s" ) );
66 LogDebug(
"Commissioning") <<
"[FineDelayTask::book] done";
80 LogDebug(
"Commissioning") <<
"[FineDelayTask::fill]";
82 float delay = summary.
ttcrx();
83 uint32_t latencyCode = (summary.
layerScanned()>>24)&0xff;
84 LogDebug(
"Commissioning") <<
"[FineDelayTask::fill]: layerScanned() is " << summary.
layerScanned();
85 int latencyShift = latencyCode & 0x3f;
86 if(latencyShift>32) latencyShift -=64;
87 if((latencyCode>>6)==2) latencyShift -= 3;
88 if((latencyCode>>6)==1) latencyShift += 3;
89 float correctedDelay = delay - (latencyShift*25.);
91 LogDebug(
"Commissioning") <<
"[FineDelayTask::fill]; the delay is " << delay;
96 float tof = (digis.
data[
strip].adc()>>8)/10.;
97 correctedDelay = delay - (latencyShift*25.) - tof;
98 if((digis.
data[
strip].adc()>>8)==255)
continue;
103 int bin =
int((correctedDelay-lowbin)/((highbin-lowbin)/nbins));
104 LogDebug(
"Commissioning") <<
"[FineDelayTask::fill]; using a hit with value " << ( digis.
data[
strip].adc()&0xff )
105 <<
" at corrected delay of " << correctedDelay
106 <<
" in bin " << bin <<
" (tof is " << tof <<
"( since adc = " << digis.
data[
strip].adc() <<
"))";
116 LogDebug(
"Commissioning") <<
"[FineDelayTask::update]";
std::vector< float > vNumOfEntries_
Utility class that holds histogram title.
const uint32_t & layerScanned() const
std::vector< float > vSumOfContents_
void fill(const SiStripEventSummary &, const edm::DetSet< SiStripRawDigi > &) override
FineDelayTask(DQMStore *, const FedChannelConnection &)
MonitorElement * bookInt(char_string const &name)
Book int.
const uint32_t & key() const
void updateHistoSet(HistoSet &, const uint32_t &bin, const float &value)
Class containning control, module, detector and connection information, at the level of a FED channel...
const std::string & path() const
std::string const & pwd() const
Utility class that identifies a position within the strip tracker geometrical structure, down to the level of an APV25 chip.
bin
set the eta bin as selection string.
void setCurrentFolder(std::string const &fullpath)
DQMStore *const dqm() const
~FineDelayTask() override
void histo(MonitorElement *)
static const char root_[]
std::vector< double > vSumOfSquares_
static MonitorElement * mode_
const uint32_t & ttcrx() const