StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFgtCosmicTrack.cxx
1 /***************************************************************************
2  *
3  * $Id: StFgtCosmicTrack.cxx,v 1.1 2012/01/31 23:25:35 avossen Exp $
4  * Author: C. K. Riley (ckriley@bnl.gov), Oct. 10 2011
5  *
6  ***************************************************************************
7  *
8  * Description: container class for cosmic tracks from teststand
9  *
10  ***************************************************************************
11  *
12  * $Log: StFgtCosmicTrack.cxx,v $
13  * Revision 1.1 2012/01/31 23:25:35 avossen
14  * moved StFgtCosmicTrackMaker to StFgtPool
15  *
16  * Revision 1.2 2011/11/25 20:24:59 ckriley
17  * now will look at all possible point combinations for tracks and pick the best one
18  *
19  * Revision 1.1 2011/11/01 18:49:59 sgliske
20  * moved from StEvent/StFgtEvent to StFgtCosmicTrackMaker
21  *
22  * Revision 1.8 2011/10/26 19:43:30 ckriley
23  * fix
24  *
25  * Revision 1.5 2011/10/20 17:13:44 ckriley
26  * major update -> headers, tracks stored in StFgtEvent instead of StFgtDisc, changes to trackmaker and algorithms
27  *
28  *
29  **************************************************************************/
30 
31 #include "StObject.h"
32 #include "StFgtCosmicTrack.h"
33 
34 // constructors
35 StFgtCosmicTrack::StFgtCosmicTrack() : mKey(-1), mA(1), mB(1),
36  mX_0(0), mY_0(0),
37  mVarX(1),mVarY(1),
38  mChi2(1), mHitX(0),
39  mHitY(0), mIsTrack(0) { /* */ };
40 
41 StFgtCosmicTrack::StFgtCosmicTrack(Short_t key, Float_t a, Float_t b, Float_t x_0, Float_t y_0, Float_t varX, Float_t varY, Float_t chi2, Float_t hitX, Float_t hitY, Bool_t isTrack) :
42  mKey(key), mA(a), mB(b),
43  mX_0(x_0), mY_0(y_0),
44  mVarX(varX), mVarY(varY),
45  mChi2(chi2), mHitX(hitX),
46  mHitY(hitY), mIsTrack(isTrack) { /* */ };
47 
48 // copy constructor
49 StFgtCosmicTrack::StFgtCosmicTrack( const StFgtCosmicTrack& rhs ) :
50  mKey(rhs.mKey), mA(rhs.mA), mB(rhs.mB),
51  mX_0(rhs.mX_0), mY_0(rhs.mY_0),
52  mVarX(rhs.mVarX), mVarY(rhs.mVarY),
53  mChi2(rhs.mChi2), mHitX(rhs.mHitX),
54  mHitY(rhs.mHitY), mIsTrack(rhs.mIsTrack) { /* */ };
55 
56 // equals operator
57 StFgtCosmicTrack& StFgtCosmicTrack::operator=( const StFgtCosmicTrack& rhs ){
58  mKey = rhs.mKey;
59  mA = rhs.mA;
60  mB = rhs.mB;
61  mX_0 = rhs.mX_0;
62  mY_0 = rhs.mY_0;
63  mVarX = rhs.mVarX;
64  mVarY = rhs.mVarY;
65  mChi2 = rhs.mChi2;
66  mHitX = rhs.mHitX;
67  mHitY = rhs.mHitY;
68  mIsTrack = rhs.mIsTrack;
69 
70  return *this;
71 };
72 
73 ClassImp(StFgtCosmicTrack);