]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSv2.h
Add range for RandomEMC, RandomCPV
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv2.h
1 #ifndef ALIPHOSV2_H
2 #define ALIPHOSV2_H
3 /* Copyright(c) 1998-1999-2000, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 /* History of cvs commits:
9  *
10  * $Log$
11  * Revision 1.18  2005/05/28 14:19:05  schutz
12  * Compilation warnings fixed by T.P.
13  *
14  */
15
16 //_________________________________________________________________________
17 // Version of AliPHOSv0 which keeps all hits in TreeH
18 // I mean real hits not cumulated hits
19 //  This version is NOT recommended for Reconstruction analysis
20 //                  
21 //*-- Author: Gines MARTINEZ (SUBATECH)
22
23 // --- ROOT system ---
24
25 // --- AliRoot header files ---
26 #include "AliPHOSv1.h"
27
28 class AliPHOSv2 : public AliPHOSv1 {
29
30 public:
31
32   AliPHOSv2(void) ;
33   AliPHOSv2(const char *name, const char *title="") ;
34   AliPHOSv2(AliPHOSv2 & phos) : AliPHOSv1(phos){
35     phos.Copy(*this) ; 
36   }
37   virtual ~AliPHOSv2(void) ;
38
39   virtual void    Copy(TObject &phos) const; 
40   using AliPHOSv1::AddHit;
41   virtual void    AddHit( Int_t shunt, Int_t primary, Int_t id, Float_t *hits); 
42   virtual Int_t   IsVersion(void) const { 
43     // Gives the version number 
44     return 2 ; 
45   }
46   virtual const TString Version(void)const { 
47     // returns the version number 
48     return TString("v2") ; 
49   }
50
51 protected:
52
53   ClassDef(AliPHOSv2,1)  // Class AliPHOSv0 which allows to write ond disk al the information of the hits. 
54
55 };
56
57 #endif // AliPHOSV2_H