Line data Source code
1 : #ifndef ALIZDCV4_H
2 : #define ALIZDCV4_H
3 : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 : * See cxx source for full Copyright notice */
5 :
6 : ////////////////////////////////////////////////
7 : // Manager and hits classes for set: ZDC //
8 : ////////////////////////////////////////////////
9 :
10 : #include "AliZDC.h"
11 :
12 : //____________________________________________________________________________
13 : class AliZDCv4 : public AliZDC {
14 :
15 : public:
16 : AliZDCv4();
17 : AliZDCv4(const char *name, const char *title);
18 78 : virtual ~AliZDCv4() {}
19 : virtual void CreateGeometry();
20 : virtual void CreateBeamLine();
21 : virtual void CreateZDC();
22 : virtual void CreateMaterials();
23 0 : virtual Int_t IsVersion() const {return 1;}
24 : virtual void AddAlignableVolumes() const;
25 : virtual void Init();
26 : virtual void InitTables();
27 : virtual void StepManager();
28 :
29 : void SetVCollSideCAperture(Float_t aperture)
30 0 : {if(aperture<3.5) fVCollSideCAperture = aperture;
31 0 : else printf("\n\n AliZDCv4: WARNING! TCLIA aperture set to max. value: 3.5 cm\n\n");}
32 : void SetVCollSideCApertureNeg(Float_t aperture)
33 0 : {if(aperture<3.5) fVCollSideCApertureNeg = aperture;
34 0 : else printf("\n\n AliZDCv4: WARNING! TCLIA aperture set to max. value: -3.5 cm\n\n");}
35 0 : void SetVCollSideCCentre(Float_t centre) {fVCollSideCCentreY = centre;}
36 :
37 : virtual void SetTCDDAperturePos(Float_t aperture)
38 0 : {if(aperture<=2.2) fTCDDAperturePos = aperture;
39 0 : else printf("\n\n AliZDCv4: WARNING! TCDD pos. aperture set to max. value: 2.0 cm\n\n");}
40 : virtual void SetTCDDApertureNeg(Float_t aperture)
41 0 : {if(aperture<=2.4) fTCDDApertureNeg = aperture;
42 0 : else printf("\n\n AliZDCv4: WARNING! TCDD neg. aperture set to max. value: -2.0 cm\n\n");}
43 :
44 :
45 : virtual void SetTDIAperturePos(Float_t aperture)
46 0 : {if(aperture<=6.) fTDIAperturePos = aperture;
47 0 : else printf("\n\n AliZDCv4: WARNING! TDI pos. aperture set to max. value: 5.5 cm\n\n");}
48 : virtual void SetTDIApertureNeg(Float_t aperture)
49 0 : {if(aperture<=6.) fTDIApertureNeg = aperture;
50 0 : else printf("\n\n AliZDCv4: WARNING! TDI neg. aperture set to max. value: -5.5 cm\n\n");}
51 :
52 0 : void SetLumiLength(Float_t length) {fLumiLength = length;}
53 :
54 0 : void SetYZNC(Float_t yZNC) {fPosZNC[1] = yZNC;}
55 0 : void SetYZNA(Float_t yZNA) {fPosZNA[1] = yZNA;}
56 :
57 0 : void SetYZPC(Float_t yZPC) {fPosZPC[1] = yZPC;}
58 0 : void SetYZPA(Float_t yZPA) {fPosZPA[1] = yZPA;}
59 :
60 0 : void SetSwitchOnTrackreferences() {fSwitchOnTrackRef = kTRUE;}
61 :
62 : protected:
63 :
64 : // Sensitive media
65 : Int_t fMedSensF1; // Sensitive medium F1
66 : Int_t fMedSensF2; // Sensitive medium F2
67 : Int_t fMedSensZP; // Sensitive medium for ZP
68 : Int_t fMedSensZN; // Sensitive medium for ZN
69 : Int_t fMedSensZEM; // Sensitive medium for EM ZDC
70 : Int_t fMedSensGR; // Other sensitive medium
71 : Int_t fMedSensPI; // Beam pipe and magnet coils
72 : Int_t fMedSensTDI; // Cu materials along beam pipe
73 : Int_t fMedSensVColl; // W jaws of vertical collimators
74 : Int_t fMedSensLumi; // luminometer medium
75 :
76 : // Parameters for light tables
77 : Int_t fNalfan; // Number of Alfa (neutrons)
78 : Int_t fNalfap; // Number of Alfa (protons)
79 : Int_t fNben; // Number of beta (neutrons)
80 : Int_t fNbep; // Number of beta (protons)
81 : Float_t fTablen[4][90][18]; // Neutrons light table
82 : Float_t fTablep[4][90][28]; // Protons light table
83 :
84 : // Parameters for hadronic calorimeters geometry
85 : // NB -> parameters used in CreateZDC() and in StepManager()
86 : // (other parameters are defined in CreateZDC())
87 : Float_t fDimZN[3]; // Dimensions of proton detector
88 : Float_t fDimZP[3]; // Dimensions of proton detector
89 : Float_t fPosZNC[3]; // Position of neutron detector side C
90 : Float_t fPosZNA[3]; // Position of neutron detector side A
91 : Float_t fPosZPC[3]; // Position of proton detector side C
92 : Float_t fPosZPA[3]; // Position of proton detector side A
93 : Float_t fFibZN[3]; // Fibers for neutron detector
94 : Float_t fFibZP[3]; // Fibers for proton detector
95 :
96 : // Parameters for EM calorimeter geometry
97 : // NB -> parameters used in CreateZDC() and in StepManager()
98 : // (other parameters are defined in CreateZDC())
99 : Float_t fPosZEM[3]; // Position of EM detector
100 : Float_t fZEMLength; // ZEM length
101 :
102 : // Parameters for proton accepancy studies
103 : Int_t fpLostITC, fpLostD1C, fpcVCollC, fpDetectedC, fnDetectedC; // Side C
104 : Int_t fpLostITA, fpLostD1A, fpLostTDI, fpcVCollA, fpDetectedA, fnDetectedA; // Side A
105 :
106 : // Apertures to describe beam line elements variable apertures
107 :
108 : // Vertical collimator
109 : Float_t fVCollSideCAperture; // Semi-aperture of TCTVB jaws pos. y dir.
110 : Float_t fVCollSideCApertureNeg; // Semi-aperture of TCTVB jaws neg. y dir (abs. value)
111 : Float_t fVCollSideCCentreY; // Centre of TCTVB jaw apertures
112 :
113 : // TCDD
114 : Float_t fTCDDAperturePos; // TCDD semi-aperture pos. y dir.
115 : Float_t fTCDDApertureNeg; // TCDD semi-aperture neg. y dir. (abs. value)
116 :
117 : // TDI
118 : Float_t fTDIAperturePos; // TDI semi-aperture pos. y dir.
119 : Float_t fTDIApertureNeg; // TDI semi-aperture neg. y dir. (abs. value)
120 :
121 : Float_t fLumiLength; // Luminometer length
122 : Bool_t fSwitchOnTrackRef; // to switch on/off storing of track references
123 :
124 140 : ClassDef(AliZDCv4, 2) // Zero Degree Calorimeter version 1
125 : };
126 :
127 : #endif
|