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);
96 std::vector<std::string> segmentNames;
97 for (
int i = -2;
i <= 2;
i++) {
99 segmentNames.push_back(segName);
106 segmentNames.push_back(segName);
109 for (
const auto& segmentName : segmentNames) {
111 me3->
Fill(defaultValue);
146 float barrelFactor = 0;
148 for (
int w = -2;
w < 3;
w++) {
154 if (myMe1 && myMe2) {
155 float wheelFactor = 0;
158 float sectorFactor = 0;
159 float sectorFactor2 = 0;
160 int rollInSector = 0;
163 if ((
s != 4 &&
r > 17) || ((
s == 9 ||
s == 11) &&
r > 15))
170 if (rollInSector != 0) {
171 sectorFactor = sectorFactor / rollInSector;
172 sectorFactor2 = sectorFactor2 / rollInSector;
179 wheelFactor += sectorFactor;
183 wheelFactor = wheelFactor / myMe1->
getNbinsX();
188 globalMe->
Fill(wheelFactor);
190 barrelFactor += wheelFactor;
194 barrelFactor = barrelFactor / 5;
196 float endcapFactor = 0;
209 if (myMe1 && myMe2) {
210 float diskFactor = 0;
212 float sectorFactor[6] = {0, 0, 0, 0, 0, 0};
213 float sectorFactor2[6] = {0, 0, 0, 0, 0, 0};
215 for (
int i = 0;
i < 6;
i++) {
216 int firstSeg = (
i * 6) + 1;
217 int lastSeg = firstSeg + 6;
218 int rollInSector = 0;
219 for (
int seg = firstSeg; seg < lastSeg; seg++) {
226 sectorFactor[
i] = sectorFactor[
i] / rollInSector;
227 sectorFactor2[
i] = sectorFactor2[
i] / rollInSector;
230 for (
int sec = 0; sec < 6; sec++) {
231 diskFactor += sectorFactor[sec];
246 diskFactor = diskFactor / 6;
251 globalMe->
Fill(diskFactor);
253 endcapFactor += diskFactor;
261 float rpcFactor = barrelFactor;
263 rpcFactor = (barrelFactor + endcapFactor) / 2;
268 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