41 std::unordered_map<uint32_t, dqm::reco::MonitorElement*>
timeHisto;
42 std::unordered_map<uint32_t, dqm::reco::MonitorElement*>
db;
43 std::unordered_map<uint32_t, dqm::reco::MonitorElement*>
sampic;
44 std::unordered_map<uint32_t, dqm::reco::MonitorElement*>
channel;
75 : totemTimingDigiToken_(
77 totemTimingRecHitToken_(
95 if (timingRecHit->empty()) {
96 edm::LogWarning(
"PPSDiamondSampicTimingCalibrationPCLWorker:dqmAnalyze")
97 <<
"No rechits retrieved from the event content.";
101 for (
const auto& digis : *timingDigi) {
103 for (
const auto& digi : digis) {
104 histos.
db.at(detId.rawId())->
Fill(digi.hardwareBoardId());
105 histos.
sampic.at(detId.rawId())->
Fill(digi.hardwareSampicId());
106 histos.
channel.at(detId.rawId())->
Fill(digi.hardwareChannelId());
110 for (
const auto&
recHits : *timingRecHit) {
112 for (
const auto& recHit :
recHits)
127 for (
auto it =
geom.beginSensor(); it !=
geom.endSensor(); ++it) {
136 histos.
db[detid.
rawId()] = ibook.
bookInt(path +
"/" + ch_name +
"db");
147 ->setComment(
"input tag for the PPS diamond detectors digi");
149 ->setComment(
"input tag for the PPS diamond detectors rechits");
150 desc.
add<
std::string>(
"folder",
"AlCaReco/PPSDiamondSampicTimingCalibrationPCL")
151 ->setComment(
"output path for the various DQM plots");
152 descriptions.
add(
"PPSDiamondSampicTimingCalibrationPCLWorker", desc);
std::unordered_map< uint32_t, dqm::reco::MonitorElement * > timeHisto
virtual void setCurrentFolder(std::string const &fullpath)
edm::EDGetTokenT< edm::DetSetVector< TotemTimingRecHit > > totemTimingRecHitToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void channelName(std::string &name, NameFlag flag=nFull) const
std::unordered_map< uint32_t, dqm::reco::MonitorElement * > db
PPSDiamondSampicTimingCalibrationPCLWorker(const edm::ParameterSet &)
~PPSDiamondSampicTimingCalibrationPCLWorker() override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
constexpr uint32_t rawId() const
get the raw id
std::unordered_map< uint32_t, dqm::reco::MonitorElement * > channel
bool getData(T &iHolder) const
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::ESGetToken< CTPPSGeometry, VeryForwardRealGeometryRecord > geomEsToken_
static bool check(unsigned int raw)
returns true if the raw ID is a PPS-timing one
void dqmAnalyze(edm::Event const &, edm::EventSetup const &, Histograms_PPSDiamondSampicTimingCalibrationPCLWorker const &) const override
MonitorElement * bookInt(TString const &name, FUNC onbooking=NOOP())
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &, Histograms_PPSDiamondSampicTimingCalibrationPCLWorker &) const override
Detector ID class for CTPPS Timing Diamond detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bit...
std::unordered_map< uint32_t, dqm::reco::MonitorElement * > sampic
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())
edm::EDGetTokenT< edm::DetSetVector< TotemTimingDigi > > totemTimingDigiToken_