Updated SPD Cluster analysis macro.
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALGetter.cxx
CommitLineData
ffa6d63b 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/* $Log:
d75bea67 19 29.05.2001 Yuri Kharlov:
20 Everywhere reading the treese TTree->GetEvent(i)
21 is replaced by reading the branches TBranch->GetEntry(0)
ffa6d63b 22*/
05a92d59 23/* $Log:
24 08.2002 Dmitri Peressounko:
25
26*/
ffa6d63b 27
28//_________________________________________________________________________
29// A singleton. This class should be used in the analysis stage to get
30// reconstructed objects: Digits, RecPoints, TrackSegments and RecParticles,
31// instead of directly reading them from galice.root file. This container
32// ensures, that one reads Digits, made of these particular digits, RecPoints,
33// made of these particular RecPoints, TrackSegments and RecParticles.
34// This becomes non trivial if there are several identical branches, produced with
d75bea67 35// different set of parameters.
ffa6d63b 36//
37// An example of how to use (see also class AliEMCALAnalyser):
38// AliEMCALGetter * gime = AliEMCALGetter::GetInstance("galice.root","test") ;
d75bea67 39// for(Int_t irecp = 0; irecp < gime->NRecParticles() ; irecp++)
40// AliEMCALRecParticle * part = gime->RecParticle(1) ;
ffa6d63b 41// ................
42// please->GetEvent(event) ; // reads new event from galice.root
43//
d75bea67 44//*-- Author: Yves Schutz (SUBATECH) & Dmitri Peressounko (RRC KI & SUBATECH)
45//*-- Completely redesigned by Dmitri Peressounko March 2001
46//
47//*-- YS June 2001 : renamed the original AliEMCALIndexToObject and make
05a92d59 48//*-- systematic usage of TFolders without changing the interface
49//*-- YS August 2002 : clone PHOS as closely as possible and intoduction
50