77 folderName_(ps.getUntrackedParameter<
std::
string>(
"folderName",
"PPSRANDOM/RandomPixel")),
78 rpStatusWord_(ps.getUntrackedParameter<unsigned
int>(
"RPStatusWord", 0x8008)) {
107 hBX_ = ibooker.
book1D(
"events per BX",
"ctpps_pixel;Event.BX", 4002, -1.5, 4000. + 0.5);
123 stnd = sd +
"/station " + stnd;
132 rpd = stnd +
"/" + rpd;
140 rpTitle +
";Event.BX;Plane",
159 auto const pixDigi =
event.getHandle(
tokenDigi_);
161 if (!pixDigi.isValid())
179 auto pix_d = pixDigi->find(planeId.
rawId());
180 if (pix_d != pixDigi->end()) {
181 int n_digis = pix_d->size();
196 desc.addUntracked<
unsigned int>(
"RPStatusWord", 0x8008);
197 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)