Skip to content

Commit edd9f71

Browse files
author
Prottay Das
committed
added 6th fine correction
1 parent f296de6 commit edd9f71

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

PWGLF/TableProducer/Common/spvector.cxx

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ struct spvector {
134134
Configurable<bool> coarse5{"coarse5", false, "RE5"};
135135
Configurable<bool> fine5{"fine5", false, "REfine5"};
136136
Configurable<bool> coarse6{"coarse6", false, "RE6"};
137+
Configurable<bool> fine6{"fine6", false, "REfine6"};
137138
Configurable<bool> useRecentereSp{"useRecentereSp", false, "use Recentering with Sparse or THn"};
138139
Configurable<bool> useRecenterefineSp{"useRecenterefineSp", false, "use fine Recentering with THn"};
139140
Configurable<std::string> ConfGainPath{"ConfGainPath", "Users/p/prottay/My/Object/NewPbPbpass4_10092024/gaincallib", "Path to gain calibration"};
@@ -164,6 +165,10 @@ struct spvector {
164165
Configurable<std::string> ConfRecenterevxSp5{"ConfRecenterevxSp5", "Users/p/prottay/My/Object/Testingwithsparse/NewPbPbpass4_17092024/recenter", "Sparse or THn Path for vx recentere5"};
165166
Configurable<std::string> ConfRecenterevySp5{"ConfRecenterevySp5", "Users/p/prottay/My/Object/Testingwithsparse/NewPbPbpass4_17092024/recenter", "Sparse or THn Path for vy recentere5"};
166167
Configurable<std::string> ConfRecenterevzSp5{"ConfRecenterevzSp5", "Users/p/prottay/My/Object/Testingwithsparse/NewPbPbpass4_17092024/recenter", "Sparse or THn Path for vz recentere5"};
168+
Configurable<std::string> ConfRecenterecentSp6{"ConfRecenterecentSp6", "Users/p/prottay/My/Object/Testingwithsparse/NewPbPbpass4_17092024/recenter", "Sparse or THn Path for cent recentere6"};
169+
Configurable<std::string> ConfRecenterevxSp6{"ConfRecenterevxSp6", "Users/p/prottay/My/Object/Testingwithsparse/NewPbPbpass4_17092024/recenter", "Sparse or THn Path for vx recentere6"};
170+
Configurable<std::string> ConfRecenterevySp6{"ConfRecenterevySp6", "Users/p/prottay/My/Object/Testingwithsparse/NewPbPbpass4_17092024/recenter", "Sparse or THn Path for vy recentere6"};
171+
Configurable<std::string> ConfRecenterevzSp6{"ConfRecenterevzSp6", "Users/p/prottay/My/Object/Testingwithsparse/NewPbPbpass4_17092024/recenter", "Sparse or THn Path for vz recentere6"};
167172
Configurable<std::string> ConfShiftC{"ConfShiftC", "Users/p/prottay/My/Object/Testinglocaltree/shiftcallib2", "Path to shift C"};
168173
Configurable<std::string> ConfShiftA{"ConfShiftA", "Users/p/prottay/My/Object/Testinglocaltree/shiftcallib2", "Path to shift A"};
169174

@@ -292,10 +297,10 @@ struct spvector {
292297
TH2F* hrecenterevySp;
293298
TH2F* hrecenterevzSp;*/
294299
std::array<THnF*, 6> hrecentereSpA; // Array of 6 histograms
295-
std::array<TH2F*, 5> hrecenterecentSpA; // Array of 5 histograms
296-
std::array<TH2F*, 5> hrecenterevxSpA; // Array of 5 histograms
297-
std::array<TH2F*, 5> hrecenterevySpA; // Array of 5 histograms
298-
std::array<TH2F*, 5> hrecenterevzSpA; // Array of 5 histograms
300+
std::array<TH2F*, 6> hrecenterecentSpA; // Array of 5 histograms
301+
std::array<TH2F*, 6> hrecenterevxSpA; // Array of 5 histograms
302+
std::array<TH2F*, 6> hrecenterevySpA; // Array of 5 histograms
303+
std::array<TH2F*, 6> hrecenterevzSpA; // Array of 5 histograms
299304
TProfile3D* shiftprofileA;
300305
TProfile3D* shiftprofileC;
301306

@@ -645,6 +650,16 @@ struct spvector {
645650
res = Correctcoarse(hrecentereSpA[5], centrality, vx, vy, vz, qxZDCA, qyZDCA, qxZDCC, qyZDCC);
646651
}
647652

653+
if (fine6) {
654+
if (useRecenterefineSp && (currentRunNumber != lastRunNumber)) {
655+
hrecenterecentSpA[5] = ccdb->getForTimeStamp<TH2F>(ConfRecenterecentSp6.value, bc.timestamp());
656+
hrecenterevxSpA[5] = ccdb->getForTimeStamp<TH2F>(ConfRecenterevxSp6.value, bc.timestamp());
657+
hrecenterevySpA[5] = ccdb->getForTimeStamp<TH2F>(ConfRecenterevySp6.value, bc.timestamp());
658+
hrecenterevzSpA[5] = ccdb->getForTimeStamp<TH2F>(ConfRecenterevzSp6.value, bc.timestamp());
659+
}
660+
resfine = Correctfine(hrecenterecentSpA[5], hrecenterevxSpA[5], hrecenterevySpA[5], hrecenterevzSpA[5], centrality, vx, vy, vz, qxZDCA, qyZDCA, qxZDCC, qyZDCC);
661+
}
662+
648663
if (res == 0 && resfine == 0 && check == 0) {
649664
LOG(info) << "Histograms are null";
650665
}

0 commit comments

Comments
 (0)