12391a12 |
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 | /* $Id$ */ |
16 | //_________________________________________________________________________ |
17 | // Macros analyzing the ESD file |
18 | // Use Case : |
19 | // root> .L AnaESD.C++ |
20 | // root> ana() --> prints the objects stored in ESD |
21 | // |
22 | // author : Yves Schutz (CERN/SUBATECH) |
23 | // February 2004 |
24 | //_________________________________________________________________________ |
baf5b427 |
25 | #include "TFile.h" |
26 | #include "AliPHOSGetter.h" |
27 | #include "Riostream.h" |
28 | #include "AliESD.h" |
29 | |
30 | void Ana() |
31 | { |
32 | AliPHOSGetter * gime = AliPHOSGetter::Instance("galice.root") ; |
33 | Int_t nEvent = gime->MaxEvent() ; |
34 | Int_t event ; |
35 | AliESD * esd ; |
36 | for (event = 0 ; event < nEvent; event++) { |
37 | esd = gime->ESD(event) ; |
38 | esd->Print(); |
39 | |
40 | } |
41 | } |