Corrections to comply with coding convention
[u/mrichter/AliRoot.git] / PHOS / AliPHOSIndexToObject.h
CommitLineData
83974468 1#ifndef ALIPHOSINDEXTOOBJECT_H
2#define ALIPHOSINDEXTOOBJECT_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8//_________________________________________________________________________
9// A singleton that retrieves objets from an array stored in a Tree on a disk file
10// 1. AliPHOSDigit from TreeD
11//
12//*-- Author: Yves Schutz (SUBATECH)
13
14
15// --- ROOT system ---
16
17#include "TFile.h"
18#include "TString.h"
19#include "TParticle.h"
20
21// --- Standard library ---
22
23#include "assert.h"
24
25// --- AliRoot header files ---
26
27#include "AliPHOS.h"
28#include "AliRun.h"
29#include "AliPHOSDigit.h"
30#include "AliPHOSEmcRecPoint.h"
31#include "AliPHOSPpsdRecPoint.h"
32#include "AliPHOSTrackSegment.h"
33#include "AliPHOSRecParticle.h"
34
35class AliPHOSIndexToObject : public TObject {
36
37public:
38
88714635 39 AliPHOSIndexToObject(){
40 // ctor: this is a singleton, the ctor should never be called but cint needs it as publiv
41 assert(0==1) ;
42 }
43 virtual ~AliPHOSIndexToObject(){
44 // dtor
45 }
83974468 46
47 static AliPHOSIndexToObject * GetInstance(AliPHOS * det) ;
48 static AliPHOSIndexToObject * GetInstance() ;
49
50 AliPHOSDigit * GimeDigit(Int_t index) ;
51 TParticle * GimePrimaryParticle(Int_t index) ;
52 AliPHOSRecParticle * GimeRecParticle(Int_t index) ;
53 AliRecPoint * GimeRecPoint(Int_t index, TString s) ;
54 AliPHOSTrackSegment * GimeTrackSegment(Int_t index) ;
55
56 private:
57
58 AliPHOSIndexToObject(AliPHOS * det) ;
59
60 AliPHOS * fDetector ; // the detector
83974468 61 TTree * fReconstruct ; // the reconstruction tree
83974468 62
88714635 63 static AliPHOSIndexToObject * fgObjGetter ; // pointer to the unique instance of the singleton
83974468 64
65 ClassDef(AliPHOSIndexToObject,1) // Algorithm class that provides methods to retrieve objects from a list knowing the index
66
67};
68
69#endif // AliPHOSINDEXTOOBJECT_H