]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding Print
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Jan 2004 13:13:09 +0000 (13:13 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Jan 2004 13:13:09 +0000 (13:13 +0000)
STEER/AliESD.cxx
STEER/AliESD.h

index b51e2fed36672516697380e2d3a8ce7f52c1bd7b..55f2d6ffc861380d68e0ba1306f213ebab141de7 100644 (file)
@@ -60,3 +60,19 @@ void AliESD::GetVertex(Double_t *vtx, Double_t *cvtx) const {
   for (i=0; i<6; i++) cvtx[i]=fCovVtx[i];   
 }
 
+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("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("                 v0        %d\n", GetNumberOfV0s());
+  printf("                 cascades %d\n)", GetNumberOfCascades());
+}
index 715f5079b78fbda7784599464f190f5efed30d74..d1215e7f59e737fe75043cc6fe8be524282b2299 100644 (file)
@@ -83,7 +83,9 @@ public:
   Int_t GetNumberOfMuonTracks() const {return fMuonTracks.GetEntriesFast();}
   Int_t GetNumberOfV0s()      const {return fV0s.GetEntriesFast();}
   Int_t GetNumberOfCascades() const {return fCascades.GetEntriesFast();}
-  
+
+  void  Print(Option_t *option="") const;
+   
 protected:
 
   // Event Identification