StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFtpcGeantPoint.cc
1 // $Id: StFtpcGeantPoint.cc,v 1.1 2000/11/24 15:02:34 hummler Exp $
2 // $Log: StFtpcGeantPoint.cc,v $
3 // Revision 1.1 2000/11/24 15:02:34 hummler
4 // commit changes omitted in last commit
5 //
6 
7 //----------Author: Holm Huemmler
8 //----------Last Modified: 19.11.2000
9 
10 #include "StFtpcGeantPoint.hh"
11 
13 // //
14 // StFtpcGeantPoint class - representation of one cluster for evaluation. //
15 // //
16 // This class contains additional data members with geant information from //
17 // StFtpcFastSimulator //
18 // //
20 
21 ClassImp(StFtpcGeantPoint)
22 
23 
25 {
26  // Default constructor.
27  // Sets all pointers to zero.
28 
29  SetTrackPointer(0);
30  SetGeantPID(0);
31  SetPrimaryTag(0);
32  SetGeantProcess(0);
33 
34  SetVertexMomentum(0.0,0.0,0.0);
35  SetLocalMomentum(0.0,0.0,0.0);
36  SetVertexPosition(0.0,0.0,0.0);
37 }
38 
39 
40 
41 StFtpcGeantPoint::~StFtpcGeantPoint()
42 {
43  // Destructor.
44  // Does nothing.
45 }
46 
47 
48 Int_t StFtpcGeantPoint::ToTable(ffs_gepoint_st *geant_st)
49 {
50  geant_st->ge_track_p = GetTrackPointer();
51  geant_st->ge_pid = GetGeantPID();
52  geant_st->prim_tag = GetPrimaryTag();
53  geant_st->ge_proc = GetGeantProcess();
54 
55  geant_st->p_v[0] = GetVertexMomentum(0);
56  geant_st->p_v[1] = GetVertexMomentum(1);
57  geant_st->p_v[2] = GetVertexMomentum(2);
58 
59  geant_st->p_g[0] = GetLocalMomentum(0);
60  geant_st->p_g[1] = GetLocalMomentum(1);
61  geant_st->p_g[2] = GetLocalMomentum(2);
62 
63  geant_st->vertex[0] = GetVertexPosition(0);
64  geant_st->vertex[1] = GetVertexPosition(1);
65  geant_st->vertex[2] = GetVertexPosition(1);
66 
67  return 1;
68 }
69