![]() |
AliPhysics
dcc03a0 (dcc03a0)
|
Public Member Functions | |
FastSim (const char *eg="", ULong_t runNo=0, Double_t bMin=0, Double_t bMax=20, Long64_t nEvents=0, Int_t monitor=0) | |
const char * | FileName () const |
const char * | GetName () const |
const char * | GetTitle () const |
virtual UShort_t | GetSNN () const |
virtual const char * | GetEGTitle () const |
Bool_t | SetupOutput () |
virtual void | SetupSeed () |
virtual Bool_t | SetupGRP () |
virtual Bool_t | SetupGen () |
virtual Bool_t | SetupRun () |
Bool_t | ReadGRPLine () |
void | OverrideGRP () |
void | AddOverride (const TString &field, const TString &value) |
virtual void | Init (TTree *) |
virtual void | Begin (TTree *) |
void | SlaveBegin (TTree *) |
virtual Bool_t | PreEvent (Long64_t iEv) |
virtual Bool_t | ProcessHeader () |
virtual Bool_t | ProcessParticles (Bool_t selected) |
virtual void | PostEvent () |
virtual void | Generate () |
virtual Bool_t | Process (Long64_t iEv) |
virtual void | FinishRun () |
void | SlaveTerminate () |
void | FlushList (TCollection *c, TDirectory *dir) |
void | Terminate () |
TFile * | GetGAlice () |
TFile * | GetKine () |
void | MoveAliceFiles () |
Int_t | Version () const |
ClassDef (FastSim, 3) | |
Static Public Member Functions | |
static Bool_t | LocalRun (Long64_t nev, UInt_t run, const TString &gen, Double_t bMin, Double_t bMax, Int_t monitor, Bool_t verbose, const TString &overrides="") |
static void | ProofLoadLibs () |
static Bool_t | ProofRun (const TUrl &url, Long64_t nev, UInt_t run, const TString &gen, Double_t bMin, Double_t bMax, Int_t monitor=-1, Bool_t verbose=false, const TString &overrides="", const TString &save="none", const char *opt="") |
static Bool_t | Str2KeyVal (const TString &in, TString &key, TString &val, const char sep='=') |
static void | SetOverrides (FastSim *sim, const TString &override) |
static Bool_t | Run (const char *url, const char *opt="") |
Public Attributes | |
Bool_t | fVerbose |
Output file name. More... | |
Int_t | fMonitor |
FastShortHeader | fShortHead |
Parameters | |
TString | fEGName |
Int_t | fRunNo |
Double_t | fBMin |
Double_t | fBMax |
TObject * | fGRP |
TList * | fOverrides |
GRP in one line. More... | |
Long64_t | fNEvents |
GRP setting to override. More... | |
Bool_t | fIsTgtA |
Bool_t | fIsProjA |
True if target beam is nuclei. More... | |
ALICE EG interface | |
True if projectile beam is nuclei | |
AliGenerator * | fGenerator |
AliRunLoader * | fRunLoader |
Event generator. More... | |
AliStack * | fStack |
Loader of trees. More... | |
AliHeader * | fHeader |
Stack of particles. More... | |
Custom output | |
Header handler | |
TTree * | fTree |
TClonesArray * | fParticles |
Custom tree. More... | |
Diagnostics | |
List of particles | |
TList * | fList |
TH1 * | fHEta |
List of outputs. More... | |
TH1 * | fHY |
dN/deta More... | |
TH1 * | fHIpz |
dN/dy More... | |
TH1 * | fHType |
IPz histogram. More... | |
TH1 * | fHCent |
Event type histogram. More... | |
TH1 * | fHB |
Event type histogram. More... | |
TH1 * | fHPhiR |
B histogram. More... | |
TH1 * | fHTime |
Reaction plane. More... | |
Centrality | |
Timing | |
BCentEstimator * | fBEstimator |
TList * | fCentEstimators |
Output files | |
TProofOutputFile * | fProofFile |
TProofOutputFile * | fAliceFile |
Proof output file. More... | |
TProofOutputFile * | fKineFile |
TFile * | fFile |
TString | fFileName |
Output file. More... | |
|
inline |
Constructor
eg | Event generator |
runNo | Run number to simulate |
bMin | Lease impact parameter |
bMax | Largest impact parameter |
nEvents | Number of events |
monitor | Monitor frequency |
Definition at line 123 of file FastSim.C.
Referenced by LocalRun(), and ProofRun().
Add an item to the list of things from GRP to override
Definition at line 664 of file FastSim.C.
Referenced by SetOverrides().
|
inlinevirtual |
Set up job
Reimplemented in EPosSim.
Definition at line 683 of file FastSim.C.
Referenced by EPosSim::Begin(), and LocalRun().
FastSim::ClassDef | ( | FastSim | , |
3 | |||
) |
|
inline |
Definition at line 164 of file FastSim.C.
Referenced by SetupGen(), SetupOutput(), and Terminate().
|
inlinevirtual |
Reimplemented in EPosSim.
Definition at line 1085 of file FastSim.C.
Referenced by SlaveTerminate().
|
inline |
Write a collection to disk, transforming sub-collections to directories.
c | |
dir |
Definition at line 1151 of file FastSim.C.
Referenced by Terminate().
|
inlinevirtual |
|
inlinevirtual |
Get the event generator title
Reimplemented in EPosSim.
Definition at line 243 of file FastSim.C.
Referenced by SetupOutput().
|
inline |
Retrieve the galice.root file from ROOT
Definition at line 1248 of file FastSim.C.
Referenced by SlaveTerminate().
|
inline |
Retrieve the Kinematics.root file from ROOT
Definition at line 1265 of file FastSim.C.
Referenced by SlaveTerminate().
|
inline |
|
inlinevirtual |
Get collision energy either form generator or GRP
Definition at line 222 of file FastSim.C.
Referenced by SetupOutput().
|
inline |
|
inlinevirtual |
|
inlinestatic |
Run this selector as a normal process
nev | Number of events |
run | Run number to anchor in |
gen | Generator |
bMin | Least impact parameter [fm] |
bMax | Largest impact parameter [fm] |
monitor | Monitor frequency [s] |
verbose | Be verbose |
overrides | GRP overrides |
Definition at line 1434 of file FastSim.C.
Referenced by Run().
|
inline |
Move retrieved ALICE files (galice.root and Kinematics.root) to separate su-directories, and create a collection of the TE tree stored in the galice.root files.
Definition at line 1289 of file FastSim.C.
Referenced by Terminate().
|
inline |
Possibly override settings from GRP.
Definition at line 635 of file FastSim.C.
Referenced by Begin(), and SetupGRP().
|
inlinevirtual |
Process one event
iEv | Event number |
Definition at line 1055 of file FastSim.C.
Referenced by LocalRun(), and EPosSim::LocalRun().
|
inlinevirtual |
|
inlinestatic |
Load needed libraries in a proof serssion
Definition at line 1463 of file FastSim.C.
Referenced by ProofRun(), and EPosSim::SetupProof().
|
inlinestatic |
Run this selector in PROOF(Lite)
url | Proof URL |
nev | Number of events |
run | Run number to anchor in |
gen | Generator |
bMin | Least impact parameter [fm] |
bMax | Largest impact parameter [fm] |
monitor | Monitor frequency [s] |
opt | Compilation options |
verbose | Be verbose |
overrides | GRP overrides |
save | Where to save |
Definition at line 1510 of file FastSim.C.
Referenced by Run().
|
inline |
|
inlinestatic |
Run a simulation.
url is the execution URL of the form
PROTOCOL://[HOST[:PORT]]/[?OPTIONS]
Where PROTOCOL is one of
HOST and PORT is only relevant for Proof.
Options is a list of & separated options
url | Exection URL |
opt | Optimization used when compiling |
Definition at line 1648 of file FastSim.C.
Referenced by RunFast().
Definition at line 1574 of file FastSim.C.
Referenced by LocalRun(), and ProofRun().
|
inlinevirtual |
Set-up the generator.
Reimplemented in EPosSim.
Definition at line 495 of file FastSim.C.
Referenced by SlaveBegin().
|
inlinevirtual |
Definition at line 450 of file FastSim.C.
Referenced by SlaveBegin().
|
inline |
Create our outputs
Definition at line 254 of file FastSim.C.
Referenced by SlaveBegin().
|
inlinevirtual |
Setup the generator etc. of the job
Reimplemented in EPosSim.
Definition at line 534 of file FastSim.C.
Referenced by SlaveBegin().
|
inlinevirtual |
Set our seed. This will read a UInt_t worth of data from /dev/urandom
Reimplemented in EPosSim.
Definition at line 439 of file FastSim.C.
Referenced by SlaveBegin().
|
inline |
Set-up this sub-job
Definition at line 741 of file FastSim.C.
Referenced by LocalRun(), and EPosSim::LocalRun().
|
inline |
Finalize this sub-job
Definition at line 1097 of file FastSim.C.
Referenced by LocalRun(), and EPosSim::LocalRun().
|
inlinestatic |
Extract key value pair from string
in | Input string |
key | On return, the key |
val | On return, the value |
sep | Separator between key an value |
Definition at line 1562 of file FastSim.C.
Referenced by Run(), EPosSim::Run(), and SetOverrides().
|
inline |
Final processing of the data
Definition at line 1173 of file FastSim.C.
Referenced by LocalRun(), and EPosSim::LocalRun().
|
inline |
TProofOutputFile* FastSim::fAliceFile |
Proof output file.
Definition at line 1409 of file FastSim.C.
Referenced by SetupRun(), and SlaveTerminate().
BCentEstimator* FastSim::fBEstimator |
Definition at line 1401 of file FastSim.C.
Referenced by Begin(), ProcessHeader(), and EPosSim::ProcessHeader().
Double_t FastSim::fBMax |
Definition at line 1361 of file FastSim.C.
Referenced by SetupGen(), and SetupGRP().
Double_t FastSim::fBMin |
Definition at line 1360 of file FastSim.C.
Referenced by SetupGen(), and SetupGRP().
TList* FastSim::fCentEstimators |
Definition at line 1402 of file FastSim.C.
Referenced by Begin(), EPosSim::Begin(), PostEvent(), EPosSim::PostEvent(), PreEvent(), EPosSim::PreEvent(), ProcessHeader(), EPosSim::ProcessHeader(), ProcessParticles(), EPosSim::ProcessParticles(), SetupOutput(), and Terminate().
TString FastSim::fEGName |
Definition at line 1358 of file FastSim.C.
Referenced by FileName(), SetupGen(), and SetupGRP().
TFile* FastSim::fFile |
Definition at line 1411 of file FastSim.C.
Referenced by SetupOutput(), SlaveTerminate(), and Terminate().
|
mutable |
Output file.
Definition at line 1412 of file FastSim.C.
Referenced by FileName(), SetupGen(), SlaveTerminate(), and Terminate().
AliGenerator* FastSim::fGenerator |
Definition at line 1372 of file FastSim.C.
Referenced by FileName(), FinishRun(), Generate(), GetEGTitle(), GetSNN(), ProcessHeader(), SetupGen(), and SetupRun().
TObject* FastSim::fGRP |
Definition at line 1362 of file FastSim.C.
Referenced by Begin(), FileName(), ReadGRPLine(), and SetupGRP().
TH1* FastSim::fHB |
Event type histogram.
Definition at line 1393 of file FastSim.C.
Referenced by ProcessHeader(), EPosSim::ProcessHeader(), SetupOutput(), and Terminate().
TH1* FastSim::fHCent |
Event type histogram.
Definition at line 1392 of file FastSim.C.
Referenced by ProcessHeader(), EPosSim::ProcessHeader(), SetupOutput(), and Terminate().
AliHeader* FastSim::fHeader |
Stack of particles.
Definition at line 1375 of file FastSim.C.
Referenced by PostEvent(), PreEvent(), ProcessHeader(), and SetupRun().
TH1* FastSim::fHEta |
List of outputs.
Definition at line 1388 of file FastSim.C.
Referenced by ProcessHeader(), ProcessParticles(), EPosSim::ProcessParticles(), SetupOutput(), and Terminate().
TH1* FastSim::fHIpz |
dN/dy
Definition at line 1390 of file FastSim.C.
Referenced by ProcessHeader(), EPosSim::ProcessHeader(), SetupOutput(), and Terminate().
TH1* FastSim::fHPhiR |
B histogram.
Definition at line 1394 of file FastSim.C.
Referenced by ProcessHeader(), EPosSim::ProcessHeader(), SetupOutput(), and Terminate().
TH1* FastSim::fHTime |
Reaction plane.
Definition at line 1395 of file FastSim.C.
Referenced by Process(), ProcessHeader(), SetupOutput(), and Terminate().
TH1* FastSim::fHType |
IPz histogram.
Definition at line 1391 of file FastSim.C.
Referenced by ProcessHeader(), SetupOutput(), and Terminate().
TH1* FastSim::fHY |
dN/deta
Definition at line 1389 of file FastSim.C.
Referenced by ProcessHeader(), ProcessParticles(), EPosSim::ProcessParticles(), SetupOutput(), and Terminate().
Bool_t FastSim::fIsProjA |
True if target beam is nuclei.
Definition at line 1366 of file FastSim.C.
Referenced by FileName(), ProcessHeader(), SetupGen(), EPosSim::SetupGen(), and SetupOutput().
Bool_t FastSim::fIsTgtA |
Definition at line 1365 of file FastSim.C.
Referenced by FileName(), ProcessHeader(), SetupGen(), EPosSim::SetupGen(), and SetupOutput().
TProofOutputFile* FastSim::fKineFile |
Definition at line 1410 of file FastSim.C.
Referenced by SetupRun(), and SlaveTerminate().
TList* FastSim::fList |
Definition at line 1387 of file FastSim.C.
Referenced by SetupOutput(), and Terminate().
Long64_t FastSim::fNEvents |
GRP setting to override.
Definition at line 1364 of file FastSim.C.
Referenced by FileName(), and SetupRun().
TList* FastSim::fOverrides |
GRP in one line.
Definition at line 1363 of file FastSim.C.
Referenced by AddOverride(), Begin(), OverrideGRP(), and SetupGRP().
TClonesArray* FastSim::fParticles |
Custom tree.
Definition at line 1382 of file FastSim.C.
Referenced by PreEvent(), EPosSim::PreEvent(), and SetupOutput().
TProofOutputFile* FastSim::fProofFile |
Definition at line 1408 of file FastSim.C.
Referenced by SetupOutput(), SetupRun(), SlaveTerminate(), and Terminate().
AliRunLoader* FastSim::fRunLoader |
Event generator.
Definition at line 1373 of file FastSim.C.
Referenced by FinishRun(), GetGAlice(), GetKine(), PostEvent(), PreEvent(), and SetupRun().
Int_t FastSim::fRunNo |
Definition at line 1359 of file FastSim.C.
Referenced by Begin(), FileName(), PreEvent(), EPosSim::PreEvent(), and SetupGRP().
FastShortHeader FastSim::fShortHead |
Definition at line 1418 of file FastSim.C.
Referenced by PreEvent(), EPosSim::PreEvent(), ProcessHeader(), EPosSim::ProcessHeader(), and SetupOutput().
AliStack* FastSim::fStack |
Loader of trees.
Definition at line 1374 of file FastSim.C.
Referenced by PostEvent(), PreEvent(), ProcessHeader(), ProcessParticles(), and SetupRun().
TTree* FastSim::fTree |
Definition at line 1381 of file FastSim.C.
Referenced by PostEvent(), EPosSim::PostEvent(), SetupOutput(), SlaveTerminate(), and Terminate().
Bool_t FastSim::fVerbose |
Output file name.
Definition at line 1414 of file FastSim.C.
Referenced by Begin(), FlushList(), LocalRun(), EPosSim::LocalRun(), MoveAliceFiles(), OverrideGRP(), ProofRun(), ReadGRPLine(), EPosSim::Run(), SetupGen(), SetupGRP(), SetupOutput(), SetupRun(), SlaveBegin(), SlaveTerminate(), and Terminate().