![]() |
AliPhysics
fffcdf3 (fffcdf3)
|
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 void | CheckTrigger (Double_t eta) |
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 |
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... | |
TH1 * | fHTrig |
Timing. More... | |
Centrality | |
Trigger bits | |
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 124 of file FastSim.C.
Referenced by LocalRun(), and ProofRun().
Add an item to the list of things from GRP to override
Definition at line 687 of file FastSim.C.
Referenced by SetOverrides().
|
inlinevirtual |
Set up job
Reimplemented in EPosSim.
Definition at line 706 of file FastSim.C.
Referenced by EPosSim::Begin(), and LocalRun().
|
inlinevirtual |
Set trigger bits in header
eta | Eta of particle |
Definition at line 1005 of file FastSim.C.
Referenced by ProcessParticles(), and EPosSim::ProcessParticles().
|
inline |
Definition at line 166 of file FastSim.C.
Referenced by SetupGen(), SetupOutput(), and Terminate().
|
inlinevirtual |
Reimplemented in EPosSim.
Definition at line 1134 of file FastSim.C.
Referenced by SlaveTerminate().
|
inline |
Write a collection to disk, transforming sub-collections to directories.
c | |
dir |
Definition at line 1200 of file FastSim.C.
Referenced by Terminate().
|
inlinevirtual |
|
inlinevirtual |
Get the event generator title
Reimplemented in EPosSim.
Definition at line 246 of file FastSim.C.
Referenced by SetupOutput().
|
inline |
Retrieve the galice.root file from ROOT
Definition at line 1299 of file FastSim.C.
Referenced by SlaveTerminate().
|
inline |
Retrieve the Kinematics.root file from ROOT
Definition at line 1316 of file FastSim.C.
Referenced by SlaveTerminate().
|
inline |
|
inlinevirtual |
Get collision energy either form generator or GRP
Definition at line 224 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 1486 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 1340 of file FastSim.C.
Referenced by Terminate().
|
inline |
Possibly override settings from GRP.
Definition at line 658 of file FastSim.C.
Referenced by Begin(), and SetupGRP().
|
inlinevirtual |
Process one event
iEv | Event number |
Definition at line 1104 of file FastSim.C.
Referenced by LocalRun(), and EPosSim::LocalRun().
|
inlinevirtual |
|
inlinestatic |
Load needed libraries in a proof serssion
Definition at line 1515 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 1562 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 1700 of file FastSim.C.
Referenced by RunFast().
Definition at line 1626 of file FastSim.C.
Referenced by LocalRun(), and ProofRun().
|
inlinevirtual |
Set-up the generator.
Reimplemented in EPosSim.
Definition at line 518 of file FastSim.C.
Referenced by SlaveBegin().
|
inlinevirtual |
Definition at line 473 of file FastSim.C.
Referenced by SlaveBegin().
|
inline |
Create our outputs
Definition at line 257 of file FastSim.C.
Referenced by SlaveBegin().
|
inlinevirtual |
Setup the generator etc. of the job
Reimplemented in EPosSim.
Definition at line 557 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 462 of file FastSim.C.
Referenced by SlaveBegin().
|
inline |
Set-up this sub-job
Definition at line 764 of file FastSim.C.
Referenced by LocalRun(), and EPosSim::LocalRun().
|
inline |
Finalize this sub-job
Definition at line 1146 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 1614 of file FastSim.C.
Referenced by Run(), EPosSim::Run(), and SetOverrides().
|
inline |
Final processing of the data
Definition at line 1222 of file FastSim.C.
Referenced by LocalRun(), and EPosSim::LocalRun().
|
inline |
TProofOutputFile* FastSim::fAliceFile |
Proof output file.
Definition at line 1461 of file FastSim.C.
Referenced by SetupRun(), and SlaveTerminate().
BCentEstimator* FastSim::fBEstimator |
Definition at line 1453 of file FastSim.C.
Referenced by Begin(), ProcessHeader(), and EPosSim::ProcessHeader().
Double_t FastSim::fBMax |
Definition at line 1412 of file FastSim.C.
Referenced by SetupGen(), and SetupGRP().
Double_t FastSim::fBMin |
Definition at line 1411 of file FastSim.C.
Referenced by SetupGen(), and SetupGRP().
TList* FastSim::fCentEstimators |
Definition at line 1454 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 1409 of file FastSim.C.
Referenced by FileName(), SetupGen(), and SetupGRP().
TFile* FastSim::fFile |
Definition at line 1463 of file FastSim.C.
Referenced by SetupOutput(), SlaveTerminate(), and Terminate().
|
mutable |
Output file.
Definition at line 1464 of file FastSim.C.
Referenced by FileName(), SetupGen(), SlaveTerminate(), and Terminate().
AliGenerator* FastSim::fGenerator |
Definition at line 1423 of file FastSim.C.
Referenced by FileName(), FinishRun(), Generate(), GetEGTitle(), GetSNN(), ProcessHeader(), SetupGen(), and SetupRun().
TObject* FastSim::fGRP |
Definition at line 1413 of file FastSim.C.
Referenced by Begin(), FileName(), ReadGRPLine(), and SetupGRP().
TH1* FastSim::fHB |
Event type histogram.
Definition at line 1444 of file FastSim.C.
Referenced by ProcessHeader(), EPosSim::ProcessHeader(), SetupOutput(), and Terminate().
TH1* FastSim::fHCent |
Event type histogram.
Definition at line 1443 of file FastSim.C.
Referenced by ProcessHeader(), EPosSim::ProcessHeader(), SetupOutput(), and Terminate().
AliHeader* FastSim::fHeader |
Stack of particles.
Definition at line 1426 of file FastSim.C.
Referenced by PostEvent(), PreEvent(), ProcessHeader(), and SetupRun().
TH1* FastSim::fHEta |
List of outputs.
Definition at line 1439 of file FastSim.C.
Referenced by ProcessHeader(), ProcessParticles(), EPosSim::ProcessParticles(), SetupOutput(), and Terminate().
TH1* FastSim::fHIpz |
dN/dy
Definition at line 1441 of file FastSim.C.
Referenced by ProcessHeader(), EPosSim::ProcessHeader(), SetupOutput(), and Terminate().
TH1* FastSim::fHPhiR |
B histogram.
Definition at line 1445 of file FastSim.C.
Referenced by ProcessHeader(), EPosSim::ProcessHeader(), SetupOutput(), and Terminate().
TH1* FastSim::fHTime |
Reaction plane.
Definition at line 1446 of file FastSim.C.
Referenced by Process(), ProcessHeader(), SetupOutput(), and Terminate().
TH1* FastSim::fHTrig |
Timing.
Definition at line 1447 of file FastSim.C.
Referenced by PostEvent(), SetupOutput(), and Terminate().
TH1* FastSim::fHType |
IPz histogram.
Definition at line 1442 of file FastSim.C.
Referenced by ProcessHeader(), SetupOutput(), and Terminate().
TH1* FastSim::fHY |
dN/deta
Definition at line 1440 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 1417 of file FastSim.C.
Referenced by FileName(), ProcessHeader(), SetupGen(), EPosSim::SetupGen(), and SetupOutput().
Bool_t FastSim::fIsTgtA |
Definition at line 1416 of file FastSim.C.
Referenced by FileName(), ProcessHeader(), SetupGen(), EPosSim::SetupGen(), and SetupOutput().
TProofOutputFile* FastSim::fKineFile |
Definition at line 1462 of file FastSim.C.
Referenced by SetupRun(), and SlaveTerminate().
TList* FastSim::fList |
Definition at line 1438 of file FastSim.C.
Referenced by SetupOutput(), and Terminate().
Long64_t FastSim::fNEvents |
GRP setting to override.
Definition at line 1415 of file FastSim.C.
Referenced by FileName(), and SetupRun().
TList* FastSim::fOverrides |
GRP in one line.
Definition at line 1414 of file FastSim.C.
Referenced by AddOverride(), Begin(), OverrideGRP(), and SetupGRP().
TClonesArray* FastSim::fParticles |
Custom tree.
Definition at line 1433 of file FastSim.C.
Referenced by PreEvent(), EPosSim::PreEvent(), and SetupOutput().
TProofOutputFile* FastSim::fProofFile |
Definition at line 1460 of file FastSim.C.
Referenced by SetupOutput(), SetupRun(), SlaveTerminate(), and Terminate().
AliRunLoader* FastSim::fRunLoader |
Event generator.
Definition at line 1424 of file FastSim.C.
Referenced by FinishRun(), GetGAlice(), GetKine(), PostEvent(), PreEvent(), and SetupRun().
Int_t FastSim::fRunNo |
Definition at line 1410 of file FastSim.C.
Referenced by Begin(), FileName(), PreEvent(), EPosSim::PreEvent(), and SetupGRP().
FastShortHeader FastSim::fShortHead |
Definition at line 1470 of file FastSim.C.
Referenced by CheckTrigger(), PostEvent(), PreEvent(), EPosSim::PreEvent(), ProcessHeader(), EPosSim::ProcessHeader(), and SetupOutput().
AliStack* FastSim::fStack |
Loader of trees.
Definition at line 1425 of file FastSim.C.
Referenced by PostEvent(), PreEvent(), ProcessHeader(), ProcessParticles(), and SetupRun().
TTree* FastSim::fTree |
Definition at line 1432 of file FastSim.C.
Referenced by PostEvent(), EPosSim::PostEvent(), SetupOutput(), SlaveTerminate(), and Terminate().
Bool_t FastSim::fVerbose |
Output file name.
Definition at line 1466 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().