Skip to content

Commit 5af4de4

Browse files
committed
added setMCDefaultParameters() for mc
1 parent f9651ed commit 5af4de4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

PWGLF/Tasks/Nuspex/antinucleiInJets.cxx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@ struct AntinucleiInJets {
11851185

11861186
// Initialize ITS PID Response object
11871187
o2::aod::ITSResponse itsResponse;
1188+
itsResponse.setMCDefaultParameters();
11881189

11891190
// Loop over all simulated collision events
11901191
for (const auto& collision : collisions) {
@@ -1497,6 +1498,7 @@ struct AntinucleiInJets {
14971498
{
14981499
// Initialize ITS PID Response object
14991500
o2::aod::ITSResponse itsResponse;
1501+
itsResponse.setMCDefaultParameters();
15001502

15011503
// Loop over all reconstructed collisions
15021504
for (const auto& collision : collisions) {
@@ -1758,9 +1760,6 @@ struct AntinucleiInJets {
17581760
// Process real data with systematic variations of analysis parameters
17591761
void processSystData(SelectedCollisions::iterator const& collision, AntiNucleiTracks const& tracks)
17601762
{
1761-
// Initialize ITS PID Response object
1762-
o2::aod::ITSResponse itsResponse;
1763-
17641763
// Event counter: before event selection
17651764
registryData.fill(HIST("number_of_events_data_syst"), 0.5);
17661765

@@ -1801,6 +1800,9 @@ struct AntinucleiInJets {
18011800
return;
18021801
registryData.fill(HIST("number_of_events_data_syst"), 7.5);
18031802

1803+
// Initialize ITS PID Response object
1804+
o2::aod::ITSResponse itsResponse;
1805+
18041806
// Cut settings
18051807
static std::vector<double> maxDcaxySyst = {
18061808
0.071, 0.060, 0.066, 0.031, 0.052, 0.078, 0.045, 0.064, 0.036, 0.074,
@@ -1907,6 +1909,7 @@ struct AntinucleiInJets {
19071909
{
19081910
// Initialize ITS PID Response object
19091911
o2::aod::ITSResponse itsResponse;
1912+
itsResponse.setMCDefaultParameters();
19101913

19111914
// Cut settings
19121915
static std::vector<double> maxDcaxySyst = {
@@ -2146,6 +2149,9 @@ struct AntinucleiInJets {
21462149
return;
21472150
registryCorr.fill(HIST("eventCounter"), 7.5);
21482151

2152+
// Initialize ITS PID Response object
2153+
o2::aod::ITSResponse itsResponse;
2154+
21492155
// Multiplicity percentile
21502156
const float multiplicity = collision.centFT0M();
21512157

0 commit comments

Comments
 (0)