AliPhysics  2c6b7ad (2c6b7ad)
AliSPDMCTrackDensity.h
Go to the documentation of this file.
1 #ifndef ALISPDMCTRACKDENSITY_MC
2 #define ALISPDMCTRACKDENSITY_MC
4 
30 {
31 public:
41  AliSPDMCTrackDensity(const char* name);
59  virtual ~AliSPDMCTrackDensity() {}
60 
79  Bool_t Calculate(const AliMCEvent& event,
80  const TVector3& ip,
81  TH2D& output,
82  TH2D* primary);
83  void Print(Option_t* option="") const;
84 protected:
90  Int_t GetDetectorId() const;
101  AliTrackReference* ProcessRef(AliMCParticle* particle,
102  const AliMCParticle* mother,
103  AliTrackReference* ref);
108  void BeginTrackRefs();
109  Bool_t CheckTrackRef(AliTrackReference* /*ref*/) const;
119  Double_t StoreParticle(AliMCParticle* particle,
120  const AliMCParticle* mother,
121  AliTrackReference* ref) const;
122  Double_t fMinR; // Min radius
123  Double_t fMaxR; // Max radius
124  Double_t fMinZ; // Min z
125  Double_t fMaxZ; // Max z
126  AliTrackReference* fStored;
128 
129  ClassDef(AliSPDMCTrackDensity,4); // Calculate track-ref density
130 };
131 
132 #endif
133 // Local Variables:
134 // mode: C++
135 // End:
TH2D * fOutput
Last stored.
double Double_t
Definition: External.C:58
void Print(Option_t *option="") const
Bool_t Calculate(const AliMCEvent &event, const TVector3 &ip, TH2D &output, TH2D *primary)
AliSPDMCTrackDensity & operator=(const AliSPDMCTrackDensity &o)
Double_t StoreParticle(AliMCParticle *particle, const AliMCParticle *mother, AliTrackReference *ref) const
int Int_t
Definition: External.C:63
Definition: External.C:228
AliTrackReference * ProcessRef(AliMCParticle *particle, const AliMCParticle *mother, AliTrackReference *ref)
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
AliTrackReference * fStored
Bool_t CheckTrackRef(AliTrackReference *) const