FairRoot/PandaRoot
PndFtofHit.cxx
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- FtofHit source file -----
3 // ----- Created by A. Sanchez -----
4 // -------------------------------------------------------------------------
5 
6 
7 #include <iostream>
8 #include "PndFtofHit.h"
9 
10 
11 // ----- Default constructor -------------------------------------------
13 }
14 // -------------------------------------------------------------------------
15 
16 
17 
18 // ----- Standard constructor ------------------------------------------
19 PndFtofHit::PndFtofHit(Int_t trackId, Int_t detID, TString detName, Double_t time, Double_t dt,
20  TVector3& pos,TVector3& dpos,Int_t index, Double_t charge)
21 : FairHit(detID, pos, dpos, index) {
22  fDetName = detName;
23  fTrackID = trackId;
24  fCharge = charge;
25  ftime = time;
26  fdt = dt;
27 
28  SetTimeStamp(time);
29  //fNPixelHits = NPixelHits;
30 }
31 
32 
33 // -------------------------------------------------------------------------
34 
35 
36 
37 // ----- Destructor ----------------------------------------------------
39 // -------------------------------------------------------------------------
40 
41 
42 
43 // ----- Public method Print -------------------------------------------
44 void PndFtofHit::Print(const Option_t* ) const {
45  std::cout << "Forward tof hit in detector " << fDetName << " at ("
46  << fX << ", " << fY << ", " << fZ << ") cm "
47  << ", Point " << fRefIndex << std::endl;
48 }
49 // -------------------------------------------------------------------------
TVector3 pos
Double_t fCharge
Definition: PndFtofHit.h:74
Double_t fX
Definition: PndCaloDraw.cxx:34
Int_t fTrackID
Definition: PndFtofHit.h:73
Double_t fdt
Definition: PndFtofHit.h:74
Double_t fZ
Definition: PndCaloDraw.cxx:34
Double_t
virtual ~PndFtofHit()
Definition: PndFtofHit.cxx:38
virtual void Print(const Option_t *opt=0) const
Definition: PndFtofHit.cxx:44
Double_t fY
Definition: PndCaloDraw.cxx:34
Double_t ftime
Definition: PndFtofHit.h:74
ClassImp(PndAnaContFact)
TString fDetName
Definition: PndFtofHit.h:72