|
|
Go to the documentation of this file.
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");
121 ->setComment(
"output path for the various DQM plots");
Reconstructed hit in diamond detectors.
virtual void setCurrentFolder(std::string const &fullpath)
static void fillDescriptions(edm::ConfigurationDescriptions &)
Log< level::Warning, false > LogWarning
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< edm::DetSetVector< CTPPSDiamondRecHit > > diamondRecHitToken_
const std::string dqmDir_
Detector ID class for CTPPS Timing Diamond detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bit...
PPSTimingCalibrationPCLWorker(const edm::ParameterSet &)
static bool check(unsigned int raw)
returns true if the raw ID is a PPS-timing one
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
bool getData(T &iHolder) const
void channelName(std::string &name, NameFlag flag=nFull) const
constexpr uint32_t rawId() const
get the raw id
void dqmAnalyze(const edm::Event &, const edm::EventSetup &, const TimingCalibrationHistograms &) const override
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
edm::ESGetToken< CTPPSGeometry, VeryForwardRealGeometryRecord > geomEsToken_
void bookHistograms(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &, TimingCalibrationHistograms &) const override
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorMap leadingTimeVsToT