Changes to run HLT in alimdc. Reset method in AliESD and AliESDVertex (C.Cheshkov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Oct 2004 09:17:56 +0000 (09:17 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Oct 2004 09:17:56 +0000 (09:17 +0000)
Makefile
STEER/AliESD.cxx
STEER/AliESD.h
STEER/AliESDVertex.h
build/module.dep

index 409495c..6c8636f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -62,7 +62,7 @@ endif
 
 ifdef DATE_ROOT
 DATEFLAGS  = -DALI_DATE -D${DATE_SYS} -DDATE_SYS=${DATE_SYS} -Dlong32=${DATE_LONG32} \
-             -Dlong64='${DATE_LONG64}' -DdatePointer=${DATE_POINTER}
+             -Dlong64='${DATE_LONG64}' -DdatePointer=${DATE_POINTER} -I${DATE_COMMON_DEFS}
 CXXFLAGS  += $(DATEFLAGS)
 CFLAGS    += $(DATEFLAGS)
 CINTFLAGS += $(DATEFLAGS)
index a565e84..5f1aaaa 100644 (file)
@@ -67,6 +67,32 @@ AliESD::~AliESD()
   fCascades.Delete();
 }
 
+//______________________________________________________________________________
+void AliESD::Reset()
+{
+  fEventNumber=0;
+  fRunNumber=0;
+  fTrigger=0;
+  fRecoVersion=0;
+  fMagneticField=0;
+  fZDCNEnergy=0;
+  fZDCPEnergy=0;
+  fZDCEMEnergy=0;
+  fZDCParticipants=0;
+  fT0zVertex=0;
+  fPrimaryVertex.Reset();
+  fTracks.Clear();
+  fHLTConfMapTracks.Clear();
+  fHLTHoughTracks.Clear();
+  fMuonTracks.Clear();
+  fPmdTracks.Clear();
+  fV0s.Clear();
+  fCascades.Clear();
+  fPHOSParticles=0; 
+  fEMCALParticles=0; 
+  fFirstPHOSParticle=-1; 
+  fFirstEMCALParticle=-1;
+}
 
 //______________________________________________________________________________
 void AliESD::Print(Option_t *) const 
index e25148e..d6352ba 100644 (file)
@@ -117,6 +117,8 @@ public:
    {fZDCNEnergy=nEnergy; fZDCPEnergy=pEnergy; fZDCEMEnergy=emEnergy;
     fZDCParticipants=participants;}
 
+  void  Reset();
+
   void  Print(Option_t *option="") const;
    
 protected:
index 7f194b8..5ea8e4a 100644 (file)
@@ -72,7 +72,9 @@ class AliESDVertex : public TNamed {
   void SetTruePos(Double_t *tp){for(Int_t i=0;i<3;i++)fTruePos[i]=tp[i];}
   void GetTruePos(Double_t &x,Double_t &y,Double_t &z) const 
        {x=fTruePos[0]; y=fTruePos[1]; z=fTruePos[2];}
-        
+
+  void Reset() { SetToZero(); SetName("Vertex"); }
+
  protected:
 
   Double_t fPosition[3];  // vertex position
index d68a4da..b901dfb 100644 (file)
@@ -28,7 +28,7 @@ PHOS/module.mk:                PHOS/libPHOS.pkg
 PMD/module.mk:          PMD/libPMDbase.pkg PMD/libPMDsim.pkg PMD/libPMDrec.pkg
 PYTHIA6/module.mk:      PYTHIA6/libpythia6.pkg
 RALICE/module.mk:       RALICE/libRALICE.pkg
-RAW/module.mk:           RAW/libRAW.pkg
+RAW/module.mk:           RAW/libRAW.pkg RAW/binalimdc.pkg
 RICH/module.mk:                 RICH/libRICH.pkg
 START/module.mk:        START/libSTARTbase.pkg START/libSTARTsim.pkg START/libSTARTrec.pkg
 STEER/module.mk:        STEER/libSTEER.pkg