]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliESD.cxx
a00b62f88f72350d9d826ea1f36e0aa5c746c4a6
[u/mrichter/AliRoot.git] / STEER / AliESD.cxx
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
16 /* $Id$ */
17
18 //-----------------------------------------------------------------
19 //           Implementation of the ESD class
20 //   This is the class to deal with during the phisical analysis of data
21 //   This class is generated directly by the reconstruction methods
22 //      Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
23 //-----------------------------------------------------------------
24
25 #include "AliESD.h"
26
27 ClassImp(AliESD)
28
29 //______________________________________________________________________________
30 AliESD::AliESD():
31   fEventNumber(0),
32   fRunNumber(0),
33   fTrigger(0),
34   fRecoVersion(0),
35   fMagneticField(0),
36   fT0zVertex(0),
37   fPrimaryVertex(),
38   fTracks("AliESDtrack",15000),
39   fHLTConfMapTracks("AliESDHLTtrack",25000),
40   fHLTHoughTracks("AliESDHLTtrack",15000),
41   fMuonTracks("AliESDMuonTrack",30),
42   fPmdTracks("AliESDPmdTrack",3000),
43   fV0s("AliESDv0",200),
44   fCascades("AliESDcascade",20),
45   fPHOSParticles(0), 
46   fEMCALParticles(0), 
47   fFirstPHOSParticle(-1), 
48   fFirstEMCALParticle(-1){
49 }
50
51 //______________________________________________________________________________
52 AliESD::~AliESD()
53 {
54   //
55   // Standard destructor
56   //
57   fTracks.Delete();
58   fMuonTracks.Delete();
59   fPmdTracks.Delete();
60   fV0s.Delete();
61   fCascades.Delete();
62 }
63
64
65 //______________________________________________________________________________
66 void AliESD::Print(Option_t *) const 
67 {
68   //
69   // Print header information of the event
70   //
71   Info("Print","ESD run information");
72   printf("Event # %d Run # %d Trigger %ld Magnetic field %f \n",
73          GetEventNumber(),
74          GetRunNumber(),
75          GetTrigger(),
76          GetMagneticField() );
77   printf("Vertex: (%.4f +- %.4f, %.4f +- %.4f, %.4f +- %.4f) cm\n",
78          fPrimaryVertex.GetXv(), fPrimaryVertex.GetXRes(),
79          fPrimaryVertex.GetYv(), fPrimaryVertex.GetYRes(),
80          fPrimaryVertex.GetZv(), fPrimaryVertex.GetZRes());
81   printf("Event from reconstruction version %d \n",fRecoVersion);
82   printf("Number of tracks: \n");
83   printf("                 charged   %d\n",GetNumberOfTracks()-GetNumberOfPHOSParticles()-GetNumberOfEMCALParticles());
84   printf("                 hlt CF    %d\n", GetNumberOfHLTConfMapTracks());
85   printf("                 hlt HT    %d\n", GetNumberOfHLTHoughTracks());
86   printf("                 phos      %d\n", GetNumberOfPHOSParticles());
87   printf("                 emcal     %d\n", GetNumberOfEMCALParticles());
88   printf("                 muon      %d\n", GetNumberOfMuonTracks());
89   printf("                 pmd       %d\n", GetNumberOfPmdTracks());
90   printf("                 v0        %d\n", GetNumberOfV0s());
91   printf("                 cascades  %d\n)", GetNumberOfCascades());
92 }