Skip to content

Commit 2986261

Browse files
authored
[Common] Minor safety changes
1 parent c3600a5 commit 2986261

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

PWGLF/TableProducer/Strangeness/strangenesstofpid.cxx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// or submit itself to any jurisdiction.
1111
//
1212
// *+-+*+-+*+-+*+-+*+-+*+-+*
13-
// Lambdakzero PID
13+
// Strangeness TOF PID
1414
// *+-+*+-+*+-+*+-+*+-+*+-+*
1515
//
1616
/// \author Nicolò Jacazio
@@ -162,23 +162,23 @@ struct strangenesstofpid {
162162

163163
// for n-sigma calibration
164164
bool nSigmaCalibLoaded;
165-
TList* nSigmaCalibObjects;
166-
TH1 *hMeanPosLaPi, *hSigmaPosLaPi;
167-
TH1 *hMeanPosLaPr, *hSigmaPosLaPr;
168-
TH1 *hMeanNegLaPi, *hSigmaNegLaPi;
169-
TH1 *hMeanNegLaPr, *hSigmaNegLaPr;
170-
TH1 *hMeanPosK0Pi, *hSigmaPosK0Pi;
171-
TH1 *hMeanNegK0Pi, *hSigmaNegK0Pi;
172-
TH1 *hMeanPosXiPi, *hSigmaPosXiPi;
173-
TH1 *hMeanPosXiPr, *hSigmaPosXiPr;
174-
TH1 *hMeanNegXiPi, *hSigmaNegXiPi;
175-
TH1 *hMeanNegXiPr, *hSigmaNegXiPr;
176-
TH1 *hMeanBachXiPi, *hSigmaBachXiPi;
177-
TH1 *hMeanPosOmPi, *hSigmaPosOmPi;
178-
TH1 *hMeanPosOmPr, *hSigmaPosOmPr;
179-
TH1 *hMeanNegOmPi, *hSigmaNegOmPi;
180-
TH1 *hMeanNegOmPr, *hSigmaNegOmPr;
181-
TH1 *hMeanBachOmKa, *hSigmaBachOmKa;
165+
TList* nSigmaCalibObjects = nullptr;
166+
TH1 *hMeanPosLaPi = nullptr, *hSigmaPosLaPi = nullptr;
167+
TH1 *hMeanPosLaPr = nullptr, *hSigmaPosLaPr = nullptr;
168+
TH1 *hMeanNegLaPi = nullptr, *hSigmaNegLaPi = nullptr;
169+
TH1 *hMeanNegLaPr = nullptr, *hSigmaNegLaPr = nullptr;
170+
TH1 *hMeanPosK0Pi = nullptr, *hSigmaPosK0Pi = nullptr;
171+
TH1 *hMeanNegK0Pi = nullptr, *hSigmaNegK0Pi = nullptr;
172+
TH1 *hMeanPosXiPi = nullptr, *hSigmaPosXiPi = nullptr;
173+
TH1 *hMeanPosXiPr = nullptr, *hSigmaPosXiPr = nullptr;
174+
TH1 *hMeanNegXiPi = nullptr, *hSigmaNegXiPi = nullptr;
175+
TH1 *hMeanNegXiPr = nullptr, *hSigmaNegXiPr = nullptr;
176+
TH1 *hMeanBachXiPi = nullptr, *hSigmaBachXiPi = nullptr;
177+
TH1 *hMeanPosOmPi = nullptr, *hSigmaPosOmPi = nullptr;
178+
TH1 *hMeanPosOmPr = nullptr, *hSigmaPosOmPr = nullptr;
179+
TH1 *hMeanNegOmPi = nullptr, *hSigmaNegOmPi = nullptr;
180+
TH1 *hMeanNegOmPr = nullptr, *hSigmaNegOmPr = nullptr;
181+
TH1 *hMeanBachOmKa = nullptr, *hSigmaBachOmKa = nullptr;
182182

183183
int mRunNumber;
184184
float d_bz;
@@ -191,7 +191,7 @@ struct strangenesstofpid {
191191
kNEnums };
192192

193193
/// function to calculate track length of this track up to a certain segment of a detector
194-
/// to be used internally in another funcrtion that calculates length until it finds the proper one
194+
/// to be used internally in another function that calculates length until it finds the proper one
195195
/// warning: this could be optimised further for speed
196196
/// \param track the input track
197197
/// \param x1 x of the first point of the detector segment

0 commit comments

Comments
 (0)