@@ -137,7 +137,8 @@ struct tofSpectra { // o2-linter: disable=name/struct
137137 Configurable<float > minTPCNClsFound{" minTPCNClsFound" , 100 .f , " Additional cut on the minimum value of the number of found clusters in the TPC" };
138138 Configurable<bool > makeTHnSparseChoice{" makeTHnSparseChoice" , false , " choose if produce thnsparse" }; // RD
139139 Configurable<bool > enableTPCTOFvsEtaHistograms{" enableTPCTOFvsEtaHistograms" , false , " choose if produce TPC tof vs Eta" };
140- Configurable<bool > includeCentralityMC{" includeCentralityMC" , true , " choose if include Centrality to MC" };
140+ Configurable<bool > includeCentralityMC{" includeCentralityMC" , false , " choose if include Centrality to MC" };
141+ Configurable<bool > isImpactParam{" isImpactParam" , false , " choose if include impactparam to MC" };
141142 Configurable<bool > enableTPCTOFVsMult{" enableTPCTOFVsMult" , false , " Produce TPC-TOF plots vs multiplicity" };
142143 Configurable<bool > includeCentralityToTracks{" includeCentralityToTracks" , false , " choose if include Centrality to tracks" };
143144
@@ -1679,7 +1680,7 @@ struct tofSpectra { // o2-linter: disable=name/struct
16791680 float multiplicity = getMultiplicityMC (mcCollision);
16801681 int occupancy = collision.trackOccupancyInTimeRange ();
16811682 // ************************************RD**************************************************
1682- if (includeCentralityMC ) {
1683+ if (isImpactParam ) {
16831684 multiplicity = mcCollision.impactParameter ();
16841685 }
16851686 // ************************************RD**************************************************
@@ -1843,7 +1844,9 @@ struct tofSpectra { // o2-linter: disable=name/struct
18431844 if (!mcParticle.isPhysicalPrimary ()) {
18441845 if (mcParticle.getProcess () == 4 ) {
18451846 if (includeCentralityMC) {
1846- histos.fill (HIST (hpt_num_str[i]), track.pt (), multiplicity, track.dcaXY ());
1847+ if (includeCentralityMC) {
1848+ histos.fill (HIST (hpt_num_str[i]), track.pt (), multiplicity, track.dcaXY ());
1849+ }
18471850 } else {
18481851 histos.fill (HIST (hpt_num_str[i]), track.pt (), multiplicity);
18491852 }
@@ -2107,7 +2110,7 @@ struct tofSpectra { // o2-linter: disable=name/struct
21072110 const auto & particlesInCollision = mcParticles.sliceByCached (aod::mcparticle::mcCollisionId, mcCollision.globalIndex (), cache);
21082111 float multiplicity = getMultiplicity (collision);
21092112 // ************************************RD**************************************************
2110- if (includeCentralityMC ) {
2113+ if (isImpactParam ) {
21112114 multiplicity = mcCollision.impactParameter ();
21122115 }
21132116 // ************************************RD**************************************************
0 commit comments