Skip to content

Commit 4c6fee6

Browse files
author
Prottay Das
committed
added histogram to monitor run dependent variations of vxy and commented out few lines of code and a histogram
1 parent d1e8667 commit 4c6fee6

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

PWGLF/TableProducer/Common/spvector.cxx

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,14 @@ struct spvector {
139139
Configurable<bool> followpub{"followpub", true, "flag to use alphaZDC"};
140140
Configurable<bool> useGainCallib{"useGainCallib", false, "use gain calibration"};
141141
Configurable<bool> useRecentereSp{"useRecentereSp", false, "use Recentering with Sparse or THn"};
142+
Configurable<bool> useRecentereVxy{"useRecentereVxy", false, "use Recentering with Sparse or THn for Vxy"};
142143
Configurable<bool> useRecenterefineSp{"useRecenterefineSp", false, "use fine Recentering with Sparse or THn"};
143144
Configurable<bool> useRecenteresqSp{"useRecenteresqSp", false, "use Recenteringsq with Sparse or THn"};
144145
Configurable<bool> recwitherror{"recwitherror", false, "use Recentering with error"};
145146
Configurable<bool> recfinewitherror{"recfinewitherror", false, "use Recentering fine with error"};
146147
Configurable<std::string> ConfGainPath{"ConfGainPath", "Users/p/prottay/My/Object/NewPbPbpass4_10092024/gaincallib", "Path to gain calibration"};
147148
Configurable<std::string> ConfRecentereSp{"ConfRecentereSp", "Users/p/prottay/My/Object/Testingwithsparse/NewPbPbpass4_17092024/recenter", "Sparse or THn Path for recentere"};
149+
Configurable<std::string> ConfRecentereVxy{"ConfRecentereVxy", "Users/p/prottay/My/Object/Testingwithsparse/NewPbPbpass4_17092024/recenter", "Sparse or THn Path for recentereVxy"};
148150
Configurable<std::string> ConfRecenterecentSp{"ConfRecenterecentSp", "Users/p/prottay/My/Object/Testingwithsparse/NewPbPbpass4_17092024/recenter", "Sparse or THn Path for cent recentere"};
149151
Configurable<std::string> ConfRecenterevxSp{"ConfRecenterevxSp", "Users/p/prottay/My/Object/Testingwithsparse/NewPbPbpass4_17092024/recenter", "Sparse or THn Path for vx recentere"};
150152
Configurable<std::string> ConfRecenterevySp{"ConfRecenterevySp", "Users/p/prottay/My/Object/Testingwithsparse/NewPbPbpass4_17092024/recenter", "Sparse or THn Path for vy recentere"};
@@ -187,6 +189,7 @@ struct spvector {
187189
// AxisSpec amplitudeZDC = {configAxisZDCgain, "ZDC amplitude"};
188190
// AxisSpec amplitudeZDC = {ZDCgainNbins, lbinZDCgain, hbinZDCgain, "ZDC amplitude"};
189191
AxisSpec channelZDCAxis = {8, 0.0, 8.0, "ZDC tower"};
192+
AxisSpec binAxis = {2, 0.0, 2.0, "Vx and vy bin positions"};
190193
AxisSpec qxZDCAxis = {QxyNbins, lbinQxy, hbinQxy, "Qx"};
191194
AxisSpec phiAxis = {PhiNbins, -6.28, 6.28, "phi"};
192195
AxisSpec vzAxis = {VzNbins, lbinVz, hbinVz, "vz"};
@@ -248,7 +251,8 @@ struct spvector {
248251
// histos.add("ZDCAmpCommon", "ZDCAmpCommon", kTProfile3D, {{2,0.0,2.0}, vzfineAxis, centfineAxis});
249252

250253
if (QA) {
251-
histos.add("Vz", "Vz", kTH1F, {vzfineAxis});
254+
histos.add("hVz", "hVz", kTH1F, {vzfineAxis});
255+
histos.add("hpVxVy", "hpVxVy", kTProfile, {binAxis});
252256
histos.add("hpCosPsiAPsiC", "hpCosPsiAPsiC", kTProfile, {centfineAxis});
253257
histos.add("hpSinPsiAPsiC", "hpSinPsiAPsiC", kTProfile, {centfineAxis});
254258
}
@@ -275,8 +279,8 @@ struct spvector {
275279

276280
int currentRunNumber = -999;
277281
int lastRunNumber = -999;
278-
// TH3D* gainprofile;
279282
TH2D* gainprofile;
283+
TProfile* hrecentereVxy;
280284
THnF* hrecentereSp;
281285
TH2F* hrecenterecentSp;
282286
TH2F* hrecenterevxSp;
@@ -439,7 +443,16 @@ struct spvector {
439443
}
440444

441445
histos.fill(HIST("hCentrality"), centrality);
442-
histos.fill(HIST("Vz"), vz);
446+
histos.fill(HIST("hVz"), vz);
447+
448+
histos.fill(HIST("hpVxVy"), 0.5, vx);
449+
histos.fill(HIST("hpVxVy"), 1.5, vy);
450+
451+
if (useRecentereVxy && (currentRunNumber != lastRunNumber)) {
452+
hrecentereVxy = ccdb->getForTimeStamp<TProfile>(ConfRecentereVxy.value, bc.timestamp());
453+
vx = vx - hrecentereVxy->GetBinContent(1);
454+
vy = vy - hrecentereVxy->GetBinContent(2);
455+
}
443456

444457
if (useRecentereSp && (currentRunNumber != lastRunNumber)) {
445458
hrecentereSp = ccdb->getForTimeStamp<THnF>(ConfRecentereSp.value, bc.timestamp());
@@ -521,7 +534,7 @@ struct spvector {
521534
}
522535
}
523536
}
524-
537+
/*
525538
if (useRecenterefineSp && hrecenterecentSp) {
526539
527540
double meanxAcent = hrecenterecentSp->GetBinContent(hrecenterecentSp->FindBin(centrality, 0.5));
@@ -653,7 +666,7 @@ struct spvector {
653666
qyZDCC = qyZDCC / meanyCvzerror;
654667
}
655668
}
656-
669+
*/
657670
// LOG(info) << "**********qxa values in spvector************" << qxZDCA<<" "<<centrality<<" "<<vx<<" "<<vy<<" "<<vz;
658671

659672
psiZDCC = 1.0 * TMath::ATan2(qyZDCC, qxZDCC);

PWGLF/Tasks/Strangeness/lambdapolsp.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,7 @@ struct lambdapolsp {
395395
return;
396396
}
397397
auto centrality = collision.centFT0C();
398-
399-
histos.fill(HIST("hCentrality0"), centrality);
398+
// histos.fill(HIST("hCentrality0"), centrality);
400399
if (!collision.triggereventsp()) {
401400
return;
402401
}

0 commit comments

Comments
 (0)