From c1a886754453c2d7791d012d6dac1b5628cca685 Mon Sep 17 00:00:00 2001 From: panos Date: Thu, 12 Apr 2007 15:37:57 +0000 Subject: [PATCH] Removing eff c++ warnings --- PWG2/FLOW/AliFlowMaker.cxx | 36 ++++++++--------------------------- PWG2/FLOW/AliFlowWeighter.cxx | 6 +++--- 2 files changed, 11 insertions(+), 31 deletions(-) diff --git a/PWG2/FLOW/AliFlowMaker.cxx b/PWG2/FLOW/AliFlowMaker.cxx index 8e5b5268716..e041be94143 100644 --- a/PWG2/FLOW/AliFlowMaker.cxx +++ b/PWG2/FLOW/AliFlowMaker.cxx @@ -46,42 +46,22 @@ using namespace std; //required for resolving the 'cout' symbol ClassImp(AliFlowMaker) //----------------------------------------------------------------------- AliFlowMaker::AliFlowMaker(): + fEventNumber(0), fTrackNumber(0), fV0Number(0), fGoodTracks(0), fGoodV0s(0), + fGoodTracksEta(0), fPosiTracks(0), fNegaTracks(0), fUnconstrained(0), + fSumAll(0), fCutEvts(0), fCutTrks(0), fCutV0s(0), fNewAli(kFALSE), + fLoopTrks(kTRUE), fLoopV0s(kTRUE), fCounter(0), fESD(0x0), fTrack(0x0), fV0(0x0), fVertex(0x0), - fFlowEvent(0x0), fFlowTrack(0x0), fFlowV0(0x0) + fRunID(0), fNumberOfEvents(0), fNumberOfTracks(0), + fNumberOfV0s(0), fMagField(0), + fFlowEvent(0x0), fFlowTrack(0x0), fFlowV0(0x0), + fNHits(0), fElow(0.001), fEup(1000.) { // default constructor // resets counters , sets defaults - fNewAli = kFALSE ; - // flags - fLoopTrks = kTRUE ; - fLoopV0s = kTRUE ; - fCounter = 0 ; - // loop variable - fRunID = 0 ; - fEventNumber = 0 ; - fTrackNumber = 0 ; - fV0Number = 0 ; - fEventNumber = 0 ; - fNumberOfTracks = 0 ; - fNumberOfV0s = 0 ; - fMagField = 0. ; - // counters - fGoodTracks = 0 ; - fGoodV0s = 0 ; - fGoodTracksEta = 0 ; - fPosiTracks = 0 ; - fNegaTracks = 0 ; - fUnconstrained = 0 ; - fCutEvts = 0 ; - fCutTrks = 0 ; - fCutV0s = 0 ; for(Int_t bb=0;bb<5;bb++) { fBayesianAll[bb] = 0 ; } ; - fSumAll = 0 ; // trak cuts - fNHits = 0 ; - fElow = 0.001 ; fEup = 1000. ; fLabel[0] = 0 ; fLabel[1] = -1 ; } //----------------------------------------------------------------------- diff --git a/PWG2/FLOW/AliFlowWeighter.cxx b/PWG2/FLOW/AliFlowWeighter.cxx index 76d1c37a805..f56f6c09dce 100644 --- a/PWG2/FLOW/AliFlowWeighter.cxx +++ b/PWG2/FLOW/AliFlowWeighter.cxx @@ -54,8 +54,9 @@ using namespace std; //required for resolving the 'cout' symbol ClassImp(AliFlowWeighter) //----------------------------------------------------------------------- AliFlowWeighter::AliFlowWeighter(const AliFlowSelection* flowSelect): + fEventNumber(0), fTrackNumber(0), fNumberOfV0s(0), fNumberOfTracks(0), fPhiBins(0), fPhiMin(0.), fPhiMax(0.), fFlowEvent(0x0), fFlowTrack(0x0), fFlowSelect(0x0), fFlowTracks(0x0), - fWgtFile(0x0), fPhiWgtHistList(0x0) + fWgtFile(0x0), fWgtFileName("flowPhiWgt.hist.root"), fPhiWgtHistList(0x0) { // default constructor (selection given or default selection) @@ -63,8 +64,7 @@ AliFlowWeighter::AliFlowWeighter(const AliFlowSelection* flowSelect): else { fFlowSelect = new AliFlowSelection() ; } // output file (histograms) - fWgtFileName = "flowPhiWgt.hist.root" ; - fWgtFile = 0 ; + //fWgtFile = 0 ; } //----------------------------------------------------------------------- AliFlowWeighter::~AliFlowWeighter() -- 2.43.0