19 {
20
21 TrkReco* _trkreco = TrkReco::getTrkReco();
22
23 _trkreco->init(0);
24
26
27
28 delete fBfield;
29
31 Hep3Vector fmomentum(1,1,1);
32 Helix fHelix(fPivot,fmomentum,1.0);
33
34
35
37
40
41
43
44 if (! is.good()) {
45 std::cout<< " The input file is wrong! " <<std::endl;
46 return 0;
47 }
48
49
51 vector<EVENT> evt_list;
52
53
54 for (int ix = 0; ix < 100; ix++) {
55
56
58
59 try {
60 is >> evt;
62 std::cerr <<
"wrong tag, got " << ex.
got()
64 << std::endl;
65 return 0;
66 }
68 std::cerr << "AsciiDumpException was caught!" << std::endl;
69 }
70
71
72 KINE mckn = evt.kine;
73 kine mctrk = mckn.kineList[0];
74 cout<<"==============New Event, MC info ================"<<endl;
75 cout<<"nTrk:"<<mckn.nKine
76 <<" idPart"<<mctrk.idPart
77 <<" chrg:"<<mctrk.q
78 <<" pt:"<<mctrk.pt
79 <<" theta0:"<<mctrk.theta0
80 <<" phi0:"<<mctrk.phi0<<endl;
81
82
83
85
87
89 MdcRecGeo* fGeom=MdcRecGeo::getMdcRecGeo();
90
91
92 for(
unsigned i=0; i<mdigi.
nDigi; i++){
93
94
95
96
98 mhit.
geo = fGeom->Wire(mdigi.digi[i].layerNo-1,mdigi.digi[i].cellNo-1);
99 mhit.
tdc = mdigi.digi[i].driftTime;
100 mhit.
adc = mdigi.digi[i].energyDeposit;
101 mhit.
ddl = mhit.
tdc * 40/10000;
110 mhit.
stat = mhit.
stat |= 1073741824;
111
112
113
115 }
116
117 _trkreco->event();
118
120 evt_list.push_back(evt);
121 }
122
123
125 for(unsigned i=0; i<nt; i++){
126
127 }
129
130 is.close();
131
132
133
134
135
136
137
138
139
140
141 _trkreco->term();
142
143 return 1;
144
145}
std::string expected() const
static Bfield * getBfield(int)
returns Bfield object.
static vector< MdcRec_wirhit > * getMdcRecWirhitCol(void)
A class to handle update timing of static objects of tracking.
void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
virtual void update(void)
updates an object.