ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SvtxTrack_FastSim_v1.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file SvtxTrack_FastSim_v1.cc
1 /*
2  * SvtxTrack_FastSim_v1.C
3  *
4  * Created on: Jul 28, 2016
5  * Author: yuhw
6  */
7 
8 #include "SvtxTrack_FastSim_v1.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_v1::CopyFrom( source ); }
18 
20 {
21  // do nothing if copying onto oneself
22  if( this == &source ) return;
23 
24  // parent class method
26 
27  // additional members
28  _g4hit_ids = source.g4hit_ids();
29 }
30 
31 void SvtxTrack_FastSim_v1::identify(std::ostream& os) const
32 {
34 
35  os << "SvtxTrack_FastSim_v1 Object ";
36  os << "G4Hit IDs:" << std::endl;
37  for( const auto& pair:_g4hit_ids )
38  {
39  os << "\thit container ID" << pair.first << " with hits: ";
40  for( const auto& hitid:pair.second )
41  { os << hitid << " "; }
42  os << std::endl;
43  }
44  return;
45 }
46 
48 {
49  return 1;
50 }