BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcxFittedHel Class Reference

#include <MdcxFittedHel.h>

+ Inheritance diagram for MdcxFittedHel:

Public Member Functions

 MdcxFittedHel ()
 
 MdcxFittedHel (HepAList< MdcxHit > &XHitList, MdcxHel &hel, double Sfac=1.0)
 
virtual ~MdcxFittedHel ()
 
float Chisq () const
 
float Rcs () const
 
float Prob () const
 
float Fittime () const
 
int Nhits () const
 
int Itofit () const
 
int Quality () const
 
int Origin () const
 
double Sfac () const
 
void SetQuality (const int &q)
 
void SetUsedOnHel (const int &i)
 
int GetUsedOnHel () const
 
int SuperLayer (int hitno=0) const
 
int Layer (int hitno=0) const
 
const HepAList< MdcxHit > & XHitList () const
 
float Residual (int i)
 
float Pull (int i)
 
int Fail (float Probmin=0.0) const
 
int ReFit ()
 
int FitPrint ()
 
int FitPrint (MdcxHel &hel, std::ostream &o)
 
void VaryRes ()
 
MdcxFittedHeloperator= (const MdcxHel &)
 
MdcxFittedHeloperator= (const MdcxFittedHel &)
 
MdcxFittedHelGrow (const MdcxFittedHel &, const HepAList< MdcxHit > &)
 
void SetBailOut (int i)
 
void SetChiDofBail (float r)
 
void SetNiter (int i)
 
 MdcxFittedHel ()
 
 MdcxFittedHel (HepAList< MdcxHit > &XHitList, MdcxHel &hel, double Sfac=1.0)
 
virtual ~MdcxFittedHel ()
 
float Chisq () const
 
float Rcs () const
 
float Prob () const
 
float Fittime () const
 
int Nhits () const
 
int Itofit () const
 
int Quality () const
 
int Origin () const
 
double Sfac () const
 
void SetQuality (const int &q)
 
void SetUsedOnHel (const int &i)
 
int GetUsedOnHel () const
 
int SuperLayer (int hitno=0) const
 
int Layer (int hitno=0) const
 
const HepAList< MdcxHit > & XHitList () const
 
float Residual (int i)
 
float Pull (int i)
 
int Fail (float Probmin=0.0) const
 
int ReFit ()
 
int FitPrint ()
 
int FitPrint (MdcxHel &hel, std::ostream &o)
 
void VaryRes ()
 
MdcxFittedHeloperator= (const MdcxHel &)
 
MdcxFittedHeloperator= (const MdcxFittedHel &)
 
MdcxFittedHelGrow (const MdcxFittedHel &, const HepAList< MdcxHit > &)
 
void SetBailOut (int i)
 
void SetChiDofBail (float r)
 
void SetNiter (int i)
 
- Public Member Functions inherited from MdcxHel
 MdcxHel ()
 
 MdcxHel (double D0, double Phi0, double Omega, double Z0=0.0, double Tanl=0.0, double T0=0.0, int Code=11111, int Mode=0, double X=0.0, double Y=0.0)
 
virtual ~MdcxHel ()
 
double D0 () const
 
double Phi0 () const
 
double Omega () const
 
double Z0 () const
 
double Tanl () const
 
double X () const
 
double Xref () const
 
double Y () const
 
double Yref () const
 
double T0 () const
 
double CosPhi0 () const
 
double SinPhi0 () const
 
double Doca_Len () const
 
double Doca_FLen () const
 
double Doca_Tof () const
 
double Doca_Zh () const
 
int Doca_Samb () const
 
int Doca_Wamb () const
 
double Doca_Eang () const
 
double Omin () const
 
int Mode () const
 
int Code () const
 
int Nfree () const
 
int Ominfl () const
 
int Qd0 () const
 
int Qphi0 () const
 
int Qomega () const
 
int Qz0 () const
 
int Qtanl () const
 
int Qt0 () const
 
double Xc () const
 
double Yc () const
 
double X0 () const
 
double Y0 () const
 
double Xh (double l) const
 
double Yh (double l) const
 
double Zh (double l) const
 
double Px (double l=0.0) const
 
double Py (double l=0.0) const
 
double Pz (double l=0.0) const
 
double Ptot (double l=0.0) const
 
double Lmax () const
 
double Doca (double WX, double WY, double WZ, double X, double Y, double Z=0.0)
 
double Doca (const MdcxHit &h)
 
void print () const
 
void flip ()
 
std::vector< float > derivatives (const MdcxHit &h)
 
void SetRef (double x, double y)
 
void SetMode (int n)
 
void SetD0 (int n)
 
void SetPhi0 (int n)
 
void SetOmega (int n)
 
void SetZ0 (int n)
 
void SetTanl (int n)
 
void SetT0 (int n)
 
void SetTurnFlag (const int &i)
 
int GetTurnFlag () const
 
MdcxHeloperator= (const MdcxHel &)
 
 MdcxHel ()
 
 MdcxHel (double D0, double Phi0, double Omega, double Z0=0.0, double Tanl=0.0, double T0=0.0, int Code=11111, int Mode=0, double X=0.0, double Y=0.0)
 
virtual ~MdcxHel ()
 
double D0 () const
 
double Phi0 () const
 
double Omega () const
 
double Z0 () const
 
double Tanl () const
 
double X () const
 
double Xref () const
 
double Y () const
 
double Yref () const
 
double T0 () const
 
double CosPhi0 () const
 
double SinPhi0 () const
 
double Doca_Len () const
 
double Doca_FLen () const
 
double Doca_Tof () const
 
double Doca_Zh () const
 
int Doca_Samb () const
 
int Doca_Wamb () const
 
double Doca_Eang () const
 
double Omin () const
 
int Mode () const
 
int Code () const
 
int Nfree () const
 
int Ominfl () const
 
int Qd0 () const
 
int Qphi0 () const
 
int Qomega () const
 
int Qz0 () const
 
int Qtanl () const
 
int Qt0 () const
 
double Xc () const
 
double Yc () const
 
double X0 () const
 
double Y0 () const
 
double Xh (double l) const
 
double Yh (double l) const
 
double Zh (double l) const
 
double Px (double l=0.0) const
 
double Py (double l=0.0) const
 
double Pz (double l=0.0) const
 
double Ptot (double l=0.0) const
 
double Lmax () const
 
double Doca (double WX, double WY, double WZ, double X, double Y, double Z=0.0)
 
double Doca (const MdcxHit &h)
 
void print () const
 
void flip ()
 
std::vector< float > derivatives (const MdcxHit &h)
 
void SetRef (double x, double y)
 
void SetMode (int n)
 
void SetD0 (int n)
 
void SetPhi0 (int n)
 
void SetOmega (int n)
 
void SetZ0 (int n)
 
void SetTanl (int n)
 
void SetT0 (int n)
 
void SetTurnFlag (const int &i)
 
int GetTurnFlag () const
 
MdcxHeloperator= (const MdcxHel &)
 

Static Public Attributes

static int debug = 0
 

Protected Member Functions

int DoFit ()
 
int IterateFit ()
 
int DoFit ()
 
int IterateFit ()
 
- Protected Member Functions inherited from MdcxHel
double CalcPhi (double xf, double yf, double xl, double yl) const
 
int deltaq (int i, int j) const
 
void decode (const int i, int &i1, int &i2, int &i3, int &i4, int &i5, int &i6, int &n)
 
void copy (const MdcxHel &hel)
 
double CalcPhi (double xf, double yf, double xl, double yl) const
 
int deltaq (int i, int j) const
 
void decode (const int i, int &i1, int &i2, int &i3, int &i4, int &i5, int &i6, int &n)
 
void copy (const MdcxHel &hel)
 

Protected Attributes

int fail
 
float chisq
 
float rcs
 
float prob
 
float fittime
 
int nhits
 
int itofit
 
int quality
 
int origin
 
HepAList< MdcxHitxHitList
 
double sfac
 
int usedonhel
 
- Protected Attributes inherited from MdcxHel
double d0
 
double phi0
 
double omega
 
double z0
 
double tanl
 
double t0
 
double xref
 
double yref
 
double cphi0
 
double sphi0
 
double x0
 
double y0
 
double xc
 
double yc
 
int code
 
int mode
 
int qd0
 
int qphi0
 
int qomega
 
int qz0
 
int qtanl
 
int qt0
 
int nfree
 
int ominfl
 
int turnflag
 
double omin
 
double len
 
double phi
 
double xh
 
double yh
 
double zh
 
double vx
 
double vy
 
double vz
 
double cosl
 
double sinl
 
double f0
 
double tx
 
double ty
 
double tz
 
Hep3Vector wvec
 
Hep3Vector tvec
 
Hep3Vector vhat
 
Hep3Vector dvec
 
int samb
 
int wamb
 
double eang
 

Detailed Description

Constructor & Destructor Documentation

◆ MdcxFittedHel() [1/4]

MdcxFittedHel::MdcxFittedHel ( )

Definition at line 51 of file MdcxFittedHel.cxx.

51 {
52 basics();
53}

◆ MdcxFittedHel() [2/4]

MdcxFittedHel::MdcxFittedHel ( HepAList< MdcxHit > &  XHitList,
MdcxHel hel,
double  Sfac = 1.0 
)

◆ ~MdcxFittedHel() [1/2]

MdcxFittedHel::~MdcxFittedHel ( )
virtual

Definition at line 66 of file MdcxFittedHel.cxx.

66{ }//endof ~MdcxFittedHel

◆ MdcxFittedHel() [3/4]

MdcxFittedHel::MdcxFittedHel ( )

◆ MdcxFittedHel() [4/4]

MdcxFittedHel::MdcxFittedHel ( HepAList< MdcxHit > &  XHitList,
MdcxHel hel,
double  Sfac = 1.0 
)

◆ ~MdcxFittedHel() [2/2]

virtual MdcxFittedHel::~MdcxFittedHel ( )
virtual

Member Function Documentation

◆ Chisq() [1/2]

◆ Chisq() [2/2]

float MdcxFittedHel::Chisq ( ) const
inline

◆ DoFit() [1/2]

int MdcxFittedHel::DoFit ( )
protected

Definition at line 199 of file MdcxFittedHel.cxx.

199 {
200 int ftemp = 1301;
201 // if(nfree>nhits) {return Fail;}
202 if (nfree > nhits) return ftemp;
203 double m_2pi = 2.0 * M_PI;
204 ftemp = 0;
205 //pointloop
206 if (6 == debug) {
207 std::cout << "in MdcxFittedHel::DoFit() nfree = " << nfree
208 << " nhits = " << nhits << std::endl;
209 }
210
211 int norder = nfree;
212 double A[10][10] = {{0.}}, B[10] = {0.}, D[10] = {0.}, det;
213 chisq = 0.0;
214
215 if (6 == debug) {
216 std::cout << "xHitList.length " << xHitList.length() << " ";
217 for (int ii = 0; ii < xHitList.length(); ii++) {
218 xHitList[ii]->print(std::cout, ii);
219 }
220 std::cout << std::endl << "sfac = " << sfac << std::endl;
221 }
222
223 for (int i = 0; i < nhits; i++) {
224 std::vector<float> derivs = xHitList[i]->derivatives(*this);
225 if (6 == debug) {
226 cout << "derivs " << i<<" ";
227 for (unsigned int ii = 0; ii < derivs.size(); ii++) {
228 cout << setw(15)<< derivs[ii];
229 }
230 std::cout << std::endl;
231 }
232 if (sfac != 1.0) {
233 for(unsigned int ipar = 0; ipar < derivs.size(); ipar++) {
234 derivs[ipar] /= sfac;
235 if(6 == debug) cout << " derivs[" << ipar << "] = " << derivs[ipar];
236 }
237 if(6 == debug) std::cout << std::endl;
238 }
239 chisq += derivs[0] * derivs[0];
240 //outer parameter loop
241 for (int ipar = 0; ipar < norder; ipar++) {
242 D[ipar] += derivs[0] * derivs[ipar+1];
243 //inner parameter loop
244 for(int jpar = 0; jpar < norder; jpar++) {
245 A[ipar][jpar] += derivs[ipar+1] * derivs[jpar+1];
246 }//endof inner parameter loop
247 }//endof outer parameter loop
248 }//pointloop
249 if (6 == debug) cout << "chisq = " << chisq << endl;
250 if (chisq == 0 && nhits != 3) { //zoujh: chisq is invalid??? FIXME
251 ftemp = 1310;
252 return ftemp;
253 }
254 if (6 == debug) {
255 for (int ii = 0; ii < norder; ii++) {
256 cout << "D["<< ii << "]: " << D[ii] << " A:";
257 for (int jj = 0; jj < norder; jj++) cout << " " << A[ii][jj];
258 cout << endl;
259 }
260 }
261 //invert A
262 int ierr;
263 if (bailout) {
264 ftemp = 1308; // bailout
265 int ndof = nhits - nfree;
266 if (ndof > 0) {
267 if (6 == debug){
268 cout << "chisq " << chisq << " ndof " << ndof
269 << " chiperdof " << chisq/ndof
270 << " >?chidofbail " << chidofbail << endl;
271 }
272 float chiperdof = chisq/ndof;
273 if(chiperdof > chidofbail) return ftemp;
274 } else {
275 if (6 == debug){
276 cout << " ndof <=0 : chisq " << chisq
277 << " >? chidofbail/2.5 " << chidofbail/2.5 << endl;
278 }
279 if (chisq > chidofbail/2.5) return ftemp; //FIXME
280 }
281 } // (bailout)
282 ftemp = 0;
283 ierr = Mdcxmatinv(&A[0][0], &norder, &det);
284 if (6 == debug) cout << "ierr = " << ierr << endl;
285 if (ierr == 0) {
286 for(int ii = 0; ii < norder; ii++)
287 for(int jj = 0; jj < norder; jj++)
288 B[ii] += A[ii][jj] * D[jj];
289 if (6 == debug) {
290 for (int ii = 0; ii < norder; ii++) {
291 cout << "B[" << ii << "]: " << B[ii] << " A:";
292 for (int jj = 0; jj < norder; jj++) cout << " " << A[ii][jj];
293 cout << endl;
294 }
295 }
296 int bump = -1;
297 if (qd0) d0 -= B[++bump];
298 if (qphi0) {
299 phi0 -= B[++bump];
300 if (phi0 > M_PI) phi0 -= m_2pi;
301 if (phi0 < -M_PI) phi0 += m_2pi;
302 cphi0 = cos(phi0); sphi0 = sin(phi0);
303 }
304 if (qomega) {
305 omega -= B[++bump];
306 ominfl = (fabs(omega) < omin) ? 0 : 1;
307 }
308 if (qz0) z0 -= B[++bump];
309 if (qtanl) tanl -= B[++bump];
310 if (qt0) t0 -= B[++bump];
311
312 x0 = X0(); y0 = Y0(); xc = Xc(); yc = Yc();
313 if ( fabs(d0) > MdcxParameters::maxMdcRadius ) ftemp = 1305;
314 //if(g_fitOmega)g_fitOmega->fill(omega);
315 if ( fabs(omega) > 10.0 ) ftemp = 1306; // Too tight (r < 1 cm)//yzhang FIXME 2009-11-03
316 } else {
317 ftemp = ierr;
318 }
319 return ftemp;
320}//endof DoFit
double sin(const BesAngle a)
double cos(const BesAngle a)
int Mdcxmatinv(double *array, int *norder, double *det)
Definition: Mdcxmatinv.cxx:7
#define M_PI
Definition: TConstant.h:4
double X0() const
Definition: MdcxHel.cxx:77
double Yc() const
Definition: MdcxHel.cxx:68
double Xc() const
Definition: MdcxHel.cxx:59
double Y0() const
Definition: MdcxHel.cxx:81
static const double maxMdcRadius
MDC Geometry.

Referenced by IterateFit().

◆ DoFit() [2/2]

int MdcxFittedHel::DoFit ( )
protected

◆ Fail() [1/2]

int MdcxFittedHel::Fail ( float  Probmin = 0.0) const

Definition at line 141 of file MdcxFittedHel.cxx.

141 {
142 if(fail) return fail;
143 if(prob < Probmin) return 1303;
144 // now done in DoFit if(fabs(omega)>omegmax) {return 1306;}
145 return 0;
146} // endof Fail

Referenced by Grow(), MdcxMergeDups::MdcxMergeDups(), operator=(), MdcxFindSegs::printseg(), and MdcxFindTracks::process().

◆ Fail() [2/2]

int MdcxFittedHel::Fail ( float  Probmin = 0.0) const

◆ FitPrint() [1/4]

int MdcxFittedHel::FitPrint ( )

Definition at line 335 of file MdcxFittedHel.cxx.

335 {
336 cout << " d0 " << d0;
337 cout << " phi0 " << phi0;
338 cout << " omega " << omega;
339 cout << " z0 " << z0;
340 cout << " tanl " << tanl << endl;
341 cout << " fail " << fail;
342 cout << " chisq " << chisq;
343 cout << " iter to fit " << itofit;
344 cout << " sfac " << sfac;
345 cout << " rcs " << rcs;
346 cout << " prob " << prob;
347 cout << " fittime " << fittime << endl;
348 cout << " nhits= " << nhits << " xHitList.length " << xHitList.length() << endl;
349 for (int ii = 0; ii < xHitList.length(); ii++) {
350 xHitList[ii]->print(cout, ii);
351 }
352 cout<<endl;
353
354 return 0;
355}//endof FitPrint

Referenced by MdcxFindTracks::process(), and MdcxFindTracks::resout().

◆ FitPrint() [2/4]

int MdcxFittedHel::FitPrint ( )

◆ FitPrint() [3/4]

int MdcxFittedHel::FitPrint ( MdcxHel hel,
std::ostream &  o 
)

◆ FitPrint() [4/4]

int MdcxFittedHel::FitPrint ( MdcxHel hel,
std::ostream &  o 
)

◆ Fittime() [1/2]

float MdcxFittedHel::Fittime ( ) const
inline

Definition at line 48 of file InstallArea/include/MdcxReco/MdcxReco/MdcxFittedHel.h.

48{return fittime;}

Referenced by operator=().

◆ Fittime() [2/2]

float MdcxFittedHel::Fittime ( ) const
inline

◆ GetUsedOnHel() [1/2]

int MdcxFittedHel::GetUsedOnHel ( ) const
inline

◆ GetUsedOnHel() [2/2]

int MdcxFittedHel::GetUsedOnHel ( ) const
inline

◆ Grow() [1/2]

MdcxFittedHel & MdcxFittedHel::Grow ( const MdcxFittedHel rhs,
const HepAList< MdcxHit > &  ListOAdds 
)

Definition at line 93 of file MdcxFittedHel.cxx.

94 {
95 copy(rhs);
96 fail=rhs.Fail();
97 chisq=rhs.Chisq();
98 //rcs=rhs.Rcs();
99 //prob=rhs.Prob();
100 fittime=0.0;
101 nhits=rhs.Nhits();
102 itofit=0;
103 quality=rhs.Quality();
104 origin=rhs.Origin();
105 xHitList=rhs.XHitList();
106 sfac=rhs.Sfac();
108 bailout=1; chidofbail=1200.0; niter=10;
109 int kkk=0; while (ListOAdds[kkk]){ListOAdds[kkk]->SetUsedOnHel(0); kkk++;}
110 kkk=0; while (xHitList[kkk]){xHitList[kkk]->SetUsedOnHel(1); kkk++;}
111 double spull;
112 MdcxHel* temp = (MdcxHel*)(&rhs);
113 kkk=0; while (ListOAdds[kkk]){
114 if (ListOAdds[kkk]->GetUsedOnHel() == 0) {
115 spull = ListOAdds[kkk]->pull(*temp)/sfac;
116 chisq += spull*spull;
117 xHitList.append(ListOAdds[kkk]);
118 nhits++;
119 }
120 kkk++;
121 }
122
123 int ndof = nhits - nfree;
124 prob = Mdcxprobab(ndof, chisq);
125 rcs = chisq/ndof;
126 return *this;
127}//endof MdcxFittedHel::Grow
float Mdcxprobab(int &ndof, float &chisq)
Definition: Mdcxprobab.cxx:4
int Fail(float Probmin=0.0) const
void copy(const MdcxHel &hel)
Definition: MdcxHel.cxx:219

Referenced by MdcxFindTracks::process().

◆ Grow() [2/2]

MdcxFittedHel & MdcxFittedHel::Grow ( const MdcxFittedHel ,
const HepAList< MdcxHit > &   
)

◆ IterateFit() [1/2]

int MdcxFittedHel::IterateFit ( )
protected

FIXME

Definition at line 160 of file MdcxFittedHel.cxx.

160 {
161 int ftemp = 1301; // not enough hits
162 if (nfree > nhits) return ftemp;
163 ftemp = 0;
164
165 if(6 == debug) std::cout<<"IterateFit niter="<<niter<< std::endl;
166 if (niter >= 1) {
167 float prevchisq = 0.0;
168 for (int i = 0; i < niter; i++) {
169 itofit = i + 1;
170 ftemp = DoFit();
171 if (6 == debug) {
172 if (nfree == 5) {
173 cout << " iteration number= " << i << " chisq= " << chisq;
174 cout << " nhits= " << nhits << " " << " fail= " << ftemp << endl;
175 }
176 print();
177 }
178 if (ftemp != 0) break;
179 if(6 == debug)std::cout<<"in MdcxFittedHel::IterateFit() chisq="<<chisq<<" prechi2="<<prevchisq<<std::endl;//yzhang debug
180 if ((fabs(chisq-prevchisq) < 0.01*chisq) || (chisq < 0.001)) break; /// FIXME
181 prevchisq = chisq;
182 }//endof iter loop
183 } else {
184 float prevchisq = 0.0;
185 chisq = 1000000.0;
186 int iter = 0;
187 while ((fabs(chisq-prevchisq) > 0.01) && (iter++ < 1000)) {
188 prevchisq = chisq;
189 ftemp = DoFit();
190 if (ftemp != 0) break;
191 }//endof (fabs(chisq-oldchisq).gt.0.01)
192 }//endof (niter>=1)
193 int ndof = nhits - nfree;
194 prob = Mdcxprobab(ndof, chisq);
195 rcs = chisq/ndof;
196 return ftemp;
197}//endof IterateFit
EvtStreamInputIterator< typename Generator::result_type > iter(Generator gen, int N=0)
void print() const
Definition: MdcxHel.cxx:357

Referenced by MdcxFittedHel(), and ReFit().

◆ IterateFit() [2/2]

int MdcxFittedHel::IterateFit ( )
protected

◆ Itofit() [1/2]

int MdcxFittedHel::Itofit ( ) const
inline

Definition at line 50 of file InstallArea/include/MdcxReco/MdcxReco/MdcxFittedHel.h.

50{return itofit;}

Referenced by operator=().

◆ Itofit() [2/2]

int MdcxFittedHel::Itofit ( ) const
inline

◆ Layer() [1/2]

int MdcxFittedHel::Layer ( int  hitno = 0) const

Definition at line 372 of file MdcxFittedHel.cxx.

372 {
373 if(hitno >= nhits) return 0;
374 return xHitList[hitno]->Layer();
375} // endof Layer

Referenced by MdcxFindTracks::process().

◆ Layer() [2/2]

int MdcxFittedHel::Layer ( int  hitno = 0) const

◆ Nhits() [1/2]

◆ Nhits() [2/2]

int MdcxFittedHel::Nhits ( ) const
inline

◆ operator=() [1/4]

MdcxFittedHel & MdcxFittedHel::operator= ( const MdcxFittedHel rhs)

Definition at line 74 of file MdcxFittedHel.cxx.

74 {
75 // FIXME
76 copy(rhs);
77 fail=rhs.Fail();
78 chisq=rhs.Chisq();
79 rcs=rhs.Rcs();
80 prob=rhs.Prob();
81 fittime=rhs.Fittime();
82 nhits=rhs.Nhits();
83 itofit=rhs.Itofit();
84 quality=rhs.Quality();
85 origin=rhs.Origin();
86 xHitList=rhs.XHitList();
87 sfac=rhs.Sfac();
89 bailout=1; chidofbail=1200.0; niter=10;
90 return *this;
91}//endof MdcxFittedHel::operator=

◆ operator=() [2/4]

MdcxFittedHel & MdcxFittedHel::operator= ( const MdcxFittedHel )

◆ operator=() [3/4]

MdcxFittedHel & MdcxFittedHel::operator= ( const MdcxHel rhs)

Definition at line 69 of file MdcxFittedHel.cxx.

69 {
70 copy(rhs);
71 return *this;
72} //endof MdcxFittedHel::operator=

◆ operator=() [4/4]

MdcxFittedHel & MdcxFittedHel::operator= ( const MdcxHel )

◆ Origin() [1/2]

int MdcxFittedHel::Origin ( ) const
inline

Definition at line 52 of file InstallArea/include/MdcxReco/MdcxReco/MdcxFittedHel.h.

52{return origin;}

Referenced by Grow(), operator=(), and MdcxSeg::printSegAll().

◆ Origin() [2/2]

int MdcxFittedHel::Origin ( ) const
inline

◆ Prob() [1/2]

float MdcxFittedHel::Prob ( ) const
inline

Definition at line 47 of file InstallArea/include/MdcxReco/MdcxReco/MdcxFittedHel.h.

47{return prob;}

Referenced by operator=(), and MdcxFindTracks::process().

◆ Prob() [2/2]

float MdcxFittedHel::Prob ( ) const
inline

◆ Pull() [1/2]

float MdcxFittedHel::Pull ( int  i)

Definition at line 137 of file MdcxFittedHel.cxx.

137 {
138 return xHitList[i]->pull(*this);
139}//endof Pulls

◆ Pull() [2/2]

float MdcxFittedHel::Pull ( int  i)

◆ Quality() [1/2]

int MdcxFittedHel::Quality ( ) const
inline

Definition at line 51 of file InstallArea/include/MdcxReco/MdcxReco/MdcxFittedHel.h.

51{return quality;}

Referenced by Grow(), and operator=().

◆ Quality() [2/2]

int MdcxFittedHel::Quality ( ) const
inline

◆ Rcs() [1/2]

float MdcxFittedHel::Rcs ( ) const
inline

◆ Rcs() [2/2]

float MdcxFittedHel::Rcs ( ) const
inline

◆ ReFit() [1/2]

int MdcxFittedHel::ReFit ( )

Definition at line 155 of file MdcxFittedHel.cxx.

155 {
156 fail = IterateFit();
157 return fail;
158}//endof ReFit

Referenced by MdcxFindTracks::process().

◆ ReFit() [2/2]

int MdcxFittedHel::ReFit ( )

◆ Residual() [1/2]

float MdcxFittedHel::Residual ( int  i)

Definition at line 130 of file MdcxFittedHel.cxx.

130 {
131 //float pull=xHitList[i]->pull(*this);
132 //float E=xHitList[i]->e();
133 //return pull*E;
134 return xHitList[i]->residual(*this);
135}//endof Residual

◆ Residual() [2/2]

float MdcxFittedHel::Residual ( int  i)

◆ SetBailOut() [1/2]

void MdcxFittedHel::SetBailOut ( int  i)
inline

Definition at line 117 of file InstallArea/include/MdcxReco/MdcxReco/MdcxFittedHel.h.

117{bailout=i;}

◆ SetBailOut() [2/2]

void MdcxFittedHel::SetBailOut ( int  i)
inline

◆ SetChiDofBail() [1/2]

void MdcxFittedHel::SetChiDofBail ( float  r)
inline

Definition at line 118 of file InstallArea/include/MdcxReco/MdcxReco/MdcxFittedHel.h.

118{chidofbail=r;}

◆ SetChiDofBail() [2/2]

void MdcxFittedHel::SetChiDofBail ( float  r)
inline

◆ SetNiter() [1/2]

void MdcxFittedHel::SetNiter ( int  i)
inline

Definition at line 119 of file InstallArea/include/MdcxReco/MdcxReco/MdcxFittedHel.h.

119{niter=i;}

◆ SetNiter() [2/2]

void MdcxFittedHel::SetNiter ( int  i)
inline

◆ SetQuality() [1/2]

void MdcxFittedHel::SetQuality ( const int &  q)
inline

Definition at line 54 of file InstallArea/include/MdcxReco/MdcxReco/MdcxFittedHel.h.

54{quality=q;}
****INTEGER imax DOUBLE PRECISION m_pi *DOUBLE PRECISION m_amfin DOUBLE PRECISION m_Chfin DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_sinw2 DOUBLE PRECISION m_GFermi DOUBLE PRECISION m_MfinMin DOUBLE PRECISION m_ta2 INTEGER m_out INTEGER m_KeyFSR INTEGER m_KeyQCD *COMMON c_Semalib $ !copy of input $ !CMS energy $ !beam mass $ !final mass $ !beam charge $ !final charge $ !smallest final mass $ !Z mass $ !Z width $ !EW mixing angle $ !Gmu Fermi $ alphaQED at q
Definition: KKsem.h:33

◆ SetQuality() [2/2]

void MdcxFittedHel::SetQuality ( const int &  q)
inline

◆ SetUsedOnHel() [1/2]

void MdcxFittedHel::SetUsedOnHel ( const int &  i)
inline

◆ SetUsedOnHel() [2/2]

void MdcxFittedHel::SetUsedOnHel ( const int &  i)
inline

◆ Sfac() [1/2]

double MdcxFittedHel::Sfac ( ) const
inline

Definition at line 53 of file InstallArea/include/MdcxReco/MdcxReco/MdcxFittedHel.h.

53{return sfac;}

Referenced by Grow(), MdcxFittedHel(), and operator=().

◆ Sfac() [2/2]

double MdcxFittedHel::Sfac ( ) const
inline

◆ SuperLayer() [1/2]

int MdcxFittedHel::SuperLayer ( int  hitno = 0) const

Definition at line 378 of file MdcxFittedHel.cxx.

378 {
379 if(hitno >= nhits) { return 0; }
380 if(hitno < 0) { return 0; }
381 return xHitList[hitno]->SuperLayer();
382} // endof SuperLayer

Referenced by MdcxSeg::printSeg(), and MdcxSeg::printSegAll().

◆ SuperLayer() [2/2]

int MdcxFittedHel::SuperLayer ( int  hitno = 0) const

◆ VaryRes() [1/2]

void MdcxFittedHel::VaryRes ( )

Definition at line 150 of file MdcxFittedHel.cxx.

150 {
151 int kbl = 0;
152 while(xHitList[kbl]) xHitList[kbl++]->SetConstErr(0);
153}

◆ VaryRes() [2/2]

void MdcxFittedHel::VaryRes ( )

◆ XHitList() [1/2]

◆ XHitList() [2/2]

const HepAList< MdcxHit > & MdcxFittedHel::XHitList ( ) const
inline

Member Data Documentation

◆ chisq

float MdcxFittedHel::chisq
protected

◆ debug

int MdcxFittedHel::debug = 0
static

◆ fail

int MdcxFittedHel::fail
protected

◆ fittime

float MdcxFittedHel::fittime
protected

◆ itofit

int MdcxFittedHel::itofit
protected

◆ nhits

int MdcxFittedHel::nhits
protected

◆ origin

int MdcxFittedHel::origin
protected

Definition at line 88 of file InstallArea/include/MdcxReco/MdcxReco/MdcxFittedHel.h.

Referenced by Grow(), operator=(), and Origin().

◆ prob

float MdcxFittedHel::prob
protected

◆ quality

int MdcxFittedHel::quality
protected

◆ rcs

float MdcxFittedHel::rcs
protected

◆ sfac

double MdcxFittedHel::sfac
protected

◆ usedonhel

int MdcxFittedHel::usedonhel
protected

◆ xHitList


The documentation for this class was generated from the following files: