]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
o Initialise run number with -1 instead of 0 to allow for PID initialisation with...
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Apr 2013 13:15:36 +0000 (13:15 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Apr 2013 13:15:36 +0000 (13:15 +0000)
o fix warning in member initialisation order
Jens Wiechula <Jens.Wiechula@cern.ch>

STEER/STEERBase/AliPIDResponse.cxx

index df92c4fd6fcde1b049926347d830ff8d352b626c..f06aba1b6c1acb804370d5a1c105103ef81dd0e6 100644 (file)
@@ -60,6 +60,8 @@ fHMPIDResponse(),
 fEMCALResponse(),
 fRange(5.),
 fITSPIDmethod(kITSTruncMean),
 fEMCALResponse(),
 fRange(5.),
 fITSPIDmethod(kITSTruncMean),
+fTuneMConData(kFALSE),
+fTuneMConDataMask(kDetTOF|kDetTPC),
 fIsMC(isMC),
 fCachePID(kTRUE),
 fOADBPath(),
 fIsMC(isMC),
 fCachePID(kTRUE),
 fOADBPath(),
@@ -71,7 +73,7 @@ fMCperiodUser(),
 fCurrentFile(),
 fRecoPass(0),
 fRecoPassUser(-1),
 fCurrentFile(),
 fRecoPass(0),
 fRecoPassUser(-1),
-fRun(0),
+fRun(-1),
 fOldRun(0),
 fResT0A(75.),
 fResT0C(65.),
 fOldRun(0),
 fResT0A(75.),
 fResT0C(65.),
@@ -86,9 +88,7 @@ fTOFPIDParams(NULL),
 fHMPIDPIDParams(NULL),
 fEMCALPIDParams(NULL),
 fCurrentEvent(NULL),
 fHMPIDPIDParams(NULL),
 fEMCALPIDParams(NULL),
 fCurrentEvent(NULL),
-fCurrCentrality(0.0),
-fTuneMConData(kFALSE),
-fTuneMConDataMask(kDetTOF|kDetTPC)
+fCurrCentrality(0.0)
 {
   //
   // default ctor
 {
   //
   // default ctor
@@ -121,6 +121,8 @@ fHMPIDResponse(other.fHMPIDResponse),
 fEMCALResponse(other.fEMCALResponse),
 fRange(other.fRange),
 fITSPIDmethod(other.fITSPIDmethod),
 fEMCALResponse(other.fEMCALResponse),
 fRange(other.fRange),
 fITSPIDmethod(other.fITSPIDmethod),
+fTuneMConData(other.fTuneMConData),
+fTuneMConDataMask(other.fTuneMConDataMask),
 fIsMC(other.fIsMC),
 fCachePID(other.fCachePID),
 fOADBPath(other.fOADBPath),
 fIsMC(other.fIsMC),
 fCachePID(other.fCachePID),
 fOADBPath(other.fOADBPath),
@@ -132,7 +134,7 @@ fMCperiodUser(other.fMCperiodUser),
 fCurrentFile(),
 fRecoPass(0),
 fRecoPassUser(other.fRecoPassUser),
 fCurrentFile(),
 fRecoPass(0),
 fRecoPassUser(other.fRecoPassUser),
-fRun(0),
+fRun(-1),
 fOldRun(0),
 fResT0A(75.),
 fResT0C(65.),
 fOldRun(0),
 fResT0A(75.),
 fResT0C(65.),
@@ -147,9 +149,7 @@ fTOFPIDParams(NULL),
 fHMPIDPIDParams(NULL),
 fEMCALPIDParams(NULL),
 fCurrentEvent(NULL),
 fHMPIDPIDParams(NULL),
 fEMCALPIDParams(NULL),
 fCurrentEvent(NULL),
-fCurrCentrality(0.0),
-fTuneMConData(kFALSE),
-fTuneMConDataMask(kDetTOF|kDetTPC)
+fCurrCentrality(0.0)
 {
   //
   // copy ctor
 {
   //
   // copy ctor
@@ -175,6 +175,8 @@ AliPIDResponse& AliPIDResponse::operator=(const AliPIDResponse &other)
     fITSPIDmethod=other.fITSPIDmethod;
     fOADBPath=other.fOADBPath;
     fCustomTPCpidResponse=other.fCustomTPCpidResponse;
     fITSPIDmethod=other.fITSPIDmethod;
     fOADBPath=other.fOADBPath;
     fCustomTPCpidResponse=other.fCustomTPCpidResponse;
+    fTuneMConData=other.fTuneMConData;
+    fTuneMConDataMask=other.fTuneMConDataMask;
     fIsMC=other.fIsMC;
     fCachePID=other.fCachePID;
     fBeamType="PP";
     fIsMC=other.fIsMC;
     fCachePID=other.fCachePID;
     fBeamType="PP";
@@ -184,7 +186,7 @@ AliPIDResponse& AliPIDResponse::operator=(const AliPIDResponse &other)
     fCurrentFile="";
     fRecoPass=0;
     fRecoPassUser=other.fRecoPassUser;
     fCurrentFile="";
     fRecoPass=0;
     fRecoPassUser=other.fRecoPassUser;
-    fRun=0;
+    fRun=-1;
     fOldRun=0;
     fResT0A=75.;
     fResT0C=65.;
     fOldRun=0;
     fResT0A=75.;
     fResT0C=65.;
@@ -192,14 +194,13 @@ AliPIDResponse& AliPIDResponse::operator=(const AliPIDResponse &other)
     fArrPidResponseMaster=NULL;
     fResolutionCorrection=NULL;
     fOADBvoltageMaps=NULL;
     fArrPidResponseMaster=NULL;
     fResolutionCorrection=NULL;
     fOADBvoltageMaps=NULL;
-       fUseTPCEtaCorrection=other.fUseTPCEtaCorrection;
+    fUseTPCEtaCorrection=other.fUseTPCEtaCorrection;
     fTRDPIDResponseObject=NULL;
     fEMCALPIDParams=NULL;
     fTOFtail=1.1;
     fTOFPIDParams=NULL;
     fHMPIDPIDParams=NULL;
     fCurrentEvent=other.fCurrentEvent;
     fTRDPIDResponseObject=NULL;
     fEMCALPIDParams=NULL;
     fTOFtail=1.1;
     fTOFPIDParams=NULL;
     fHMPIDPIDParams=NULL;
     fCurrentEvent=other.fCurrentEvent;
-
   }
   return *this;
 }
   }
   return *this;
 }