28 const char* spectro,
const char* beam ) :
48 if( !
IsOK() )
return -1;
51 if( ntracks == 0 )
return 0;
56 TVector3 beam_org, beam_ray( 0.0, 0.0, 1.0 );
63 for(
Int_t i = 0; i<ntracks; i++ ) {
73 Double_t ztarg=(ytar_off-beam_org(0)*(costheta-yptar*sintheta))/(-sintheta-yptar*costheta);
74 v.SetXYZ(beam_org(0),beam_org(1),ztarg);
ClassImp(VDC::AnalyticTTDConv) using namespace std
virtual const TVector3 & GetDirection() const
virtual const TVector3 & GetPosition() const
THaSpectrometer * fSpectro
virtual Int_t DefineVariables(EMode mode=kDefine)
THaTrack * GetGoldenTrack() const
TClonesArray * GetTracks() const
const TVector3 & GetPointingOffset() const
Double_t GetThetaSph() const
Double_t GetPhiSph() const
void SetVertex(const TVector3 &vert)
Calculate vertex coordinates.
virtual Int_t Process(const THaEvData &)
THcReactionPoint(const char *name, const char *description, const char *spectro="", const char *beam="")
virtual ~THcReactionPoint()