1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
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
23 // Fill the analysis containers for ESD or AOD
24 // Note: Adapted for AliAnalysisTaskSE
27 #include "AliJCORRANSetup.h"
33 //___________________________________________________________________
35 AliJCORRANSetup::AliJCORRANSetup():
36 // GENERAL SELECTIONS:
39 // Trigger SELECTIONS:
40 fOffLineTriggThreshold(-999),
41 fOffLinePi0TriggThreshold(-999),
42 fOffLineHadronTriggThreshold(-999),
43 fOffLineAccHadronTriggThreshold(-999),
44 fMinBiasScaleFact(-999),
45 // CLUSTER SELECTIONS:
62 //___________________________________________________________________
64 AliJCORRANSetup::AliJCORRANSetup(const char *SelectionsFile):
65 // GENERAL SELECTIONS:
68 // Trigger SELECTIONS:
69 fOffLineTriggThreshold(-999),
70 fOffLinePi0TriggThreshold(-999),
71 fOffLineHadronTriggThreshold(-999),
72 fOffLineAccHadronTriggThreshold(-999),
73 fMinBiasScaleFact(-999),
74 // CLUSTER SELECTIONS:
90 //STEP 1: Get the input file that contains the correlation setup
92 ifstream selfile(SelectionsFile,ios::in);
95 cerr << endl << "AliJCORRANSetup::AliJCORRANSetup" << endl
96 << "ERROR: Cannot open selections file "
97 << SelectionsFile << endl;
102 >> fSpecies >> fComment
103 >> fVtxRange >> fComment
104 >> fWarnmapfile >> 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
118 >> fTrkPtMin >> fComment
119 >> fTrkPtMax >> fComment;
120 cout<< "Selections Loaded from File: " << SelectionsFile << endl;
125 void AliJCORRANSetup::PrintOut(){
127 cout << "*******************************************************************"
129 << " CORRELATION SELECTIONS:" << endl
130 << "General Selections:" << endl
131 << "Colliding fSpecies: " << fSpecies << endl
132 << "Vertex Range: " << fVtxRange << endl
133 << "WarnMap File : "<< fWarnmapfile << endl
134 << "*******************************************************************"
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 <<"********************************************************************"
150 << " Track Selections:" << endl
151 << "Track Transverse Momentum: " << fTrkPtMin
152 << "->" << fTrkPtMax << endl
153 << "***************************************************************"