@@ -93,7 +93,6 @@ struct TreeWriterTpcV0 {
9393 Configurable<double > dwnSmplFactorPr{" dwnSmplFactorPr" , 1 ., " downsampling factor for protons, default fraction to keep is 1." };
9494 Configurable<double > dwnSmplFactorEl{" dwnSmplFactorEl" , 1 ., " downsampling factor for electrons, default fraction to keep is 1." };
9595 Configurable<double > dwnSmplFactorKa{" dwnSmplFactorKa" , 1 ., " downsampling factor for kaons, default fraction to keep is 1." };
96- Configurable<float > sqrtSNN{" sqrtSNN" , 5360 ., " sqrt(s_NN), used for downsampling with the Tsallis distribution" };
9796 Configurable<float > downsamplingTsalisPions{" downsamplingTsalisPions" , -1 ., " Downsampling factor to reduce the number of pions" };
9897 Configurable<float > downsamplingTsalisProtons{" downsamplingTsalisProtons" , -1 ., " Downsampling factor to reduce the number of protons" };
9998 Configurable<float > downsamplingTsalisElectrons{" downsamplingTsalisElectrons" , -1 ., " Downsampling factor to reduce the number of electrons" };
@@ -424,6 +423,7 @@ struct TreeWriterTpcV0 {
424423 aod::pidits::ITSNSigmaKa, aod::pidits::ITSNSigmaPr>(myTracks);
425424
426425 std::string irSource{};
426+ float sqrtSNN{};
427427 bool isFirstCollision{true };
428428 for (const auto & collision : collisions) {
429429 if (!isEventSelected (collision, applyEvSel)) {
@@ -438,7 +438,7 @@ struct TreeWriterTpcV0 {
438438 const auto cascs = myCascs.sliceBy (perCollisionCascs, static_cast <int >(collision.globalIndex ()));
439439 const auto bc = collision.bc_as <BCType>();
440440 if (isFirstCollision) {
441- irSource = evaluateIrSource (ccdb, ccdbPathGrpLhcIf, bc.timestamp ());
441+ evaluateIrSourceAndSqrtSnn (ccdb, ccdbPathGrpLhcIf, bc.timestamp (), irSource, sqrtSNN );
442442 }
443443 isFirstCollision = false ;
444444 const int runnumber = bc.runNumber ();
@@ -632,7 +632,6 @@ struct TreeWriterTpcTof {
632632 Configurable<float > nSigmaTofTpctofPi{" nSigmaTofTpctofPi" , 4 ., " number of sigma for TOF cut for TPC and TOF combined pion" };
633633 Configurable<double > dwnSmplFactorPi{" dwnSmplFactorPi" , 1 ., " downsampling factor for pions, default fraction to keep is 1." };
634634 // / pT dependent downsampling
635- Configurable<float > sqrtSNN{" sqrtSNN" , 5360 ., " sqrt(s_NN), used for downsampling with the Tsallis distribution" };
636635 Configurable<float > downsamplingTsalisTritons{" downsamplingTsalisTritons" , -1 ., " Downsampling factor to reduce the number of tritons" };
637636 Configurable<float > downsamplingTsalisDeuterons{" downsamplingTsalisDeuterons" , -1 ., " Downsampling factor to reduce the number of deuterons" };
638637 Configurable<float > downsamplingTsalisProtons{" downsamplingTsalisProtons" , -1 ., " Downsampling factor to reduce the number of protons" };
@@ -812,6 +811,7 @@ struct TreeWriterTpcTof {
812811 }
813812 }
814813 std::string irSource{};
814+ float sqrtSNN{};
815815 bool isFirstCollision{true };
816816 for (const auto & collision : collisions) {
817817 const auto tracks = myTracks.sliceBy (perCollisionTracksType, collision.globalIndex ());
@@ -833,7 +833,7 @@ struct TreeWriterTpcTof {
833833
834834 const auto bc = collision.bc_as <BCType>();
835835 if (isFirstCollision) {
836- irSource = evaluateIrSource (ccdb, ccdbPathGrpLhcIf, bc.timestamp ());
836+ evaluateIrSourceAndSqrtSnn (ccdb, ccdbPathGrpLhcIf, bc.timestamp (), irSource, sqrtSNN );
837837 }
838838 isFirstCollision = false ;
839839 const int runnumber = bc.runNumber ();
0 commit comments