EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <EicRoot/blob/master/eic/event/EicEventGenerator.h>
Public Member Functions | |
EicEventGenerator (TString fileName="") | |
virtual | ~EicEventGenerator () |
int | SkipFewEvents (unsigned eventsToSkip) |
void | RestrictEventChunkSize (unsigned nEvents) |
void | SelectPdgCode (int pdg) |
void | SelectLeadingParticle (double pmin=0.0) |
void | BuildEnergyFlowPlot (int etaBinNum, double etaMin, double etaMax) |
void | AddEnergyFlowPdgCode (int pdg) |
virtual Bool_t | ReadEvent (FairPrimaryGenerator *primGen) |
const TChain * | GetInputTree () const |
Public Member Functions inherited from EicProtoGenerator | |
EicProtoGenerator (const char *name) | |
~EicProtoGenerator () | |
void | SetNaiveVerticalBeamDivergence (double value) |
void | SetNaiveHorizontalBeamDivergence (double value) |
void | SetNaiveHorizontalBeamRotation (double value) |
void | SetVertex (double x, double y, double z=0.0) |
double | GetVx () const |
double | GetVy () const |
double | GetVz () const |
void | SetVertexSmearing (double sx, double sy, double sz=0.0) |
void | SetVertexRange (double rx, double ry, double rz=0.0) |
double | GetVxSmearing () const |
double | GetVySmearing () const |
double | GetVzSmearing () const |
TVector3 | GetSimulatedPrimaryVertex (void) |
TVector3 | GetModifiedTrack (const TVector3 track) |
ClassDef (EicProtoGenerator, 1) | |
Public Member Functions inherited from FairGenerator | |
FairGenerator () | |
FairGenerator (const char *name, const char *title="FAIR Generator") | |
virtual | ~FairGenerator () |
virtual Bool_t | Init () |
ClassDef (FairGenerator, 1) | |
Static Public Member Functions | |
static EicEventGenerator * | Instance () |
Private Member Functions | |
void | ResetVars () |
ClassDef (EicEventGenerator, 22) | |
Private Attributes | |
Poacher * | mPoacher |
singelton instance | |
TChain * | mInputTree |
unsigned | mInputTreeNextEventId |
erhic::VirtualEvent * | mGeneratorEvent |
ParticleMappingTable * | mMappingTable |
Bool_t | mSelectLeadingParticle |
Double_t | mSelectedLeadingParticlePmin |
std::set< Int_t > | mSelectedPdgCodes |
UInt_t | mEventChunkSize |
UInt_t | mEventCounter |
double | mEtaBinWidth |
TH1D * | mEnergyFlowHist |
TH1D * | mParticleCountHist |
std::set< Int_t > | mEnergyFlowPdgCodes |
Static Private Attributes | |
static EicEventGenerator * | mInstance = 0 |
Friends | |
class | EicEventGeneratorTask |
Additional Inherited Members | |
Public Attributes inherited from EicProtoGenerator | |
double | mVerticalBeamDivergence |
double | mHorizontalBeamDivergence |
double | mHorizontalBeamRotation |
Double_t | mCoord [3] |
Double_t | mCoordSigma [3] |
Double_t | mCoordRange [3] |
Bool_t | mGaussianCoordinateSmearing |
Definition at line 142 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 142 of file EicEventGenerator.h
EicEventGenerator::EicEventGenerator | ( | TString | fileName = "" | ) |
Default constructor without arguments should not be used. Standard constructor.
fileName | The input file name |
Definition at line 195 of file EicEventGenerator.cxx.
View newest version in sPHENIX GitHub at line 195 of file EicEventGenerator.cxx
References _EIC_GENERATOR_EVENT_BRANCH_, _EIC_GENERATOR_TREE_, mGeneratorEvent, mInputTree, mInstance, mMappingTable, mPoacher, and ResetVars().
|
inlinevirtual |
Destructor.
Definition at line 156 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 156 of file EicEventGenerator.h
|
inline |
Definition at line 187 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 187 of file EicEventGenerator.h
References mEnergyFlowPdgCodes.
|
inline |
Definition at line 175 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 175 of file EicEventGenerator.h
References mEnergyFlowHist, mEtaBinWidth, and mParticleCountHist.
|
private |
|
inline |
Definition at line 195 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 195 of file EicEventGenerator.h
Referenced by FluxMonitorGrid::FillOutHistograms().
|
inlinestatic |
Definition at line 159 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 159 of file EicEventGenerator.h
References mInstance.
Referenced by FluxMonitorGrid::FillOutHistograms(), and EicEventGeneratorTask::FinishTask().
|
virtual |
Reads on event from the input file and pushes the tracks onto the stack. Abstract method in base class.
primGen | pointer to the FairPrimaryGenerator |
Implements FairGenerator.
Definition at line 259 of file EicEventGenerator.cxx.
View newest version in sPHENIX GitHub at line 259 of file EicEventGenerator.cxx
References _EIC_GENERATOR_EVENT_BRANCH_, _EIC_GENERATOR_TREE_, _EIC_MAPPING_BRANCH_, FairRun::AddTask(), FairPrimaryGenerator::AddTrack(), EicEventGeneratorTask, Poacher::EventName(), erhic::VirtualParticle::GetE(), erhic::VirtualParticle::GetEta(), erhic::VirtualParticle::GetM(), EicProtoGenerator::GetModifiedTrack(), Poacher::GetNextEvent(), erhic::VirtualEvent::GetNTracks(), erhic::VirtualParticle::GetP(), erhic::VirtualParticle::GetParentIndex(), erhic::VirtualParticle::GetPx(), erhic::VirtualParticle::GetPy(), erhic::VirtualParticle::GetPz(), EicProtoGenerator::GetSimulatedPrimaryVertex(), erhic::VirtualParticle::GetStatus(), erhic::VirtualEvent::GetTrack(), erhic::VirtualParticle::GetVertex(), erhic::VirtualParticle::Id(), FairRunSim::Instance(), ParticleMappingTable::mData, mEnergyFlowHist, mEnergyFlowPdgCodes, mEventChunkSize, mEventCounter, mGeneratorEvent, mInputTree, mInputTreeNextEventId, mMappingTable, mParticleCountHist, mPoacher, mSelectedLeadingParticlePmin, mSelectedPdgCodes, mSelectLeadingParticle, printf(), and vtx().
|
inlineprivate |
Definition at line 227 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 227 of file EicEventGenerator.h
References mEnergyFlowHist, mEtaBinWidth, mEventChunkSize, mEventCounter, mGeneratorEvent, mInputTree, mInputTreeNextEventId, mMappingTable, mParticleCountHist, mPoacher, mSelectedLeadingParticlePmin, and mSelectLeadingParticle.
Referenced by EicEventGenerator().
|
inline |
Definition at line 165 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 165 of file EicEventGenerator.h
References mEventChunkSize, and nEvents.
Referenced by simulation().
|
inline |
Definition at line 170 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 170 of file EicEventGenerator.h
References mSelectedLeadingParticlePmin, and mSelectLeadingParticle.
Referenced by simulation().
|
inline |
Definition at line 169 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 169 of file EicEventGenerator.h
References mSelectedPdgCodes.
Referenced by simulation().
int EicEventGenerator::SkipFewEvents | ( | unsigned | eventsToSkip | ) |
Definition at line 238 of file EicEventGenerator.cxx.
View newest version in sPHENIX GitHub at line 238 of file EicEventGenerator.cxx
References Poacher::GetNextEvent(), mInputTree, mInputTreeNextEventId, and mPoacher.
Referenced by simulation().
|
friend |
Definition at line 144 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 144 of file EicEventGenerator.h
Referenced by ReadEvent().
|
private |
Definition at line 223 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 223 of file EicEventGenerator.h
Referenced by BuildEnergyFlowPlot(), EicEventGeneratorTask::FinishTask(), ReadEvent(), and ResetVars().
|
private |
Definition at line 225 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 225 of file EicEventGenerator.h
Referenced by AddEnergyFlowPdgCode(), and ReadEvent().
|
private |
Definition at line 222 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 222 of file EicEventGenerator.h
Referenced by BuildEnergyFlowPlot(), EicEventGeneratorTask::FinishTask(), and ResetVars().
|
private |
Definition at line 219 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 219 of file EicEventGenerator.h
Referenced by ReadEvent(), ResetVars(), and RestrictEventChunkSize().
|
private |
Definition at line 220 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 220 of file EicEventGenerator.h
Referenced by EicEventGeneratorTask::FinishTask(), ReadEvent(), and ResetVars().
|
private |
Definition at line 203 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 203 of file EicEventGenerator.h
Referenced by EicEventGenerator(), ReadEvent(), and ResetVars().
|
private |
Definition at line 201 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 201 of file EicEventGenerator.h
Referenced by EicEventGenerator(), ReadEvent(), ResetVars(), and SkipFewEvents().
|
private |
Definition at line 202 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 202 of file EicEventGenerator.h
Referenced by ReadEvent(), ResetVars(), and SkipFewEvents().
|
staticprivate |
Definition at line 195 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 195 of file EicEventGenerator.h
Referenced by EicEventGenerator(), and Instance().
|
private |
Definition at line 208 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 208 of file EicEventGenerator.h
Referenced by EicEventGenerator(), ReadEvent(), and ResetVars().
|
private |
Definition at line 224 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 224 of file EicEventGenerator.h
Referenced by BuildEnergyFlowPlot(), EicEventGeneratorTask::FinishTask(), ReadEvent(), and ResetVars().
|
private |
singelton instance
Definition at line 200 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 200 of file EicEventGenerator.h
Referenced by EicEventGenerator(), ReadEvent(), ResetVars(), and SkipFewEvents().
|
private |
Definition at line 211 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 211 of file EicEventGenerator.h
Referenced by ReadEvent(), ResetVars(), and SelectLeadingParticle().
|
private |
Definition at line 212 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 212 of file EicEventGenerator.h
Referenced by ReadEvent(), and SelectPdgCode().
|
private |
Definition at line 210 of file EicEventGenerator.h.
View newest version in sPHENIX GitHub at line 210 of file EicEventGenerator.h
Referenced by ReadEvent(), ResetVars(), and SelectLeadingParticle().