set minimum pT for dicing (M. Verweij)
[u/mrichter/AliRoot.git] / JETAN / ConfigJetAnalysisCDF.C
CommitLineData
98178771 1AliJetFinder* ConfigJetAnalysis()
2{
3 //
4 // Configuration goes here
9e6b364d 5 //
98178771 6 printf("ConfigJetAnalysis() \n");
9e6b364d 7
98178771 8 // Reader Header
9 AliJetESDReaderHeader *jrh = new AliJetESDReaderHeader();
10 jrh->SetComment("Testing");
11 jrh->SetFirstEvent(0);
12 jrh->SetLastEvent(40000);
9e6b364d 13 jrh->SetFiducialEta (-0.9,0.9) ;
14 jrh->SetPtCut(0.5);
98178771 15 //jrh->SetReadSignalOnly(kFALSE);
16 // Define reader and set its header
9e6b364d 17
98178771 18 // ESD Reader
19 AliJetESDReader *er = new AliJetESDReader();
20 er->SetReaderHeader(jrh);
9e6b364d 21
98178771 22 // Define jet header
23 AliCdfJetHeader * jh = new AliCdfJetHeader();
24 jh->SetRadius(0.7);
9e6b364d 25 cout << "Radius = " << jh->GetRadius() << endl;
26
27 jh->SetMinPartJet(1);
28 cout << "Min Part Jet = " << jh->GetMinPartJet ();
29
30 // Cuts in Pt of Jets
31 jh->SetJetPtCut ( 0. );
32// jh->SetJetPtCut ( 2. );
33// jh->SetJetPtCut ( 5. );
34// jh->SetJetPtCut ( 30. );
35
36 jh->SetDebugCDF( true ) ;
37
38
39
98178771 40 // Define jet finder
41 AliCdfJetFinder *jetFinder = new AliCdfJetFinder();
42 jetFinder->SetJetHeader(jh);
43 jetFinder->SetJetReader(er);
9e6b364d 44// jetFinder->SetOutputFile("jets.root");
45
98178771 46 return jetFinder;
47}
9e6b364d 48