]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSv1.h
these TTask are posted to the apropriate folders //YSAlice/tasks/(S)Digitizer and...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv1.h
CommitLineData
7587f5a5 1#ifndef ALIPHOSV1_H
2#define ALIPHOSV1_H
5f20d3fb 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
7587f5a5 4 * See cxx source for full Copyright notice */
5f20d3fb 5
b2a60966 6//_________________________________________________________________________
5f20d3fb 7// Implementation version v1 of PHOS Manager class
8// Layout EMC + PPSD has name GPS2
a3dfe79c 9// Layout EMC + CPV has name IHEP
10//*--
5f20d3fb 11//*-- Author: Yves Schutz (SUBATECH)
7587f5a5 12
13// --- ROOT system ---
13add4de 14class TClonesArray ;
15class TLorentzVector ;
2ab0c725 16class TFile;
17
7587f5a5 18// --- AliRoot header files ---
19#include "AliPHOSv0.h"
7b326aac 20class AliPHOSQAIntCheckable ;
21class AliPHOSQAFloatCheckable ;
7587f5a5 22
23class AliPHOSv1 : public AliPHOSv0 {
24
25public:
26
bea63bea 27 AliPHOSv1(void) ;
7587f5a5 28 AliPHOSv1(const char *name, const char *title="") ;
5f20d3fb 29 AliPHOSv1(const AliPHOSv1 & phos) {
30 // cpy ctor: no implementation yet
31 // requested by the Coding Convention
13add4de 32 abort() ;
5f20d3fb 33 }
bea63bea 34 virtual ~AliPHOSv1(void) ;
35
7b326aac 36 virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits) ;
37 virtual void FinishEvent() ;
38 virtual void FinishPrimary() ;
39 virtual Int_t IsVersion(void) const {
037cc66d 40 // Gives the version number
41 return 1 ;
42 }
43
0a6d52e3 44 virtual void StepManager(void) ;
45 virtual TString Version(void){
46 // returns the version number
47 return TString("v1") ;
48 }
5f20d3fb 49
50 AliPHOSv1 & operator = (const AliPHOSv1 & rvalue) {
a3dfe79c 51 // assignement operator requested by coding convention but not needed
13add4de 52 abort() ;
5f20d3fb 53 return *this ;
54 }
bea63bea 55
fa412d9b 56 void CPVDigitize (TLorentzVector p, Float_t *xy, Int_t moduleNumber, TClonesArray *digits) ;
57 Float_t CPVPadResponseFunction(Float_t qhit, Float_t zg, Float_t xg) ;
58 Double_t CPVCumulPadResponse(Double_t x, Double_t y) ;
59
bea63bea 60protected:
61
7b326aac 62
63 AliPHOSQAIntCheckable * fQAHitsMul ; // QA Hits Multiplicity checkable
64 TClonesArray * fQAHitsMulB ; // QA Hits Multiplicity / Block checkable
65 AliPHOSQAFloatCheckable * fQATotEner ; // QA Total Energy checkable
66 TClonesArray * fQATotEnerB ; // QA Total Energy / Block checkable
fa412d9b 67
5f20d3fb 68 ClassDef(AliPHOSv1,1) // Implementation of PHOS manager class for layout EMC+PPSD
7587f5a5 69
70};
71
72#endif // AliPHOSV1_H