1 #ifndef ALIPHOSVIMPACTS_H
2 #define ALIPHOSVIMPACTS_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 /* History of cvs commits:
13 //_________________________________________________________________________
14 // Implementation version vImpacts of PHOS Manager class.
15 // This class inherits from v1 and adds impacts storing.
16 // Impacts stands for exact values of track coming to the detectors
18 // Impacts are written to the same tree as hits are
19 // but in separate branches.
21 //*-- Author: Yuri Kharlov (IHEP, Protvino/SUBATECH, Nantes)
23 // --- ROOT system ---
25 class TLorentzVector ;
28 // --- AliRoot header files ---
29 #include "AliPHOSv1.h"
31 class AliPHOSvImpacts : public AliPHOSv1 {
35 AliPHOSvImpacts(void) ;
36 AliPHOSvImpacts(const char *name, const char *title="") ;
37 AliPHOSvImpacts(AliPHOSvImpacts & phos) : AliPHOSv1(phos) {
40 virtual ~AliPHOSvImpacts(void) ;
42 virtual void Copy(TObject & phos) const;
43 virtual void AddImpact(const char* detector, Int_t shunt, Int_t primary, Int_t track,
44 Int_t module, Int_t pid, TLorentzVector p, Float_t *xyz) ;
45 virtual void MakeBranch(Option_t *opt=" ");
46 virtual void ResetHits();
47 virtual Int_t IsVersion(void) const {
48 // Gives the version number
51 virtual void StepManager(void) ;
52 virtual const TString Version(void)const{
53 // returns the version number
54 return TString("vImpacts") ;
57 AliPHOSvImpacts & operator = (const AliPHOSvImpacts & /*rvalue*/) {
58 // assignement operator requested by coding convention but not needed
59 Fatal("operator =", "not implemented") ;
65 TList * fEMCImpacts; // Array of impacts in EMC modules
66 TList * fCPVImpacts; // Array of impacts in CPV (IHEP) modules
67 TList * fPPSDImpacts; // Array of impacts in PPSD modules
69 Int_t fNEMCImpacts[5]; // Number of EMC impacts per module
70 Int_t fNCPVImpacts[5]; // Number of CPV impacts per module
71 Int_t fNPPSDImpacts[5]; // Number of PPSD impacts per module
74 ClassDef(AliPHOSvImpacts,1) // Implementation of PHOS manager class for layout EMC+PPSD
78 #endif // AliPHOSVIMPACTS_H