]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESD.cxx
Use of (dummy) reconstructors for all detectors (T.Kuhr)
[u/mrichter/AliRoot.git] / STEER / AliESD.cxx
index a913837c8e5a4a4295d82decda97f756ce5b0f3e..40a3a6e8a970d008bc6f50146b3f02e1f3cbe5d5 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/* $Header$ */
+/* $Id$ */
 
-/////////////////////////////////////////////////////////////////////////
-//                                                                     //
-//       Prototype ESD class                                           //
-//                                                                     //
-/////////////////////////////////////////////////////////////////////////
-
-#include "Riostream.h"
+//-----------------------------------------------------------------
+//           Implementation of the ESD class
+//   This is the class to deal with during the phisical analysis of data
+//
+//      Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
+//-----------------------------------------------------------------
 
 #include "AliESD.h"
 
@@ -33,151 +32,36 @@ AliESD::AliESD():
   fRunNumber(0),
   fTrigger(0),
   fRecoVersion(0),
-  fBitDDL(0),
-  fNSecVertex(0),
-  fNParticipants(0),
-  fNPartError(0),
-  fNElectron(0),
-  fNMuons(0),
-  fNPions(0),
-  fNKaons(0),
-  fNProtons(0),
-  fNPHOSPhotons(0),
-  fNPHOSNeutrons(0),
-  fNPHOSCCluster(0),
-  fNEMCALCluster(0),
-  fNPMDCluster(0),
-  fTMaxClusterEnergy(0),
-  fTMaxPCharged(0),
-  fNCharged(0),
-  fTotTranEnergy(0),
-  fESDVertex(),
-  fSecVertex(0),
-  fNonAssTrack(0),
-  fPhoton(0),
-  fNeutron(0),
-  fEMCALCluster(0),
-  fPMDCluster(0)
-{
-  Info("def ctor","Has been called\n");
-}
-
-//_______________________________________________________________________
-AliESD::AliESD(const AliESD &esd):
-  TObject(esd),
-  fEventNumber(0),
-  fRunNumber(0),
-  fTrigger(0),
-  fRecoVersion(0),
-  fBitDDL(0),
-  fNSecVertex(0),
-  fNParticipants(0),
-  fNPartError(0),
-  fNElectron(0),
-  fNMuons(0),
-  fNPions(0),
-  fNKaons(0),
-  fNProtons(0),
-  fNPHOSPhotons(0),
-  fNPHOSNeutrons(0),
-  fNPHOSCCluster(0),
-  fNEMCALCluster(0),
-  fNPMDCluster(0),
-  fTMaxClusterEnergy(0),
-  fTMaxPCharged(0),
-  fNCharged(0),
-  fTotTranEnergy(0),
-  fESDVertex(),
-  fSecVertex(0),
-  fNonAssTrack(0),
-  fPhoton(0),
-  fNeutron(0),
-  fEMCALCluster(0),
-  fPMDCluster(0)
-{
-}
-
-ClassImp(AliESDVertex)
-
-//_______________________________________________________________________
-AliESDVertex::AliESDVertex():
-  fNPrimary(0),
-  fCoordinates(3),
-  fErrorMatrix(6),
-  fPrimaryTracks(0),
-  fEffectiveMass(0),
-  fEffectiveMassError(0)
+  fMagneticField(0),
+  fT0zVertex(0),
+  fPrimaryVertex(),
+  fTracks("AliESDtrack",15000),
+  fCaloTracks("AliESDCaloTrack",500),
+  fMuonTracks("AliESDMuonTrack",30),
+  fPmdTracks("AliESDPmdTrack",3000),
+  fV0s("AliESDv0",200),
+  fCascades("AliESDcascade",20)
 {
-  cout << "ESDVertex def ctor" << endl;
 }
 
-//_______________________________________________________________________
-AliESDVertex::AliESDVertex(const AliESDVertex &esdv):
-  TObject(esdv),
-  fNPrimary(0),
-  fCoordinates(0),
-  fErrorMatrix(0),
-  fPrimaryTracks(0),
-  fEffectiveMass(0),
-  fEffectiveMassError(0)
-{
+void AliESD::Print(Option_t *) const {
+  //Print header information of the event
+  Info("Print","ESD run information");
+  printf("Event # %d Run # %d Trigger %ld Magnetic field %f \n",
+        GetEventNumber(),
+        GetRunNumber(),
+        GetTrigger(),
+        GetMagneticField() );
+  printf("Vertex: (%.4f +- %.4f, %.4f +- %.4f, %.4f +- %.4f) cm\n",
+        fPrimaryVertex.GetXv(), fPrimaryVertex.GetXRes(),
+        fPrimaryVertex.GetYv(), fPrimaryVertex.GetYRes(),
+        fPrimaryVertex.GetZv(), fPrimaryVertex.GetZRes());
+  printf("Event from reconstruction version %d \n",fRecoVersion);
+  printf("Number of tracks: \n");
+  printf("                 charged   %d\n",GetNumberOfTracks());
+  printf("                 calo      %d\n", GetNumberOfCaloTracks());
+  printf("                 muon      %d\n", GetNumberOfMuonTracks());
+  printf("                 pmd      %d\n", GetNumberOfPmdTracks());
+  printf("                 v0        %d\n", GetNumberOfV0s());
+  printf("                 cascades  %d\n)", GetNumberOfCascades());
 }
-
-ClassImp(AliESDTrack)
-
-//_______________________________________________________________________
-AliESDTrack::AliESDTrack() :
-  fTrackID(0),
-  fPVertex(5),
-  fPEVertex(15),
-  fPFMeasPoint(6),
-  fPFMeasPointErr(15),
-  fPLMeasPoint(6),
-  fPLMeasPointErr(15),
-  fTrackLength(0),
-  fTrackLengthErr(0),
-  fStopVertex(0),
-  fNPointsITS(0),
-  fNPointsTPC(0),
-  fNPointsTRD(0),
-  fMeanResITS(0),
-  fMeanResTPC(0),
-  fMeanResTRD(0),
-  fGlobalChi2(0),
-  fParticleType(0),
-  fPIDprobPi(0),
-  fPIDprobK(0),
-  fPIDprobP(0),
-  fPIDprobE(0)
-{
-  cout << "ESDTrack def ctor" << endl;
-}
-
-//_______________________________________________________________________
-AliESDTrack::AliESDTrack(const AliESDTrack &esdt):
-  TObject(esdt),
-  fTrackID(0),
-  fPVertex(0),
-  fPEVertex(0),
-  fPFMeasPoint(0),
-  fPFMeasPointErr(0),
-  fPLMeasPoint(0),
-  fPLMeasPointErr(0),
-  fTrackLength(0),
-  fTrackLengthErr(0),
-  fStopVertex(0),
-  fNPointsITS(0),
-  fNPointsTPC(0),
-  fNPointsTRD(0),
-  fMeanResITS(0),
-  fMeanResTPC(0),
-  fMeanResTRD(0),
-  fGlobalChi2(0),
-  fParticleType(0),
-  fPIDprobPi(0),
-  fPIDprobK(0),
-  fPIDprobP(0),
-  fPIDprobE(0)
-{
-}
-