forked from alisw/AliPhysics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfigJetAnalysisUA1.C
59 lines (53 loc) · 1.88 KB
/
ConfigJetAnalysisUA1.C
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
AliJetFinder* ConfigJetAnalysis()
{
//
// Configuration goes here
//
printf("ConfigJetAnalysis() \n");
// Define the grids
AliJetGrid *grid = new AliJetGrid(419,119,0.,2*TMath::Pi(),-0.9,0.9);
grid->SetGridType(1);
grid->InitParams(80.*TMath::Pi()/180,190.*TMath::Pi()/180,-0.7,0.7);
grid->SetMatrixIndexes();
grid->SetIndexIJ();
AliJetGrid *grid2 = new AliJetGrid(131,95,80.*TMath::Pi()/180.,190.*TMath::Pi()/180.,-0.7,0.7);
grid2->SetGridType(0);
grid2->SetMatrixIndexes();
grid2->SetIndexIJ();
// Define ESD reader header
AliJetESDReaderHeader *jrh = new AliJetESDReaderHeader();
jrh->SetComment("Testing");
jrh->SetPtCut(.0);
jrh->SetReadSignalOnly(kFALSE);
jrh->SetReadBkgdOnly(kFALSE);
// Detector options: 0 = Charged particles only (MomentumArray)
// 1 = Charged particles only (UnitArray)
// 2 = Neutral cells only (UnitArray)
// 3 = Charged particles + neutral cells (UnitArray)
jrh->SetDetector(0);
jrh->SetDebug(0);
jrh->SetFiducialEta(-0.9,0.9);
jrh->SetFiducialPhi(0,2*TMath::Pi());
// Define reader and set its header
AliJetESDReader *er = new AliJetESDReader();
er->SetReaderHeader(jrh);
er->SetTPCGrid(grid);
er->SetEMCalGrid(grid2);
// Define jet header
AliUA1JetHeaderV1 *jh=new AliUA1JetHeaderV1();
jh->SetComment("UA1 jet code with default parameters");
jh->BackgMode(0);
jh->SetRadius(1.0);
jh->SetEtSeed(2.);
jh->SetLegoNbinPhi(420.);
jh->SetLegoNbinEta(120.);
jh->SetLegoEtaMin(-0.9);
jh->SetLegoEtaMax(+0.9);
jh->SetMinJetEt(10.);
// Define jet finder. Set its header and reader
jetFinder = new AliUA1JetFinderV2();
jetFinder->SetJetHeader(jh);
jetFinder->SetJetReader(er);
jetFinder->SetPlotMode(kTRUE);
return jetFinder;
}