20 globalFolder_ = subsystemFolder +
"/" + recHitTypeFolder +
"/" + summaryFolder;
34 runInfoToken_ = esConsumes<edm::Transition::EndLuminosityBlock>();
63 const std::vector<int> FedsInIds = sumFED.m_fed_in;
66 while (!
isIn_ && f < FedsInIds.size()) {
67 int fedID = FedsInIds[
f];
82 meSummary->
Fill(defaultValue);
93 std::vector<std::string> segmentNames;
94 for (
int i = -2;
i <= 2;
i++) {
96 segmentNames.push_back(segName);
103 segmentNames.push_back(segName);
106 for (
const auto& segmentName : segmentNames) {
108 me->
Fill(defaultValue);
142 float barrelFactor = 0;
144 for (
int w = -2;
w < 3;
w++) {
149 float wheelFactor = 0;
152 float sectorFactor = 0;
153 int rollInSector = 0;
156 if ((
s != 4 &&
r > 17) || ((
s == 9 ||
s == 10) &&
r > 15))
167 if (rollInSector != 0)
168 sectorFactor = sectorFactor / rollInSector;
172 wheelFactor += sectorFactor;
176 wheelFactor = wheelFactor / myMe->
getNbinsX();
181 globalMe->
Fill(wheelFactor);
183 barrelFactor += wheelFactor;
187 barrelFactor = barrelFactor / 5;
189 float endcapFactor = 0;
201 float diskFactor = 0;
203 float sectorFactor[6] = {0, 0, 0, 0, 0, 0};
205 for (
int i = 0;
i < 6;
i++) {
206 int firstSeg = (
i * 6) + 1;
207 int lastSeg = firstSeg + 6;
208 int rollInSector = 0;
209 for (
int seg = firstSeg; seg < lastSeg; seg++) {
213 sectorFactor[
i] += 0.8;
215 sectorFactor[
i] += 0;
217 sectorFactor[
i] += 1;
220 sectorFactor[
i] = sectorFactor[
i] / rollInSector;
223 for (
int sec = 0; sec < 6; sec++) {
224 diskFactor += sectorFactor[sec];
233 diskFactor = diskFactor / 6;
238 globalMe->
Fill(diskFactor);
240 endcapFactor += diskFactor;
248 float rpcFactor = barrelFactor;
250 rpcFactor = (barrelFactor + endcapFactor) / 2;
255 globalMe->
Fill(rpcFactor);
std::string eventInfoPath_
Log< level::Info, true > LogVerbatim
T getUntrackedParameter(std::string const &, T const &) const
std::optional< T > tryToGet() const
MonitorElement * bookFloat(TString const &name, FUNC onbooking=NOOP())
virtual int getNbinsY() const
get # of bins in Y-axis
virtual void setCurrentFolder(std::string const &fullpath)
~RPCEventSummary() override
Destructor.
static void setBinsEndcap(MonitorElement *me, const double value)
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
bool enableReportSummary_
bool doEndcapCertification_
edm::ESGetToken< RunInfo, RunInfoRcd > runInfoToken_
std::string globalFolder_
virtual int getNbinsX() const
get # of bins in X-axis
virtual MonitorElement * get(std::string const &fullpath) const
virtual double getBinContent(int binx) const
get content of bin (1-D)
void clientOperation(DQMStore::IGetter &igetter)
static MonitorElement * book(IBooker &booker, const std::string &name, const std::string &title)
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
RPCEventSummary(const edm::ParameterSet &ps)
Constructor.
std::pair< int, int > FEDRange_
std::string prefixFolder_
static void setBinsBarrel(MonitorElement *me, const double value)
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag