]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/html/AliPHOSv1.h
Debug statement removed.
[u/mrichter/AliRoot.git] / PHOS / html / AliPHOSv1.h
CommitLineData
aa7c9120 1#ifndef ALIPHOSV1_H
2#define ALIPHOSV1_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6//_________________________________________________________________________
7// Implementation version v1 of PHOS Manager class
8// Layout EMC + PPSD has name GPS2
9// Layout EMC + CPV has name IHEP
10//*--
11//*-- Author: Yves Schutz (SUBATECH)
12
13// --- ROOT system ---
14class TClonesArray ;
15class TLorentzVector ;
16class TFile;
17
18// --- AliRoot header files ---
19#include "AliPHOSv0.h"
20
21class AliPHOSv1 : public AliPHOSv0 {
22
23public:
24
25 AliPHOSv1(void) ;
26 AliPHOSv1(const char *name, const char *title="") ;
27 AliPHOSv1(const AliPHOSv1 & phos) {
28 // cpy ctor: no implementation yet
29 // requested by the Coding Convention
30 abort() ;
31 }
32 virtual ~AliPHOSv1(void) ;
33
34 virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits) ;
35 // Float_t Calibrate(Int_t amp){ return (amp - fDigitizeA)/fDigitizeB ; }
36 // Int_t Digitize(Float_t Energy){ return (Int_t ) (fDigitizeA + Energy*fDigitizeB); }
37 // virtual void Hits2SDigits() ;
38 virtual void MakeBranch(Option_t* opt, char *file=0 ) ;
39 // void Reconstruction(AliPHOSReconstructioner * Reconstructioner) ;
40 // void ResetClusters(){} ;
41 // virtual void SDigits2Digits() ;
42 virtual Int_t IsVersion(void) const {
43 // Gives the version number
44 return 1 ;
45 }
46
47 // virtual void ResetReconstruction() ; // Reset reconstructed objects
48 // void SetReconstructioner(AliPHOSReconstructioner& Reconstructioner) {
49 // sets the reconstructionner object to be used
50 // fReconstructioner = &Reconstructioner ;
51 // }
52
53 virtual void StepManager(void) ;
54 virtual TString Version(void){
55 // returns the version number
56 return TString("v1") ;
57 }
58
59 AliPHOSv1 & operator = (const AliPHOSv1 & rvalue) {
60 // assignement operator requested by coding convention but not needed
61 abort() ;
62 return *this ;
63 }
64
65 void CPVDigitize (TLorentzVector p, Float_t *xy, Int_t moduleNumber, TClonesArray *digits) ;
66 Float_t CPVPadResponseFunction(Float_t qhit, Float_t zg, Float_t xg) ;
67 Double_t CPVCumulPadResponse(Double_t x, Double_t y) ;
68
69protected:
70
71
72 ClassDef(AliPHOSv1,1) // Implementation of PHOS manager class for layout EMC+PPSD
73
74};
75
76#endif // AliPHOSV1_H