Skip to content

Commit 6555de4

Browse files
authored
Merge pull request #47909 from CTPPS/ab_15_1_0_pre2_2025_dqm
PPS DQM update for the beginning of 2025 data-taking
2 parents df74c6d + 2bb8d66 commit 6555de4

File tree

2 files changed

+28
-23
lines changed

2 files changed

+28
-23
lines changed

DQM/CTPPS/plugins/CTPPSCommonDQMSource.cc

+2-10
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ class CTPPSCommonDQMSource : public DQMOneEDAnalyzer<edm::LuminosityBlockCache<s
4343

4444
private:
4545
const unsigned int verbosity;
46-
constexpr static int MAX_LUMIS = 6000;
4746
constexpr static int MAX_VBINS = 20;
4847

4948
const edm::EDGetTokenT<CTPPSRecord> ctppsRecordToken;
@@ -105,7 +104,6 @@ class CTPPSCommonDQMSource : public DQMOneEDAnalyzer<edm::LuminosityBlockCache<s
105104
using namespace std;
106105
using namespace edm;
107106

108-
const int CTPPSCommonDQMSource::MAX_LUMIS;
109107
const int CTPPSCommonDQMSource::MAX_VBINS;
110108

111109
//----------------------------------------------------------------------------------------------------
@@ -123,14 +121,8 @@ void CTPPSCommonDQMSource::GlobalPlots::Init(DQMStore::IBooker &ibooker) {
123121
2 -> warning
124122
3 -> ok
125123
*/
126-
RPState = ibooker.book2D("rpstate per LS",
127-
"RP State per Lumisection;Luminosity Section;",
128-
MAX_LUMIS,
129-
0,
130-
MAX_LUMIS,
131-
MAX_VBINS,
132-
0.,
133-
MAX_VBINS);
124+
RPState = ibooker.book2D(
125+
"rpstate per LS", "RP State per Lumisection;Luminosity Section;", 1000, 0, 1000, MAX_VBINS, 0., MAX_VBINS);
134126
{
135127
TH2F *hist = RPState->getTH2F();
136128
hist->SetCanExtend(TH1::kAllAxes);

DQM/CTPPS/plugins/CTPPSPixelDQMSource.cc

+26-13
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,19 @@ class CTPPSPixelDQMSource : public DQMEDAnalyzer {
6565
static constexpr int ADCMax = 256;
6666
static constexpr int StationIDMAX = 4; // possible range of ID
6767
static constexpr int RPotsIDMAX = 8; // possible range of ID
68-
static constexpr int NLocalTracksMAX = 20;
68+
static constexpr int NLocalTracksMAX = 10;
6969
static constexpr int hitMultMAX = 50; // tuned
7070
static constexpr int ClusMultMAX = 10; // tuned
7171
static constexpr int ClusterSizeMax = 9;
7272
static constexpr int errCodeSize = 15;
7373
static constexpr int minFedNumber = 1462;
7474
static constexpr int numberOfFeds = 2;
75-
static constexpr int mapXbins = 200;
76-
static constexpr int mapYbins = 240;
77-
static constexpr float mapYmin = -16.;
78-
static constexpr float mapYmax = 8.;
79-
const float mapXmin = 0. * TMath::Cos(18.4 / 180. * TMath::Pi());
80-
const float mapXmax = 30. * TMath::Cos(18.4 / 180. * TMath::Pi());
75+
static constexpr float x0Minimum = -5.;
76+
static constexpr float y0Minimum = -10.;
77+
static constexpr float x0Maximum = 25.;
78+
static constexpr float y0Maximum = 22.;
79+
static constexpr float xBins_per_mm = 3; // number of x bins per mm
80+
static constexpr float yBins_per_mm = 3; // number of y bins per mm
8181

8282
CTPPSPixelIndices thePixIndices;
8383

@@ -471,12 +471,16 @@ void CTPPSPixelDQMSource::bookHistograms(DQMStore::IBooker &ibooker, edm::Run co
471471

472472
ibooker.setCurrentFolder(rpd);
473473

474-
const float x0Maximum = 70.;
475-
const float y0Maximum = 15.;
476474
string st = "track intercept point";
477475
string st2 = ": " + stnTitle;
478-
h2trackXY0[indexP] = ibooker.book2D(
479-
st, st + st2 + ";x0;y0", int(x0Maximum) * 2, 0., x0Maximum, int(y0Maximum) * 4, -y0Maximum, y0Maximum);
476+
h2trackXY0[indexP] = ibooker.book2D(st,
477+
st + st2 + ";x0;y0",
478+
int(x0Maximum - x0Minimum) * xBins_per_mm,
479+
x0Minimum,
480+
x0Maximum,
481+
int(y0Maximum - y0Minimum) * yBins_per_mm,
482+
y0Minimum,
483+
y0Maximum);
480484
h2trackXY0[indexP]->getTH2F()->SetOption("colz");
481485
st = "Error Code";
482486
h2ErrorCodeRP[indexP] = ibooker.book2D(st,
@@ -643,8 +647,17 @@ void CTPPSPixelDQMSource::bookHistograms(DQMStore::IBooker &ibooker, edm::Run co
643647

644648
if (offlinePlots) {
645649
st = "plane efficiency";
646-
h2Efficiency[indexP][p] = ibooker.bookProfile2D(
647-
st, st1 + ";x0;y0", mapXbins, mapXmin, mapXmax, mapYbins, mapYmin, mapYmax, 0, 1, "");
650+
h2Efficiency[indexP][p] = ibooker.bookProfile2D(st,
651+
st1 + ";x0;y0",
652+
int(x0Maximum - x0Minimum) * xBins_per_mm,
653+
x0Minimum,
654+
x0Maximum,
655+
int(y0Maximum - y0Minimum) * yBins_per_mm,
656+
y0Minimum,
657+
y0Maximum,
658+
0,
659+
1,
660+
"");
648661
h2Efficiency[indexP][p]->getTProfile2D()->SetOption("colz");
649662
}
650663
} // end of for(int p=0; p<NplaneMAX;..

0 commit comments

Comments
 (0)