Class moved to STEERBase.
[u/mrichter/AliRoot.git] / JETAN / testpxcone.C
CommitLineData
99e5fe42 1void testpxcone()
2{
3 gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libJETAN");
4
5 // define reader header
6 AliJetESDReaderHeader *jrh = new AliJetESDReaderHeader();
7 jrh->SetComment("testing");
8 jrh->SetDirectory("/home/work/alice/data/hij_central");
9 jrh->SetPattern("run00");
10 jrh->SetFirstEvent(0);
11 jrh->SetLastEvent(1);
12 jrh->SetPtCut(2);
13
14 // define reader and set its header
15 AliJetESDReader *jr = new AliJetESDReader();
16 jr->SetReaderHeader(jrh);
17
18 // define jet header, take the defaults
19 AliPxconeJetHeader *jh=new AliPxconeJetHeader();
20 jh->SetComment("Testing jet code");
21
22 // define jet finder. Set its header and reader
23 AliPxconeJetFinder *jf = new AliPxconeJetFinder();
24 jf->SetJetHeader(jh);
25 jf->SetJetReader(jr);
26 jf->SetPlotMode(kTRUE);
27 jf->SetOutputFile("pxcone.root");
28 // do the job
29 jf->Run();
30}