82 folderName_(ps.getUntrackedParameter<
std::
string>(
"folderName",
"PPSRANDOM/RandomPixel")),
83 rpStatusWord_(ps.getUntrackedParameter<unsigned
int>(
"RPStatusWord", 0x8008)) {
112 hBX_ = ibooker.
book1D(
"events per BX",
"ctpps_pixel;Event.BX", 4002, -1.5, 4000. + 0.5);
128 stnd = sd +
"/station " + stnd;
137 rpd = stnd +
"/" + rpd;
145 rpTitle +
";Event.BX;Plane",
164 auto const pixDigi =
event.getHandle(
tokenDigi_);
166 if (!pixDigi.isValid())
184 auto pix_d = pixDigi->find(planeId.
rawId());
185 if (pix_d != pixDigi->end()) {
186 int n_digis = pix_d->size();
201 desc.addUntracked<
unsigned int>(
"RPStatusWord", 0x8008);
202 descriptions.
add(
"ctppsRandomDQMSource",
desc);
int rpStatus_[kStationIDMAX_][kRPotsIDMAX_]
static constexpr int kNStationMAX_
static constexpr int kFirstRPn_
static constexpr int kLastRPn_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
int RPindexValid_[kRPotsTotalNumber_]
virtual void setCurrentFolder(std::string const &fullpath)
static constexpr int kNplaneMAX_
static constexpr int kRPotsIDMAX_
CTPPSRandomDQMSource(const edm::ParameterSet &ps)
edm::EDGetTokenT< edm::DetSetVector< CTPPSPixelDigi > > const tokenDigi_
static constexpr int kStationIDMAX_
static constexpr int kNRPotsMAX_
int getRPindex(int arm, int station, int rp) const
static constexpr int kNArms_
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override
~CTPPSRandomDQMSource() override=default
#define DEFINE_FWK_MODULE(type)
MonitorElement * h2HitsVsBXRandoms_[kRPotsTotalNumber_]
constexpr uint32_t rawId() const
get the raw id
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Base class for CTPPS detector IDs.
unsigned int rpStatusWord_
int stationStatus_[kStationIDMAX_]
const std::string folderName_
static constexpr int kRPotsTotalNumber_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)