]>
Commit | Line | Data |
---|---|---|
2f4cac02 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
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 notifce * | |
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 | **************************************************************************/ | |
15 | ||
16 | // | |
17 | // Implementation Class AliJCorranSetup | |
18 | // Analysis task for high pt particle correlations | |
19 | // author: R.Diaz, J. Rak, D.J. Kim | |
20 | // ALICE Group University of Jyvaskyla | |
21 | // Finland | |
22 | // | |
23 | // Fill the analysis containers for ESD or AOD | |
24 | // Note: Adapted for AliAnalysisTaskSE | |
25 | ||
26 | ||
27 | #include "AliJCORRANSetup.h" | |
28 | #include <iostream> | |
29 | #include <fstream> | |
30 | ||
31 | using namespace std; | |
32 | ||
33 | //___________________________________________________________________ | |
34 | ||
35 | AliJCORRANSetup::AliJCORRANSetup(): | |
36 | // GENERAL SELECTIONS: | |
37 | fSpecies(" "), | |
38 | fVtxRange(-999), | |
39 | // Trigger SELECTIONS: | |
40 | fOffLineTriggThreshold(-999), | |
41 | fOffLinePi0TriggThreshold(-999), | |
42 | fOffLineHadronTriggThreshold(-999), | |
43 | fOffLineAccHadronTriggThreshold(-999), | |
44 | fMinBiasScaleFact(-999), | |
45 | // CLUSTER SELECTIONS: | |
46 | fClusEnerMin(-999), | |
47 | fClusEnerMax(-999), | |
48 | fChi2Cut(-999), | |
49 | fProbPhotCut(-999), | |
50 | fClusNTowMin(-999), | |
51 | fClusNTowMax(-999), | |
52 | // TRACK SELECTIONS: | |
53 | fTrkPtMin(-999), | |
54 | fTrkPtMax(-999), | |
55 | // External file | |
56 | fWarnmapfile(" "), | |
57 | fComment(" ") | |
58 | { | |
59 | //constructor | |
60 | } | |
61 | ||
62 | //___________________________________________________________________ | |
63 | ||
64 | AliJCORRANSetup::AliJCORRANSetup(const char *SelectionsFile): | |
65 | // GENERAL SELECTIONS: | |
66 | fSpecies(" "), | |
67 | fVtxRange(-999), | |
68 | // Trigger SELECTIONS: | |
69 | fOffLineTriggThreshold(-999), | |
70 | fOffLinePi0TriggThreshold(-999), | |
71 | fOffLineHadronTriggThreshold(-999), | |
72 | fOffLineAccHadronTriggThreshold(-999), | |
73 | fMinBiasScaleFact(-999), | |
74 | // CLUSTER SELECTIONS: | |
75 | fClusEnerMin(-999), | |
76 | fClusEnerMax(-999), | |
77 | fChi2Cut(-999), | |
78 | fProbPhotCut(-999), | |
79 | fClusNTowMin(-999), | |
80 | fClusNTowMax(-999), | |
81 | // TRACK SELECTIONS: | |
82 | fTrkPtMin(-999), | |
83 | fTrkPtMax(-999), | |
84 | // External file | |
85 | fWarnmapfile(" "), | |
86 | fComment(" ") | |
87 | { | |
88 | //default constructor | |
89 | // | |
90 | //STEP 1: Get the input file that contains the correlation setup | |
91 | // | |
92 | ifstream selfile(SelectionsFile,ios::in); | |
93 | if(!selfile) | |
94 | { | |
95 | cerr << endl << "AliJCORRANSetup::AliJCORRANSetup" << endl | |
96 | << "ERROR: Cannot open selections file " | |
97 | << SelectionsFile << endl; | |
98 | } | |
99 | else | |
100 | { | |
101 | selfile >> fComment | |
102 | >> fSpecies >> fComment | |
103 | >> fVtxRange >> fComment | |
104 | >> fWarnmapfile >> fComment | |
105 | >> fComment | |
106 | >> fOffLineTriggThreshold >> fComment | |
107 | >> fOffLinePi0TriggThreshold >> fComment | |
108 | >> fOffLineHadronTriggThreshold >> fComment | |
109 | >> fOffLineAccHadronTriggThreshold >> fComment | |
110 | >> fMinBiasScaleFact >> fComment | |
111 | >> fClusEnerMin >> fComment | |
112 | >> fClusEnerMax >> fComment | |
113 | >> fChi2Cut >> fComment | |
114 | >> fProbPhotCut >> fComment | |
115 | >> fClusNTowMin >> fComment | |
116 | >> fClusNTowMax >> fComment | |
117 | >> fComment | |
118 | >> fTrkPtMin >> fComment | |
119 | >> fTrkPtMax >> fComment; | |
120 | cout<< "Selections Loaded from File: " << SelectionsFile << endl; | |
121 | } | |
122 | ||
123 | } | |
124 | ||
125 | void AliJCORRANSetup::PrintOut(){ | |
126 | //print object | |
127 | cout << "*******************************************************************" | |
128 | << endl | |
129 | << " CORRELATION SELECTIONS:" << endl | |
130 | << "General Selections:" << endl | |
131 | << "Colliding fSpecies: " << fSpecies << endl | |
132 | << "Vertex Range: " << fVtxRange << endl | |
133 | << "WarnMap File : "<< fWarnmapfile << endl | |
134 | << "*******************************************************************" | |
135 | << endl; | |
136 | cout<< " EmCal Cluster Selections:" << endl | |
137 | << "fOffLineTriggThreshold " << fOffLineTriggThreshold << endl | |
138 | << "fOffLinePi0TriggThreshold " << fOffLinePi0TriggThreshold << endl | |
139 | << "fOffLineHadronTriggThreshold " << fOffLineHadronTriggThreshold << endl | |
140 | << "fOffLineAccHadronTriggThreshold " << fOffLineAccHadronTriggThreshold << endl | |
141 | << "fMinBiasScaleFact " << fMinBiasScaleFact <<endl | |
142 | << "EmCal Cluster Energy Range: " << fClusEnerMin | |
143 | << "->" << fClusEnerMax << endl | |
144 | << "Cluster Shape (Chi2 Cut): " << fChi2Cut << endl; | |
145 | cout<< "Photon probability (ProbPhot Cut): " << fProbPhotCut << endl; | |
146 | cout<< "Cluster Number Of Towers: " << fClusNTowMin | |
147 | << "->" << fClusNTowMax << endl | |
148 | <<"********************************************************************" | |
149 | << endl | |
150 | << " Track Selections:" << endl | |
151 | << "Track Transverse Momentum: " << fTrkPtMin | |
152 | << "->" << fTrkPtMax << endl | |
153 | << "***************************************************************" | |
154 | << endl; | |
155 | } | |
156 |