]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/JET/macros/HLTJetReconstruction.C
updated macro
[u/mrichter/AliRoot.git] / HLT / JET / macros / HLTJetReconstruction.C
CommitLineData
33daad3d 1/**
2 * @file HLTJetReconstruction.C
3 * @brief Macro for testing HLT Jet Reconstruction
4 *
5 * This macro uses the ESDMCEventPublisher to publish AliMCEvents and AliESDEvents.
6 * The processing is done be JetFinder's
7 * Results are written to disk by a rootfile writer
8 *
9 * @author thaeder@kip.uni-heidelberg.de
10 * @ingroup alihlt_jet
11 */
12
13/** HLTJetReconstruction test macro
14 * @param nEvents Number of events which should be processed
15 */
16void HLTJetReconstruction(Int_t nEvents=1) {
17
18 TString writerInput;
19 TString arg;
20
21 // this is just a tool to switch the logging systems
22 AliHLTLogging log;
e0677301 23 log.SwitchAliLog(0);
33daad3d 24
25 AliHLTSystem gHLT;
26 gHLT.SetGlobalLoggingLevel(0x7F);
27 gHLT.LoadComponentLibraries("libAliHLTUtil.so");
28 gHLT.LoadComponentLibraries("libAliHLTJET.so");
29
e0677301 30 gHLT.LoadComponentLibraries("libESD.so");
31 gHLT.LoadComponentLibraries("libSTEER.so");
32 gHLT.LoadComponentLibraries("libSTEERBase.so");
33 gHLT.LoadComponentLibraries("libAOD.so");
34 gHLT.LoadComponentLibraries("libANALYSIS.so");
35 gHLT.LoadComponentLibraries("libANALYSISalice.so");
36 gHLT.LoadComponentLibraries("libJETAN.so");
37 gHLT.LoadComponentLibraries("libJETANMC.so");
38
39 // ----------------------------//
33daad3d 40 // - - //
41 // -- Publisher Components -- //
42 // - - //
e0677301 43 // ----------------------------//
33daad3d 44
9b744e18 45 arg.Form("-entrytype MCFAST -dataspec 0x0000001F -datapath /home/jthaeder/jet/data/HEAD_2009-03-17/FastGen/kPythia6Jets104_125_14TeV/JET-ETA=-0.2,0.2_JET-ET=50,1000_R=0.4_10ev");
46
47
48
49// jet/data/v4-16-Rev-01/FastGen/kPythia6Jets104_125_14TeV/JET-ETA=-0.2,0.2_JET-ET=50,1000_R=0.4_10ev");
33daad3d 50
51 // -- The ESDMCEventPublisher
52 AliHLTConfiguration ESDMCEventPublisher("ESDMCEventPublisher", "ESDMCEventPublisher",
53 NULL, arg.Data() );
54
55 if (!writerInput.IsNull()) writerInput+=" ";
56 writerInput+="ESDMCEventPublisher";
e0677301 57
58 // ----------------------------//
33daad3d 59 // - - //
60 // -- Processing Components -- //
61 // - - //
e0677301 62 // ----------------------------//
63
64 // -- ConeJetFinder
9b744e18 65
66 AliHLTConfiguration jetFinder("JETConeJet", "JETConeJetFinder",
67 "ESDMCEventPublisher","");
68
69 if (!writerInput.IsNull()) writerInput+=" ";
70 writerInput+="JETConeJet";
71
e0677301 72
9b744e18 73 // -- FastJetFinder
74 /*
e0677301 75 AliHLTConfiguration jetFinder("JETFastJet", "JETFastJetFinder",
33daad3d 76 "ESDMCEventPublisher","");
77
78 if (!writerInput.IsNull()) writerInput+=" ";
e0677301 79 writerInput+="JETFastJet";
9b744e18 80 */
e0677301 81 // ----------------------------//
33daad3d 82 // - - //
83 // -- Sink Components -- //
84 // - - //
e0677301 85 // ----------------------------//
33daad3d 86
87 // -- The RootFileWriter
88 AliHLTConfiguration rootWriter("RootWriter", "ROOTFileWriter",
89 writerInput.Data(), "-datafile event");
90
91
92 // - - //
93 // -- Run -- //
94 // - - //
95
96 gHLT.BuildTaskList("RootWriter");
97 gHLT.Run(nEvents);
98
99}