forked from alisw/AliPhysics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
morsch
committed
May 15, 2009
1 parent
7f50b9d
commit 389e65a
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
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->SetReadSignalOnly(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 | ||
AliFastJetHeaderV1 *jh=new AliFastJetHeaderV1(); | ||
jh->SetComment("Fast jet code with default parameters"); | ||
jh->SetDebug(0); | ||
jh->SetBGMode(0); | ||
jh->SetRparam(1.0); // setup parameters | ||
jh->SetPtMin(20.); | ||
|
||
// Define jet finder. Set its header and reader | ||
jetFinder = new AliFastJetFinder(); | ||
jetFinder->SetJetHeader(jh); | ||
jetFinder->SetJetReader(er); | ||
jetFinder->SetPlotMode(kTRUE); | ||
|
||
return jetFinder; | ||
} |