]>
Commit | Line | Data |
---|---|---|
b0f5e3fc | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
2aea926d | 3 | * * |
b0f5e3fc | 4 | * Author: The ALICE Off-line Project. * |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
b9d0a01d | 15 | |
090026bf | 16 | /* $Id$ */ |
17 | ||
fcf95fc7 | 18 | ////////////////////////////////////////////////////// |
19 | // Base response class forITS // | |
20 | // It is used to set static data members // | |
21 | // connected to parameters equal for all // | |
22 | // the modules // | |
703a4e51 | 23 | // // |
24 | // // | |
25 | ////////////////////////////////////////////////////// | |
50d05d7b | 26 | |
090026bf | 27 | #include <TMath.h> |
28 | ||
29 | #include "AliITSresponseSDD.h" | |
fcf95fc7 | 30 | |
703a4e51 | 31 | const Int_t AliITSresponseSDD::fgkMaxAdcDefault = 1024; |
4bfbde86 | 32 | const Float_t AliITSresponseSDD::fgkDynamicRangeDefault = 132.; |
33 | const Float_t AliITSresponseSDD::fgkfChargeLossDefault = 0; | |
fcf95fc7 | 34 | const Float_t AliITSresponseSDD::fgkDiffCoeffDefault = 3.23; |
35 | const Float_t AliITSresponseSDD::fgkDiffCoeff1Default = 30.; | |
703a4e51 | 36 | const TString AliITSresponseSDD::fgkParam1Default = "same"; |
37 | const TString AliITSresponseSDD::fgkParam2Default = "same"; | |
20f3f947 | 38 | const TString AliITSresponseSDD::fgkOptionDefault = "ZS"; |
4bfbde86 | 39 | const Float_t AliITSresponseSDD::fgkDriftSpeedDefault = 7.3; |
20f3f947 | 40 | const Float_t AliITSresponseSDD::fgkTimeOffsetDefault = 53.57; |
a66a0eb6 | 41 | const Float_t AliITSresponseSDD::fgkADC2keVDefault = 5.243; |
4bfbde86 | 42 | const Float_t AliITSresponseSDD::fgkNsigmasDefault = 3.; |
703a4e51 | 43 | const Int_t AliITSresponseSDD::fgkNcompsDefault = 121; |
fcf95fc7 | 44 | |
48058160 | 45 | ClassImp(AliITSresponseSDD) |
50d05d7b | 46 | |
fcf95fc7 | 47 | //_________________________________________________________________________ |
4bfbde86 | 48 | AliITSresponseSDD::AliITSresponseSDD(): |
49 | AliITSresponse(), | |
50 | fJitterError(0.), | |
51 | fDynamicRange(0.), | |
52 | fChargeLoss(0.), | |
a66a0eb6 | 53 | fTimeOffset(fgkTimeOffsetDefault), |
54 | fADC2keV(fgkADC2keVDefault), | |
4bfbde86 | 55 | fElectronics(0), |
56 | fMaxAdc(fgkMaxAdcDefault), | |
57 | fNsigmas(fgkNsigmasDefault), | |
58 | fGaus(), | |
05f403a0 | 59 | fNcomps(fgkNcompsDefault), |
4bfbde86 | 60 | fOption(), |
61 | fParam1(), | |
62 | fParam2() { | |
50d05d7b | 63 | // default constructor |
3d2c9d72 | 64 | fGaus = 0; |
3d2c9d72 | 65 | SetDiffCoeff(fgkDiffCoeffDefault,fgkDiffCoeff1Default); |
fdef5715 | 66 | // SetNLookUp(fgkNcompsDefault); |
fcf95fc7 | 67 | |
3d2c9d72 | 68 | SetJitterError(); |
69 | SetElectronics(); | |
70 | SetDynamicRange(fgkDynamicRangeDefault); | |
71 | SetChargeLoss(fgkfChargeLossDefault); | |
3d2c9d72 | 72 | SetParamOptions(fgkParam1Default.Data(),fgkParam2Default.Data()); |
3d2c9d72 | 73 | SetZeroSupp(fgkOptionDefault); |
fcf95fc7 | 74 | SetOutputOption(); |
9de0700b | 75 | } |
fcf95fc7 | 76 | |
77 | ||
48058160 | 78 | //______________________________________________________________________ |
fcf95fc7 | 79 | AliITSresponseSDD::~AliITSresponseSDD() { |
80 | ||
81 | if(fGaus) delete fGaus; | |
b0f5e3fc | 82 | } |
fcf95fc7 | 83 | |
703a4e51 | 84 | |
fcf95fc7 | 85 | //________________________________________________________________________ |
703a4e51 | 86 | void AliITSresponseSDD::SetNLookUp(Int_t p1){ |
87 | // Set number of sigmas over which cluster disintegration is performed | |
88 | fNcomps=p1; | |
fdef5715 | 89 | if (fGaus) delete fGaus; |
703a4e51 | 90 | fGaus = new TArrayF(fNcomps+1); |
91 | for(Int_t i=0; i<=fNcomps; i++) { | |
4bfbde86 | 92 | Float_t x = -fNsigmas + (2.*i*fNsigmas)/(fNcomps-1); |
703a4e51 | 93 | (*fGaus)[i] = exp(-((x*x)/2)); |
703a4e51 | 94 | } |
95 | } |