13 #endif //#ifdef _WITHGBATCH_
19 printf(
"In myTrTrack::myTrTrack\n");
28 printf(
"In myTrTrack::~myTrTrack\n");
36 printf(
"In myTrTrack::Clear\n");
56 fill_n(LayerJQ, 9, 0);
58 fill_n(TrackXOnLayer, 9, 0);
59 fill_n(TrackYOnLayer, 9, 0);
66 printf(
"In myTrTrack::init\n");
80 tkbeta+=Rigidity*Rigidity;
81 tkbeta=Rigidity/tkbeta;
94 bool HasL1 = ((BitPatternJ)&(1<<0))>>0;
95 bool HasL2 = ((BitPatternJ)&(1<<1))>>1;
96 bool HasL9 = ((BitPatternJ)&(1<<8))>>8;
143 myTrTrackFiller::myTrTrackFiller():
myTrTrack(){
145 printf(
"In myTrTrackFiller::myTrTrackFiller\n");
151 myTrTrackFiller::~myTrTrackFiller(){
153 printf(
"In myTrTrackFiller::~myTrTrackFiller\n");
159 void myTrTrackFiller::Clear(Option_t* option){
161 printf(
"In myTrTrackFiller::Clear\n");
169 void myTrTrackFiller::init(){
171 printf(
"In myTrTrackFiller::init\n");
179 void myTrTrackFiller::Fill(TrTrackR* _track){
181 printf(
"In myTrTrackFiller::Fill\n");
190 BitPatternJ=track->GetBitPatternJ();
191 BitPatternXYJ=track->GetBitPatternXYJ();
193 NhitsX = track->GetNhitsX();
194 NhitsY = track->GetNhitsY();
195 NhitsXY = track->GetNhitsXY();
196 Nhits = track->GetNhits();
201 Rigidity = track->GetRigidity(kDef);
202 ErrRinv = track->GetErrRinv(kDef);
203 Chisq = track->GetChisq(kDef);
204 NormChisqX = track->GetNormChisqX(kDef);
205 NormChisqY = track->GetNormChisqY(kDef);
206 Theta = track->GetTheta(kDef);
215 Phi = track->GetPhi(kDef);
217 for (
int jlayer=1; jlayer<=9; jlayer++) {
218 static AMSPoint global;
222 if (layer==1) jlayer=8;
223 else if (layer==9) jlayer=9;
224 track->InterpolateLayer(layer-1, global, dir, kDef);
226 track->InterpolateLayerJ(jlayer, global, dir, kDef);
228 TrackXOnLayer[jlayer-1]=global.x();
229 TrackYOnLayer[jlayer-1]=global.y();
235 InnerQ = track->GetInnerQ();
236 for (
int ii=0; ii<9; ii++) {
237 LayerJQ[ii] = track->GetLayerJQ(ii+1);
247 #endif //#ifdef _WITHGBATCH_