Compilation warnings removed (Andrea)
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Oct 2007 09:57:30 +0000 (09:57 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Oct 2007 09:57:30 +0000 (09:57 +0000)
PWG3/AliAODRecoDecayHF4Prong.cxx
PWG3/AliAnalysisVertexingHF.cxx
PWG3/AliAnalysisVertexingHF.h

index 3955610..7afb69a 100644 (file)
@@ -156,6 +156,7 @@ Bool_t AliAODRecoDecayHF4Prong::SelectD0(const Double_t *cuts,Int_t &okD0,Int_t
 // If candidate D0 does not pass the cuts return kFALSE
 //
 
+  okD0=0; okD0bar=0;
   Double_t mD0PDG = TDatabasePDG::Instance()->GetParticle(421)->Mass();
   Double_t mD0=InvMassD0();
   if(TMath::Abs(mD0-mD0PDG)>cuts[0]) return kFALSE;
index 40e9f64..38f6ff6 100644 (file)
@@ -54,10 +54,61 @@ fMinPtCut(0.),fMind0rphiCut(0.)
   SetBtoJPSICuts();
   SetDplusCuts();
 }
+//--------------------------------------------------------------------------
+AliAnalysisVertexingHF::AliAnalysisVertexingHF(const AliAnalysisVertexingHF &source) : 
+TNamed(source),
+fRecoPrimVtxSkippingTrks(source.fRecoPrimVtxSkippingTrks),
+fRmTrksFromPrimVtx(source.fRmTrksFromPrimVtx),
+fV1(source.fV1),
+fDebug(source.fDebug),
+fD0toKpi(source.fD0toKpi),
+fJPSItoEle(source.fJPSItoEle),
+f3Prong(source.f3Prong),
+f4Prong(source.f4Prong),
+fITSrefit(source.fITSrefit),
+fBothSPD(source.fBothSPD),
+fMinITSCls(source.fMinITSCls),
+fMinPtCut(source.fMinPtCut),
+fMind0rphiCut(source.fMind0rphiCut)
+{
+  //
+  // Copy constructor
+  //
+  for(Int_t i=0; i<9; i++)  fD0toKpiCuts[i]=source.fD0toKpiCuts[i];
+  for(Int_t i=0; i<9; i++)  fBtoJPSICuts[i]=source.fBtoJPSICuts[i];
+  for(Int_t i=0; i<12; i++) fDplusCuts[i]=source.fDplusCuts[i];
+}
+//--------------------------------------------------------------------------
+AliAnalysisVertexingHF &AliAnalysisVertexingHF::operator=(const AliAnalysisVertexingHF &source)
+{
+  //
+  // assignment operator
+  //
+  if(&source == this) return *this;
+  fRecoPrimVtxSkippingTrks = source.fRecoPrimVtxSkippingTrks;
+  fRmTrksFromPrimVtx = source.fRmTrksFromPrimVtx;
+  fV1 = source.fV1;
+  fDebug = source.fDebug;
+  fD0toKpi = source.fD0toKpi;
+  fJPSItoEle = source.fJPSItoEle;
+  f3Prong = source.f3Prong;
+  f4Prong = source.f4Prong;
+  fITSrefit = source.fITSrefit;
+  fBothSPD = source.fBothSPD;
+  fMinITSCls = source.fMinITSCls;
+  fMinPtCut = source.fMinPtCut;
+  fMind0rphiCut = source.fMind0rphiCut;
+
+  for(Int_t i=0; i<9; i++)  fD0toKpiCuts[i]=source.fD0toKpiCuts[i];
+  for(Int_t i=0; i<9; i++)  fBtoJPSICuts[i]=source.fBtoJPSICuts[i];
+  for(Int_t i=0; i<12; i++) fDplusCuts[i]=source.fDplusCuts[i];
+
+  return *this;
+}
 //----------------------------------------------------------------------------
 AliAnalysisVertexingHF::~AliAnalysisVertexingHF() {
   // Destructor
-  if(fV1) delete fV1;
+  if(fV1) { delete fV1; fV1=0; }
 }
 //----------------------------------------------------------------------------
 void AliAnalysisVertexingHF::FindCandidates(AliESDEvent *esd,TTree treeout[])
@@ -553,7 +604,8 @@ AliAODRecoDecayHF4Prong* AliAnalysisVertexingHF::Make4Prong(
   Double_t px[4],py[4],pz[4],d0[4],d0err[4];//d0z[3];
   //Float_t d0z0[2],covd0z0[3];
 
-  Double_t bfieldkG=(Double_t)esd->GetMagneticField();
+  Double_t bfieldkG=dcap1n1*dcap1n2*dcap2n1; // TO BE CHANGED (done just to removed compilation warning about dca... not used)
+  bfieldkG=(Double_t)esd->GetMagneticField();
 
   //charge
   Short_t charge=0;
index f933d47..c152b51 100644 (file)
@@ -24,6 +24,8 @@ class AliAnalysisVertexingHF : public TNamed {
  public:
   //
   AliAnalysisVertexingHF();
+  AliAnalysisVertexingHF(const AliAnalysisVertexingHF& source);
+  AliAnalysisVertexingHF& operator=(const AliAnalysisVertexingHF& source); 
   virtual ~AliAnalysisVertexingHF();
 
   void FindCandidates(AliESDEvent *esd,TTree treeout[]);