Skip to content

Commit

Permalink
Config for charged + neutral
Browse files Browse the repository at this point in the history
  • Loading branch information
morsch committed May 15, 2009
1 parent 7f50b9d commit 389e65a
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions JETAN/ConfigJetAnalysisFastJet.C
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;
}

0 comments on commit 389e65a

Please sign in to comment.