53 : diamondRecHitToken_(
56 dqmDir_(iConfig.getParameter<std::
string>(
"dqmDir")) {}
69 for (
auto it =
geom.beginSensor(); it !=
geom.endSensor(); ++it) {
76 iHists.
leadingTime[detid.
rawId()] = iBooker.
book1D(
"t_" + ch_name, ch_name +
";t (ns);Entries", 1200, -60., 60.);
77 iHists.
toT[detid.
rawId()] = iBooker.
book1D(
"tot_" + ch_name, ch_name +
";ToT (ns);Entries", 100, -20., 20.);
79 iBooker.
book2D(
"tvstot_" + ch_name, ch_name +
";ToT (ns);t (ns)", 240, 0., 60., 450, -20., 25.);
92 if (dsv_rechits->empty()) {
93 edm::LogWarning(
"PPSTimingCalibrationPCLWorker:dqmAnalyze") <<
"No rechits retrieved from the event content.";
96 for (
const auto& ds_rechits : *dsv_rechits) {
100 <<
"Pad with detId=" << detid <<
" is not set to be monitored.";
103 for (
const auto& rechit : ds_rechits) {
105 if (rechit.time() == 0. || rechit.toT() < 0.)
108 iHists.
toT.at(detid.rawId())->
Fill(rechit.toT());
119 ->setComment(
"input tag for the PPS diamond detectors rechits");
120 desc.
add<
std::string>(
"dqmDir",
"AlCaReco/PPSTimingCalibrationPCL")
121 ->setComment(
"output path for the various DQM plots");
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
virtual void setCurrentFolder(std::string const &fullpath)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Reconstructed hit in diamond detectors.
#define DEFINE_FWK_MODULE(type)
void channelName(std::string &name, NameFlag flag=nFull) const
constexpr uint32_t rawId() const
get the raw id
MonitorMap leadingTimeVsToT
static void fillDescriptions(edm::ConfigurationDescriptions &)
bool getData(T &iHolder) const
const std::string dqmDir_
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondRecHit > > diamondRecHitToken_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static bool check(unsigned int raw)
returns true if the raw ID is a PPS-timing one
edm::ESGetToken< CTPPSGeometry, VeryForwardRealGeometryRecord > geomEsToken_
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
PPSTimingCalibrationPCLWorker(const edm::ParameterSet &)
void bookHistograms(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &, TimingCalibrationHistograms &) const override
Detector ID class for CTPPS Timing Diamond detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bit...
Log< level::Warning, false > LogWarning
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
void dqmAnalyze(const edm::Event &, const edm::EventSetup &, const TimingCalibrationHistograms &) const override