StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTrackGeometry.cxx
1 /***************************************************************************
2  *
3  * $Id: StTrackGeometry.cxx,v 2.7 2009/11/23 16:34:07 fisyak Exp $
4  *
5  * Author: Thomas Ullrich, Sep 1999
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StTrackGeometry.cxx,v $
13  * Revision 2.7 2009/11/23 16:34:07 fisyak
14  * Cleanup, remove dependence on dst tables, clean up software monitors
15  *
16  * Revision 2.6 2005/02/05 01:01:14 perev
17  * test for zero momentum added
18  *
19  * Revision 2.5 2004/10/20 18:55:13 ullrich
20  * Name of enum changed: StStarMaxR(Z) now StStarMaxTrackRangeR(Z).
21  *
22  * Revision 2.4 2004/10/17 03:35:10 perev
23  * Error check improved
24  *
25  * Revision 2.3 2003/10/30 20:07:32 perev
26  * Check of quality added
27  *
28  * Revision 2.2 1999/10/28 22:27:38 ullrich
29  * Adapted new StArray version. First version to compile on Linux and Sun.
30  *
31  * Revision 2.1 1999/10/13 19:45:41 ullrich
32  * Initial Revision
33  *
34  **************************************************************************/
35 #include "StDetectorId.h"
36 #include "StTrackGeometry.h"
37 #include "StThreeVectorF.hh"
38 #include "StPhysicalHelixD.hh"
39 
40 ClassImp(StTrackGeometry)
41 
42 static const char rcsid[] = "$Id: StTrackGeometry.cxx,v 2.7 2009/11/23 16:34:07 fisyak Exp $";
43 
44 StTrackGeometry::StTrackGeometry() {/* noop */}
45 
46 StTrackGeometry::~StTrackGeometry() { /* noop */ }
47 
48 int StTrackGeometry::bad() const
49 {
50  StPhysicalHelixD hh = helix();
51  int ierr=hh.bad();
52  if (ierr) return 1+100*ierr;
53  if (fabs(hh.origin().z()) >kStarMaxTrackRangeZ) return 21;
54  if ( hh.origin().perp()>kStarMaxTrackRangeR) return 31;
55  if (momentum().mag() < 1.e-5 ) return 41;
56  return 0;
57 }
const StThreeVector< double > & origin() const
-sign(q*B);
Definition: StHelix.hh:224