fix for compilation warning (initialization order) and critical coverity fix (dead...
authorrbertens <rbertens@cern.ch>
Mon, 27 Jan 2014 15:21:40 +0000 (16:21 +0100)
committerrbertens <rbertens@cern.ch>
Mon, 27 Jan 2014 15:21:56 +0000 (16:21 +0100)
PWG/FLOW/Tasks/AliFlowEventCuts.cxx

index b1eb4f0..362cbaf 100644 (file)
@@ -190,11 +190,11 @@ AliFlowEventCuts::AliFlowEventCuts(const AliFlowEventCuts& that):
   fCentralityPercentileMin(that.fCentralityPercentileMin),
   fCutZDCtiming(that.fCutZDCtiming),
   fTrigAna(),
-  fhistTPCvsGlobalMult(that.fhistTPCvsGlobalMult),
-  fData2011(that.fData2011),
   fCutImpactParameter(that.fCutImpactParameter),
   fImpactParameterMin(that.fImpactParameterMin),
-  fImpactParameterMax(that.fImpactParameterMax)
+  fImpactParameterMax(that.fImpactParameterMax),
+  fhistTPCvsGlobalMult(that.fhistTPCvsGlobalMult),
+  fData2011(that.fData2011)
 {
   if (that.fQA) DefineHistograms();
   //copy constructor 
@@ -325,7 +325,7 @@ Bool_t AliFlowEventCuts::PassesCuts(AliVEvent *event, AliMCEvent *mcevent)
         if (multTPC > ( 62.87+1.78*multGlobal)) {pass=kFALSE;}
         if (multTPC < (-36.73+1.48*multGlobal)) {pass=kFALSE;}
       }
-    if(aodevent && ~fData2011){
+    if(aodevent && !fData2011){
         if (multTPC > ( 32.1+1.59*multGlobal)) {pass=kFALSE;}
         if (multTPC < (-40.3+1.22*multGlobal)) {pass=kFALSE;}
       }