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];
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) {
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;
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
MonitorElement * bookFloat(TString const &name, FUNC onbooking=NOOP())
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_
T getUntrackedParameter(std::string const &, T const &) const
std::string globalFolder_
void clientOperation(DQMStore::IGetter &igetter)
virtual int getNbinsY() const
get # of bins in Y-axis
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.
virtual MonitorElement * get(std::string const &fullpath) const
std::pair< int, int > FEDRange_
std::string prefixFolder_
virtual int getNbinsX() const
get # of bins in X-axis
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
virtual double getBinContent(int binx) const
get content of bin (1-D)