Reading muon trigger scalers with the DA of the muon trigger and transfer
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDebug.h
CommitLineData
b37750a6 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
b37750a6 8// Layout EMC + CPV has name IHEP
9//*--
10//*-- Author: Yves Schutz (SUBATECH)
11
12// --- ROOT system ---
13#include "TClonesArray.h"
14
15class TFile;
16
17// --- AliRoot header files ---
18#include "AliPHOSv0.h"
19#include "AliPHOSGeometry.h"
f444a19f 20#include "AliPHOSReconstructor.h"
b37750a6 21#include "AliPHOSTrackSegmentMaker.h"
22#include "AliPHOSPID.h"
23#include "AliPHOSCPVDigit.h"
24
25class AliPHOSv1 : public AliPHOSv0 {
26
27public:
28
29 AliPHOSv1(void) ;
30 AliPHOSv1(const char *name, const char *title="") ;
f444a19f 31 AliPHOSv1(AliPHOSReconstructor * Reconstructioner, const char *name, const char *title="") ;
b37750a6 32 AliPHOSv1(const AliPHOSv1 & phos) {
33 // cpy ctor: no implementation yet
34 // requested by the Coding Convention
88cb7938 35 assert(0==1) ;
b37750a6 36 }
37 virtual ~AliPHOSv1(void) ;
38
39 virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits, Int_t pid, TLorentzVector p, Float_t *pos) ;
40 Float_t Calibrate(Int_t amp){ return (amp - fDigitizeA)/fDigitizeB ; }
41 Int_t Digitize(Float_t Energy){ return (Int_t ) (fDigitizeA + Energy*fDigitizeB); }
42 virtual void Hits2SDigits() ;
43 virtual void MakeBranch(Option_t* opt, char *file=0 ) ;
f444a19f 44 void Reconstruction(AliPHOSReconstructor * Reconstructioner) ;
b37750a6 45 void ResetClusters(){} ;
46 virtual void SDigits2Digits() ;
47 virtual Int_t IsVersion(void) const {
48 // Gives the version number
49 return 1 ;
50 }
51
52 virtual void ResetReconstruction() ; // Reset reconstructed objects
f444a19f 53 void SetReconstructioner(AliPHOSReconstructor& Reconstructioner) {
b37750a6 54 // sets the reconstructionner object to be used
55 fReconstructioner = &Reconstructioner ;
56 }
57 void SetDigitThreshold(Float_t th) { fDigitThreshold = th ; }
58 void SetPpsdEnergyThreshold(Float_t enth) { fPpsdEnergyThreshold = enth ; }
59 void SetCpvEnergyThreshold(Float_t enth) { fCpvEnergyThreshold = enth ; }
60
61 virtual void StepManager(void) ;
62 virtual TString Version(void){
63 // returns the version number
64 return TString("v1") ;
65 }
66
67 AliPHOSv1 & operator = (const AliPHOSv1 & rvalue) {
68 // assignement operator requested by coding convention but not needed
88cb7938 69 assert(0==1) ;
b37750a6 70 return *this ;
71 }
72
73 void CPVDigitize (TLorentzVector p, Float_t *xy, Int_t moduleNumber, TClonesArray *digits) ;
74 Float_t CPVPadResponseFunction(Float_t qhit, Float_t zg, Float_t xg) ;
75 Double_t CPVCumulPadResponse(Double_t x, Double_t y) ;
76
77protected:
78
79 Float_t fDigitThreshold ; // Threshold for the digit registration
80 Float_t fPpsdEnergyThreshold; //PPSD
81 Float_t fCpvEnergyThreshold; //CPV
82 Float_t fPinElectronicNoise ; // Electronic Noise in the PIN
83 Float_t fDigitizeA ; //Parameters of the
84 Float_t fDigitizeB ; //digitization
85 Int_t fnSdigits ;
f444a19f 86 AliPHOSReconstructor * fReconstructioner ; // Clusterization and subtracking procedures
b37750a6 87 AliPHOSTrackSegmentMaker * fTrackSegmentMaker ; // Reconstructioner of the PHOS track segment: 2 x PPSD + 1 x EMC
88
89 ClassDef(AliPHOSv1,1) // Implementation of PHOS manager class for layout EMC+PPSD
90
91};
92
93#endif // AliPHOSV1_H