coverity fixes
[u/mrichter/AliRoot.git] / JETAN / ConfigJetAnalysis.C
CommitLineData
68c9be9a 1AliJetFinder* ConfigJetAnalysis()
2{
3 //
4 // Configuration goes here
5 //
6 printf("ConfigJetAnalysis() \n");
7 AliJetESDReaderHeader *jrh = new AliJetESDReaderHeader();
8 jrh->SetComment("Testing");
9 jrh->SetFirstEvent(0);
10 jrh->SetLastEvent(1000);
11 jrh->SetPtCut(0.);
12 jrh->SetReadSignalOnly(kFALSE);
13 // Define reader and set its header
14 AliJetESDReader *er = new AliJetESDReader();
15 er->SetReaderHeader(jrh);
16
17
18 // Define jet header
19 AliUA1JetHeaderV1 *jh=new AliUA1JetHeaderV1();
20 jh->SetComment("UA1 jet code with default parameters");
21 jh->BackgMode(0);
22 jh->SetRadius(1.0);
23 jh->SetEtSeed(2.);
24 jh->SetLegoNbinPhi(420.);
25 jh->SetLegoNbinEta(120.);
26 jh->SetLegoEtaMin(-1.9);
27 jh->SetLegoEtaMax(+1.9);
28 jh->SetMinJetEt(5.);
29
30 // Define jet finder. Set its header and reader
31 jetFinder = new AliUA1JetFinderV1();
32 jetFinder->SetJetHeader(jh);
33 jetFinder->SetJetReader(er);
c1f55a27 34 /*
68c9be9a 35 jetFinder->SetPlotMode(kTRUE);
36 jetFinder->SetOutputFile("jets.root");
c1f55a27 37 */
68c9be9a 38 //
39 return jetFinder;
40}