]>
Commit | Line | Data |
---|---|---|
a55e4f1d | 1 | // $Id$ |
2 | ||
3 | AliEMCALTenderSupply* ConfigEmcalTenderSupply( | |
a55e4f1d | 4 | Bool_t timeCut = kTRUE, |
5 | Bool_t distBC = kTRUE, | |
6 | Bool_t recalibClus = kTRUE, | |
7 | Bool_t recalcClusPos = kTRUE, | |
8 | Bool_t nonLinearCorr = kTRUE, | |
ab11721c | 9 | Bool_t remExotic = kTRUE, |
10 | Bool_t fidRegion = kFALSE, | |
11 | Bool_t calibTime = kTRUE) | |
a55e4f1d | 12 | { |
13 | AliEMCALTenderSupply *EMCALSupply = new AliEMCALTenderSupply("EMCALtender"); | |
14 | EMCALSupply->SetDebugLevel(2); | |
15 | ||
16 | AliEMCALRecParam *params = new AliEMCALRecParam(); | |
17 | params->SetClusteringThreshold(0.1); // 100 MeV | |
e5f84b1e | 18 | params->SetMinECut(0.05); //50 MeV |
a55e4f1d | 19 | params->SetW0(4.5); |
20 | if (timeCut) { | |
e5f84b1e | 21 | params->SetTimeCut(1e6); //Open this cut for AODs |
22 | params->SetTimeMin(-1); //Open this cut for AODs | |
23 | params->SetTimeMax(1e6); //Open this cut for AODs | |
a55e4f1d | 24 | } |
25 | EMCALSupply->SetRecParam(params); | |
26 | ||
a55e4f1d | 27 | if (distBC) |
28 | EMCALSupply->SwitchOnRecalDistBadChannel(); | |
29 | else | |
30 | EMCALSupply->SwitchOffRecalDistBadChannel(); | |
31 | ||
32 | if (recalibClus) | |
33 | EMCALSupply->SwitchOnReCalibrateCluster(); | |
34 | else | |
35 | EMCALSupply->SwitchOffReCalibrateCluster(); | |
36 | ||
37 | if (recalcClusPos) | |
38 | EMCALSupply->SwitchOnRecalculateClusPos(); | |
39 | else | |
40 | EMCALSupply->SwitchOffRecalculateClusPos(); | |
41 | ||
42 | if (nonLinearCorr) { | |
43 | EMCALSupply->SetNonLinearityFunction(AliEMCALTenderSupply::kBeamTestCorrected); | |
44 | EMCALSupply->SwitchOnNonLinearityCorrection(); | |
45 | } | |
46 | else { | |
47 | EMCALSupply->SwitchOffNonLinearityCorrection(); | |
48 | } | |
49 | ||
50 | if (remExotic) | |
51 | EMCALSupply->SwitchOnClusterExoticChannelCheck(); | |
52 | else | |
53 | EMCALSupply->SwitchOffClusterExoticChannelCheck(); | |
54 | ||
55 | if (fidRegion) | |
56 | EMCALSupply->SwitchOnCellFiducialRegion(); | |
57 | else | |
58 | EMCALSupply->SwitchOffCellFiducialRegion(); | |
59 | ||
ab11721c | 60 | if (calibTime) |
61 | EMCALSupply->SwitchOnCalibrateTime(); | |
62 | else | |
63 | EMCALSupply->SwitchOffCalibrateTime(); | |
64 | ||
a55e4f1d | 65 | EMCALSupply->SetMass(0.139); |
a55e4f1d | 66 | EMCALSupply->SwitchOnCutEtaPhiSeparate(); |
67 | EMCALSupply->SetEtaCut(0.025); | |
68 | EMCALSupply->SetPhiCut(0.05); | |
69 | ||
70 | return EMCALSupply; | |
71 | } |