]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliD0toKpiAnalysis.cxx
Change in the signature of base class method Use to avoid compilation warnings (icc)
[u/mrichter/AliRoot.git] / ANALYSIS / AliD0toKpiAnalysis.cxx
index f173a667f4254dcea8c9abc086a5c27cd2a5d475..4da29ecd1367fa1f47258165ce2b1afd9be0c701 100644 (file)
@@ -36,6 +36,7 @@
 #include "AliV0vertex.h"
 #include "AliD0toKpi.h"
 #include "AliD0toKpiAnalysis.h"
+#include "AliLog.h"
 
 typedef struct {
   Int_t lab;
@@ -52,7 +53,7 @@ ClassImp(AliD0toKpiAnalysis)
 AliD0toKpiAnalysis::AliD0toKpiAnalysis() {
   // Default constructor
 
-  SetBz();
+  fBz=-9999;
   SetPtCut();
   Setd0Cut();
   SetMassCut();
@@ -62,7 +63,6 @@ AliD0toKpiAnalysis::AliD0toKpiAnalysis() {
   fVertexOnTheFly = kFALSE;
   fSim = kFALSE;
   fOnlySignal = kFALSE;
-  fDebug = kFALSE;
 }
 //----------------------------------------------------------------------------
 AliD0toKpiAnalysis::~AliD0toKpiAnalysis() {}
@@ -144,7 +144,6 @@ void AliD0toKpiAnalysis::FindCandidates(Int_t evFirst,Int_t evLast,
     printf("AliD0toKpiAnalysis::FindCandidates():  Set B!\n");
     return;
   }
-  AliKalmanTrack::SetConvConst(100/0.299792458/fBz);
 
   TString trkName("AliITStracksV2.root");
   if(gSystem->AccessPathName(trkName.Data(),kFileExists)) {
@@ -172,7 +171,6 @@ void AliD0toKpiAnalysis::FindCandidates(Int_t evFirst,Int_t evLast,
   // (it will be used only if fVertexOnTheFly=kTrue)
   AliITSVertexerTracks *vertexer1 = new AliITSVertexerTracks;
   vertexer1->SetMinTracks(2);
-  vertexer1->SetDebug(0);
   Int_t  skipped[2];
   Bool_t goodVtx1;
   
@@ -376,7 +374,6 @@ void AliD0toKpiAnalysis::FindCandidatesESD(Int_t evFirst,Int_t evLast,
     printf("AliD0toKpiAnalysis::FindCandidatesESD():  Set B!\n");
     return;
   }
-  AliKalmanTrack::SetConvConst(100/0.299792458/fBz);
 
   TString esdName("AliESDs.root");
   if(gSystem->AccessPathName(esdName.Data(),kFileExists)) {
@@ -403,7 +400,6 @@ void AliD0toKpiAnalysis::FindCandidatesESD(Int_t evFirst,Int_t evLast,
   // (it will be used only if fVertexOnTheFly=kTrue)
   AliITSVertexerTracks *vertexer1 = new AliITSVertexerTracks;
   vertexer1->SetMinTracks(2);
-  vertexer1->SetDebug(0);
   Int_t  skipped[2];
   Bool_t goodVtx1;
   
@@ -470,13 +466,13 @@ void AliD0toKpiAnalysis::FindCandidatesESD(Int_t evFirst,Int_t evLast,
                             trksN,trkEntryN,nTrksN);
     }      
 
-    if(fDebug) printf(" pos. tracks: %d    neg .tracks: %d\n",nTrksP,nTrksN);
+    AliDebugClass(1,Form(" pos. tracks: %d    neg .tracks: %d",nTrksP,nTrksN));
 
     nD0rec1ev = 0;
 
     // loop on positive tracks
     for(iTrkP=0; iTrkP<nTrksP; iTrkP++) {
-      if((iTrkP%10==0) || fDebug) printf("  Processing positive track number %d of %d\n",iTrkP,nTrksP);
+      if(iTrkP%10==0) AliDebugClass(1,Form("  Processing positive track number %d of %d",iTrkP,nTrksP));
          
       // get track from track array
       postrack = (AliITStrackV2*)trksP.UncheckedAt(iTrkP);
@@ -747,7 +743,6 @@ void AliD0toKpiAnalysis::SelectTracksESD(AliESD &event,
  
   // transfer ITS tracks from ESD to arrays and to a tree
   for(Int_t i=0; i<entr; i++) {
-    //if(fDebug) printf(" SelectTracksESD: %d/%d\n",i,entr);
 
     AliESDtrack *esdtrack = (AliESDtrack*)event.GetTrack(i);
     UInt_t status = esdtrack->GetStatus();