From dc306130a4d93cc566c993b06438f2df98babfce Mon Sep 17 00:00:00 2001 From: dainese Date: Mon, 29 Jun 2009 13:40:35 +0000 Subject: [PATCH] Warnings fixed --- PWG3/hfe/AliHFEmcQA.cxx | 7 ++++--- PWG3/hfe/AliHFEmcQA.h | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/PWG3/hfe/AliHFEmcQA.cxx b/PWG3/hfe/AliHFEmcQA.cxx index e359c93a254..95a360ee8b0 100644 --- a/PWG3/hfe/AliHFEmcQA.cxx +++ b/PWG3/hfe/AliHFEmcQA.cxx @@ -95,7 +95,7 @@ AliHFEmcQA::~AliHFEmcQA() } //_______________________________________________________________________________________________ -const void AliHFEmcQA::PostAnalyze() +void AliHFEmcQA::PostAnalyze() { } @@ -536,7 +536,7 @@ void AliHFEmcQA::GetDecayedKine(Int_t iTrack, const Int_t kquark, Int_t kdecayed fHistComm[iq][icut].fDeDistance->Fill(grandMa->Pt(),dedistance.P()); return; } - } + } partMother = grandMa; } // end of iteration @@ -666,7 +666,7 @@ void AliHFEmcQA::ReportStrangeness(Int_t &motherID, Int_t &mothertype, Int_t &mo } //__________________________________________ -const Float_t AliHFEmcQA::GetRapidity(TParticle *part) +Float_t AliHFEmcQA::GetRapidity(TParticle *part) { // return rapidity @@ -675,3 +675,4 @@ const Float_t AliHFEmcQA::GetRapidity(TParticle *part) else rapidity = 0.5*(TMath::Log((part->Energy()+part->Pz()) / (part->Energy()-part->Pz()))); return rapidity; } + diff --git a/PWG3/hfe/AliHFEmcQA.h b/PWG3/hfe/AliHFEmcQA.h index de8a2437911..9c2191d4de9 100644 --- a/PWG3/hfe/AliHFEmcQA.h +++ b/PWG3/hfe/AliHFEmcQA.h @@ -50,7 +50,7 @@ class AliHFEmcQA: public TObject { virtual ~AliHFEmcQA(); - const void PostAnalyze(); + void PostAnalyze(); void CreateHistograms(const Int_t kquark, Int_t icut, TString hnopt=""); // create histograms for mc qa analysis void SetStack(AliStack* const stack){fStack=stack;} // set stack pointer void Init(); @@ -66,7 +66,7 @@ class AliHFEmcQA: public TObject { void ReportStrangeness(Int_t &motherID, Int_t &mothertype, Int_t &motherlabel); // report if the quark production process is unknown Bool_t IsFromInitialShower(Int_t inputmotherlabel, Int_t &motherID, Int_t &mothertype, Int_t &motherlabel); // check if the quark is produced from initial parton shower Bool_t IsFromFinalParton(Int_t inputmotherlabel, Int_t &motherID, Int_t &mothertype, Int_t &motherlabel); // check if the quark is produced from final parton shower - const Float_t GetRapidity(TParticle *part); // return rapidity + Float_t GetRapidity(TParticle *part); // return rapidity AliStack* fStack; // stack pointer @@ -105,7 +105,8 @@ class AliHFEmcQA: public TObject { Int_t fParentSelect[2][7]; // heavy hadron species - ClassDef(AliHFEmcQA,0); + ClassDef(AliHFEmcQA,0); // QA for MC electrons }; #endif + -- 2.39.3