Removing AliESDCaloTrack now obsolete
[u/mrichter/AliRoot.git] / STEER / AliESD.cxx
CommitLineData
8a8d023f 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
acd84897 16/* $Id$ */
8a8d023f 17
ae982df3 18//-----------------------------------------------------------------
19// Implementation of the ESD class
20// This is the class to deal with during the phisical analysis of data
af7ba10c 21// This class is generated directly by the reconstruction methods
ae982df3 22// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
23//-----------------------------------------------------------------
8a8d023f 24
25#include "AliESD.h"
26
27ClassImp(AliESD)
28
af7ba10c 29//______________________________________________________________________________
e2afb3b6 30AliESD::AliESD():
31 fEventNumber(0),
32 fRunNumber(0),
33 fTrigger(0),
34 fRecoVersion(0),
a866ac60 35 fMagneticField(0),
4a78b8c5 36 fT0zVertex(0),
2257f27e 37 fPrimaryVertex(),
e23730c7 38 fTracks("AliESDtrack",15000),
672b5f43 39 fMuonTracks("AliESDMuonTrack",30),
561b7b31 40 fPmdTracks("AliESDPmdTrack",3000),
e23730c7 41 fV0s("AliESDv0",200),
42 fCascades("AliESDcascade",20)
8a8d023f 43{
873f1f73 44}
e2afb3b6 45
af7ba10c 46//______________________________________________________________________________
47AliESD::~AliESD()
48{
49 //
50 // Standard destructor
51 //
52 fTracks.Delete();
af7ba10c 53 fMuonTracks.Delete();
54 fPmdTracks.Delete();
55 fV0s.Delete();
56 fCascades.Delete();
57}
58
59
60//______________________________________________________________________________
61void AliESD::Print(Option_t *) const
62{
63 //
64 // Print header information of the event
65 //
ef278eae 66 Info("Print","ESD run information");
67 printf("Event # %d Run # %d Trigger %ld Magnetic field %f \n",
68 GetEventNumber(),
69 GetRunNumber(),
70 GetTrigger(),
71 GetMagneticField() );
2257f27e 72 printf("Vertex: (%.4f +- %.4f, %.4f +- %.4f, %.4f +- %.4f) cm\n",
73 fPrimaryVertex.GetXv(), fPrimaryVertex.GetXRes(),
74 fPrimaryVertex.GetYv(), fPrimaryVertex.GetYRes(),
75 fPrimaryVertex.GetZv(), fPrimaryVertex.GetZRes());
ef278eae 76 printf("Event from reconstruction version %d \n",fRecoVersion);
77 printf("Number of tracks: \n");
c25f1802 78 printf(" charged %d\n",GetNumberOfTracks());
ef278eae 79 printf(" muon %d\n", GetNumberOfMuonTracks());
561b7b31 80 printf(" pmd %d\n", GetNumberOfPmdTracks());
ef278eae 81 printf(" v0 %d\n", GetNumberOfV0s());
c25f1802 82 printf(" cascades %d\n)", GetNumberOfCascades());
ef278eae 83}