Skip to content

Commit bc3852f

Browse files
committed
clang
1 parent c49c46e commit bc3852f

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

Detectors/CTP/macro/PlotPbLumi.C

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void PlotPbLumi(int runNumber = 567905, bool sum = 0, bool qc = 0, Double_t t0 =
4848
std::cout << "Timestamp:" << timeStamp << std::endl;
4949
// Filling
5050
auto lhcifdata = ccdbMgr.getForRun<o2::parameters::GRPLHCIFData>("GLO/Config/GRPLHCIF", runNumber);
51-
//auto lhcifdata = ccdbMgr.getSpecific<o2::parameters::GRPLHCIFData>("GLO/Config/GRPLHCIF", timeStamp, metadata);
51+
// auto lhcifdata = ccdbMgr.getSpecific<o2::parameters::GRPLHCIFData>("GLO/Config/GRPLHCIF", timeStamp, metadata);
5252
if (!lhcifdata) {
5353
throw std::runtime_error("No GRPLHCIFData for run " + std::to_string(runNumber));
5454
}
@@ -61,7 +61,7 @@ void PlotPbLumi(int runNumber = 567905, bool sum = 0, bool qc = 0, Double_t t0 =
6161
std::map<string, string> metadata;
6262
metadata["runNumber"] = srun;
6363
CTPRunScalers* scl = nullptr;
64-
if(qc) {
64+
if (qc) {
6565
ccdbMgr.setURL("http://ali-qcdb-gpn.cern.ch:8083");
6666
scl = ccdbMgr.getSpecific<CTPRunScalers>(mCCDBPathCTPScalersQC, timeStamp, metadata);
6767
} else {
@@ -156,17 +156,17 @@ void PlotPbLumi(int runNumber = 567905, bool sum = 0, bool qc = 0, Double_t t0 =
156156
}
157157
n = ilast - i0;
158158
std::cout << "i0:" << i0 << " ilast:" << ilast << std::endl;
159-
//Double_t x[n], znc[n], zncpp[n];
159+
// Double_t x[n], znc[n], zncpp[n];
160160
std::vector<Double_t> xvec(n), zncvec(n), zncppvec(n), zncclassvec(n);
161-
Double_t *x = xvec.data();
162-
Double_t *znc = zncvec.data();
163-
Double_t *zncpp = zncppvec.data();
164-
Double_t *zncclass = zncclassvec.data();
165-
//Double_t tcetsctoznc[n], tcetoznc[n], vchtoznc[n];
161+
Double_t* x = xvec.data();
162+
Double_t* znc = zncvec.data();
163+
Double_t* zncpp = zncppvec.data();
164+
Double_t* zncclass = zncclassvec.data();
165+
// Double_t tcetsctoznc[n], tcetoznc[n], vchtoznc[n];
166166
std::vector<Double_t> tcetsctozncvec(n), tcetozncvec(n), vchtozncvec(n);
167-
Double_t *tcetsctoznc = tcetsctozncvec.data();
168-
Double_t *tcetoznc = tcetozncvec.data();
169-
Double_t *vchtoznc = vchtozncvec.data();
167+
Double_t* tcetsctoznc = tcetsctozncvec.data();
168+
Double_t* tcetoznc = tcetozncvec.data();
169+
Double_t* vchtoznc = vchtozncvec.data();
170170
for (int i = i0; i < ilast; i++) {
171171
int iv = i - i0;
172172
x[iv] = (double_t)(recs[i + 1].intRecord.orbit + recs[i].intRecord.orbit) / 2. - orbit0;
@@ -184,10 +184,10 @@ void PlotPbLumi(int runNumber = 567905, bool sum = 0, bool qc = 0, Double_t t0 =
184184
// znc class
185185
znci = recs[i + 1].scalers[zncclsi].l1Before - recs[i].scalers[zncclsi].l1Before;
186186
zncclass[iv] = znci / 28. / tt;
187-
//std::cout << znc[i]/zncclass[i] << std::endl;
187+
// std::cout << znc[i]/zncclass[i] << std::endl;
188188
//
189189
double_t had = 0;
190-
if(sum) {
190+
if (sum) {
191191
had += recs[i + 1].scalers[tce].lmBefore - recs[i].scalers[tce].lmBefore;
192192
}
193193
double_t mutce = -TMath::Log(1. - had / tt / nbc / frev);
@@ -203,13 +203,13 @@ void PlotPbLumi(int runNumber = 567905, bool sum = 0, bool qc = 0, Double_t t0 =
203203

204204
// rat = (double_t)(had)/double_t(recs[i+1].scalersInps[25] - recs[i].scalersInps[25])*28;
205205
vchtoznc[iv] = (double_t)(had) / zncpp[iv] / tt;
206-
//std::cout << "muzdc:" << mu << " mu tce:" << mutce << " muvch:" << muvch << std::endl;
206+
// std::cout << "muzdc:" << mu << " mu tce:" << mutce << " muvch:" << muvch << std::endl;
207207
}
208208
//
209209
gStyle->SetMarkerSize(0.5);
210210
TGraph* gr1 = new TGraph(n, x, znc);
211-
TGraph* gr11 = new TGraph(n, x, zncpp); // PileuP corrected
212-
TGraph* gr12 = new TGraph(n, x, zncclass); // NOT PileuP corrected
211+
TGraph* gr11 = new TGraph(n, x, zncpp); // PileuP corrected
212+
TGraph* gr12 = new TGraph(n, x, zncclass); // NOT PileuP corrected
213213
TGraph* gr2 = new TGraph(n, x, tcetsctoznc);
214214
TGraph* gr3 = new TGraph(n, x, tcetoznc);
215215
TGraph* gr4 = new TGraph(n, x, vchtoznc);
@@ -222,7 +222,7 @@ void PlotPbLumi(int runNumber = 567905, bool sum = 0, bool qc = 0, Double_t t0 =
222222
gr3->SetMarkerStyle(23);
223223
gr4->SetMarkerStyle(23);
224224
gr11->SetTitle("R=ZNC/28 rate [Hz] (red=PilUp Corrected); time[sec]; R");
225-
if(sum) {
225+
if (sum) {
226226
gr2->SetTitle("R=(TSC+TCE)*TVTX*B*28/ZNC; time[sec]; R");
227227
} else {
228228
gr2->SetTitle("R=(TSC)*TVTX*B*28/ZNC; time[sec]; R");

0 commit comments

Comments
 (0)