ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SvtxTrack_FastSim.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SvtxTrack_FastSim.cc
1 /*
2  * SvtxTrack_FastSim.C
3  *
4  * Created on: Jul 28, 2016
5  * Author: yuhw
6  */
7 
8 #include "SvtxTrack_FastSim.h"
9 
10 #include "SvtxTrack.h" // for SvtxTrack::ConstClusterIter, SvtxTrack
11 
12 #include <climits>
13 #include <map> // for _Rb_tree_const_iterator
14 #include <ostream> // for operator<<, basic_ostream, basic_ostream<>::_...
15 
17 { SvtxTrack_FastSim::CopyFrom( source ); }
18 
20 {
21 
22  // parent class method
23  SvtxTrack_v1::CopyFrom( source );
24 
25  // additional members
27  _nmeas = source.get_num_measurements();
28 
29 }
30 
31 void SvtxTrack_FastSim::identify(std::ostream& os) const
32 {
34 
35  os << "SvtxTrack_FastSim Object ";
36  os << "truth_track_id:" << get_truth_track_id();
37  os << "id: " << get_id() << " ";
38  os << "charge: " << get_charge() << " ";
39  os << "chisq: " << get_chisq() << " ndf:" << get_ndf() << " ";
40  os << std::endl;
41 
42  os << "(px,py,pz) = ("
43  << get_px() << ","
44  << get_py() << ","
45  << get_pz() << ")" << std::endl;
46 
47  os << "(x,y,z) = (" << get_x() << "," << get_y() << "," << get_z() << ")" << std::endl;
48 
49  if (!empty_clusters())
50  {
51  os << "clusters: ";
53  iter != end_clusters();
54  ++iter)
55  {
56  unsigned int cluster_id = *iter;
57  os << cluster_id << " ";
58  }
59  os << std::endl;
60  }
61 
62  return;
63 }
64 
66 {
67  return 1;
68 }