Skip to content
Snippets Groups Projects
Commit 8095b37d authored by Ivana Hrivnacova's avatar Ivana Hrivnacova Committed by Axel Naumann
Browse files

Added new TVirtualMC functions TrackPosition|Mometum(Float_t& ...):

request from ALICE O2
parent 27de7668
No related branches found
No related tags found
No related merge requests found
......@@ -690,17 +690,25 @@ public:
virtual void TrackPosition(TLorentzVector& position) const =0;
/// Return the current position in the master reference frame of the
/// track being transported
/// track being transported (as double)
virtual void TrackPosition(Double_t &x, Double_t &y, Double_t &z) const =0;
/// Return the current position in the master reference frame of the
/// track being transported (as float)
virtual void TrackPosition(Float_t &x, Float_t &y, Float_t &z) const;
/// Return the direction and the momentum (GeV/c) of the track
/// currently being transported
virtual void TrackMomentum(TLorentzVector& momentum) const =0;
/// Return the direction and the momentum (GeV/c) of the track
/// currently being transported
/// currently being transported (as double)
virtual void TrackMomentum(Double_t &px, Double_t &py, Double_t &pz, Double_t &etot) const =0;
/// Return the direction and the momentum (GeV/c) of the track
/// currently being transported (as float)
virtual void TrackMomentum(Float_t &px, Float_t &py, Float_t &pz, Float_t &etot) const;
/// Return the length in centimeters of the current step (in cm)
virtual Double_t TrackStep() const =0;
......@@ -878,6 +886,22 @@ private:
ClassDef(TVirtualMC,1) //Interface to Monte Carlo
};
// inline functions (with temorary implementation)
inline void TVirtualMC::TrackPosition(Float_t& /*x*/, Float_t& /*y*/, Float_t& /*z*/) const
{
/// Return the current position in the master reference frame of the
/// track being transported (as float)
Warning("TrackPosition(Float_t& ...)", "New function - not yet implemented.");
}
inline void TVirtualMC::TrackMomentum(Float_t& /*px*/, Float_t& /*py*/, Float_t& /*pz*/, Float_t& /*etot*/) const
{
/// Return the direction and the momentum (GeV/c) of the track
/// currently being transported (as float)
Warning("TrackPosition(Float_t& ...)", "New function - not yet implemented.");
}
#define gMC (TVirtualMC::GetMC())
#endif //ROOT_TVirtualMC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment