27#ifndef SHIPDATA_SHIPSTACK_H_
28#define SHIPDATA_SHIPSTACK_H_
33#include "FairGenericStack.h"
36#include "TMCProcess.h"
71 void PushTrack(Int_t toBeDone, Int_t parentID, Int_t pdgCode, Double_t px,
72 Double_t py, Double_t pz, Double_t e, Double_t vx, Double_t vy,
73 Double_t vz, Double_t time, Double_t polx, Double_t poly,
74 Double_t polz, TMCProcess proc, Int_t& ntr, Double_t weight,
77 void PushTrack(Int_t toBeDone, Int_t parentID, Int_t pdgCode, Double_t px,
78 Double_t py, Double_t pz, Double_t e, Double_t vx, Double_t vy,
79 Double_t vz, Double_t time, Double_t polx, Double_t poly,
80 Double_t polz, TMCProcess proc, Int_t& ntr, Double_t weight,
81 Int_t is, Int_t secondParentId)
override;
138 void Reset()
override;
146 using TObject::Print;
147 virtual void Print(Int_t iVerbose = 0)
const;
163 void SetSplitSet(Int_t iTrack, Int_t splitSet, Int_t role, Double_t weight);
void AddPoint(DetectorId iDet)
Int_t GetCurrentParentTrackNumber() const override
Int_t GetCurrentTrackNumber() const override
void SetCurrentTrack(Int_t iTrack) override
void PushTrack(Int_t toBeDone, Int_t parentID, Int_t pdgCode, Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vx, Double_t vy, Double_t vz, Double_t time, Double_t polx, Double_t poly, Double_t polz, TMCProcess proc, Int_t &ntr, Double_t weight, Int_t is) override
Int_t fNTracks
Number of entries in fParticles.
void StoreSecondaries(Bool_t choice=kTRUE)
Int_t GetNtrack() const override
TClonesArray * GetListOfParticles() override
void StoreMothers(Bool_t choice=kTRUE)
TParticle * GetParticle(Int_t trackId) const
Int_t fIndex
Number of entries in fTracks.
TParticle * GetCurrentTrack() const override
virtual void Print(Int_t iVerbose=0) const
std::vector< Int_t > fPointsPerTrack
void FillTrackArray() override
Int_t GetNprimary() const override
std::vector< Bool_t > fStoreFlags
Bool_t fStoreSecondaries
Used for merging.
TParticle * PopPrimaryForTracking(Int_t iPrim) override
TParticle * PopNextTrack(Int_t &iTrack) override
Int_t fNParticles
Number of primary particles.
ShipStack(const ShipStack &)=delete
std::vector< Int_t > fIndexMap
void SetMinPoints(Int_t min)
void SetEnergyCut(Double_t eMin)
std::vector< SplitInfo > fSplitSets
Int_t fNPrimaries
Index of current track.
std::stack< TParticle * > fStack
void SetSplitSet(Int_t iTrack, Int_t splitSet, Int_t role, Double_t weight)
TClonesArray * fParticles
void UpdateTrackIndex(TRefArray *detArray=nullptr) override
std::vector< ShipMCTrack > * fTracks
ShipStack & operator=(const ShipStack &)=delete
ShipStack(Int_t size=100)
void AddParticle(TParticle *part)