00001
00002
00003
00004
00005
00006
00007 void RunJetFinderOnPythia(int nevents = 1000,
00008 const char* pythiafile = "/star/u/pibero/iucf/embedding/P10ic/Jet_pp200_2009/pythia/pt11_15_10146091_1.pythia.root",
00009 const char* jetfile = "jets.root")
00010 {
00011
00012 gROOT->Macro("loadMuDst.C");
00013 gROOT->Macro("LoadLogger.C");
00014
00015 gSystem->Load("StDetectorDbMaker");
00016 gSystem->Load("StTpcDb");
00017 gSystem->Load("StDbUtilities");
00018 gSystem->Load("StMcEvent");
00019 gSystem->Load("StMcEventMaker");
00020 gSystem->Load("StDaqLib");
00021 gSystem->Load("StEmcRawMaker");
00022 gSystem->Load("StEmcADCtoEMaker");
00023 gSystem->Load("StEpcMaker");
00024 gSystem->Load("StEmcSimulatorMaker");
00025 gSystem->Load("StDbBroker");
00026 gSystem->Load("St_db_Maker");
00027 gSystem->Load("StEEmcUtil");
00028 gSystem->Load("StEEmcDbMaker");
00029 gSystem->Load("StSpinDbMaker");
00030 gSystem->Load("StEmcTriggerMaker");
00031 gSystem->Load("StTriggerUtilities");
00032 gSystem->Load("StMCAsymMaker");
00033 gSystem->Load("StRandomSelector");
00034 gSystem->Load("libfastjet.so");
00035 gSystem->Load("libCDFConesPlugin.so");
00036 gSystem->Load("libEECambridgePlugin.so");
00037 gSystem->Load("libJadePlugin.so");
00038 gSystem->Load("libNestedDefsPlugin.so");
00039 gSystem->Load("libSISConePlugin.so");
00040 gSystem->Load("StJetFinder");
00041 gSystem->Load("StJetSkimEvent");
00042 gSystem->Load("StJets");
00043 gSystem->Load("StJetEvent");
00044 gSystem->Load("StJetMaker");
00045 gSystem->Load("StTriggerFilterMaker");
00046
00047 cout << "Loading shared libraries done" << endl;
00048
00049
00050 StChain* chain = new StChain;
00051
00052
00053 St_db_Maker* starDb = new St_db_Maker("StarDb","MySQL:StarDb");
00054 starDb->SetDateTime(20090628,53220);
00055
00056
00057 StEEmcDbMaker* eemcDb = new StEEmcDbMaker;
00058
00059
00060 St_pythia_Maker* pythia = new St_pythia_Maker;
00061 pythia->SetFile(pythiafile);
00062
00063
00064 StPythiaFourPMaker* pythia4pMaker = new StPythiaFourPMaker;
00065
00066
00067 StJetMaker2009* jetmaker = new StJetMaker2009;
00068 jetmaker->setJetFile(jetfile);
00069
00070
00071
00072
00073 StAnaPars* anaparsParticle = new StAnaPars;
00074 anaparsParticle->useMonteCarlo = true;
00075
00076
00077 anaparsParticle->addMcCut(new StjMCParticleCutStatus(1));
00078
00079
00080 anaparsParticle->addJetCut(new StProtoJetCutPt(3,200));
00081 anaparsParticle->addJetCut(new StProtoJetCutEta(-100,100));
00082
00083
00084
00085
00086 StAnaPars* anaparsParton = new StAnaPars;
00087 anaparsParton->useMonteCarlo = true;
00088
00089
00090 anaparsParton->addMcCut(new StjMCParticleCutParton);
00091
00092
00093 anaparsParton->addJetCut(new StProtoJetCutPt(3,200));
00094 anaparsParton->addJetCut(new StProtoJetCutEta(-100,100));
00095
00096
00097
00098 for (float coneRadius = 0.4; coneRadius < 0.8; coneRadius += 0.1) {
00099
00100 StConePars* conepars = new StConePars;
00101 conepars->setGridSpacing(105,-3.0,3.0,120,-TMath::Pi(),TMath::Pi());
00102 conepars->setConeRadius(coneRadius);
00103 conepars->setSeedEtMin(0.5);
00104 conepars->setAssocEtMin(0.1);
00105 conepars->setSplitFraction(0.5);
00106 conepars->setPerformMinimization(true);
00107 conepars->setAddMidpoints(true);
00108 conepars->setRequireStableMidpoints(true);
00109 conepars->setDoSplitMerge(true);
00110 conepars->setDebug(false);
00111
00112 int iConeRadius = coneRadius*100;
00113 jetmaker->addBranch(Form("ParticleConeJetsR%03d",iConeRadius),anaparsParticle,conepars);
00114 jetmaker->addBranch(Form("PartonConeJetsR%03d",iConeRadius),anaparsParton,conepars);
00115 }
00116
00117
00118
00119
00120 chain->Init();
00121 chain->EventLoop(nevents);
00122 }