CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcGeoWire Class Reference

#include <MdcGeoWire.h>

Public Member Functions

 MdcGeoWire ()
 
 MdcGeoWire (const MdcGeoWire &e)
 
MdcGeoWireoperator= (const MdcGeoWire &e)
 
 ~MdcGeoWire ()
 
int Id (void) const
 
HepPoint3D Backward (void) const
 
HepPoint3D Forward (void) const
 
HepPoint3D BWirePos (void) const
 
HepPoint3D FWirePos (void) const
 
double Slant (void) const
 
HepPoint3D nomBackward (void) const
 
HepPoint3D nomForward (void) const
 
double nomSlant (void) const
 
double Tension (void) const
 
const double Sag (void) const
 
const double Sagz (const double z) const
 
int Cell (void) const
 
int Layer (void) const
 
int Stat (void) const
 
MdcGeoLayerLyr (void) const
 
int Id (int)
 
HepPoint3D Backward (HepPoint3D)
 
HepPoint3D Forward (HepPoint3D)
 
HepPoint3D BWirePos (HepPoint3D)
 
HepPoint3D FWirePos (HepPoint3D)
 
double Slant (double)
 
HepPoint3D nomBackward (HepPoint3D)
 
HepPoint3D nomForward (HepPoint3D)
 
double nomSlant (double)
 
double Tension (double)
 
int Cell (int)
 
int Layer (int)
 
int Stat (int)
 
MdcGeoLayerLyr (MdcGeoLayer *)
 
 MdcGeoWire ()
 
 MdcGeoWire (const MdcGeoWire &e)
 
MdcGeoWireoperator= (const MdcGeoWire &e)
 
 ~MdcGeoWire ()
 
int Id (void) const
 
HepPoint3D Backward (void) const
 
HepPoint3D Forward (void) const
 
HepPoint3D BWirePos (void) const
 
HepPoint3D FWirePos (void) const
 
double Slant (void) const
 
HepPoint3D nomBackward (void) const
 
HepPoint3D nomForward (void) const
 
double nomSlant (void) const
 
double Tension (void) const
 
const double Sag (void) const
 
const double Sagz (const double z) const
 
double GetX (const double z) const
 
double GetY (const double z) const
 
int NeiborType (int nid) const
 
int NeighborID (int nid) const
 
int NumOfNeibors (void) const
 
vector< int > GetIDofNeighbors (void) const
 
vector< MdcGeoWire * > GetNeighbors (void) const
 
int GetNeighborIDType1 (void) const
 
int GetNeighborIDType2 (void) const
 
vector< int > GetNeighborIDType3 (void) const
 
vector< int > GetNeighborIDType4 (void) const
 
vector< int > GetNeighborsType (void) const
 
MdcGeoWireGetNeighborType1 (void) const
 
MdcGeoWireGetNeighborType2 (void) const
 
vector< MdcGeoWire * > GetNeighborType3 (void) const
 
vector< MdcGeoWire * > GetNeighborType4 (void) const
 
double WirePhi (double z) const
 
double CalculatePhi (double phi) const
 
vector< MdcGeoWire * > GetNeighboratZType3 (double z) const
 
vector< MdcGeoWire * > GetNeighboratZType4 (double z) const
 
int Cell (void) const
 
int Layer (void) const
 
int Stat (void) const
 
MdcGeoLayerLyr (void) const
 
int Id (int)
 
HepPoint3D Backward (HepPoint3D)
 
HepPoint3D Forward (HepPoint3D)
 
HepPoint3D BWirePos (HepPoint3D)
 
HepPoint3D FWirePos (HepPoint3D)
 
double Slant (double)
 
HepPoint3D nomBackward (HepPoint3D)
 
HepPoint3D nomForward (HepPoint3D)
 
double nomSlant (double)
 
double Tension (double)
 
void AddWireNeighbor (int id, int type)
 
void AddWireNeighbor (MdcGeoWire *awire, int type)
 
void AddWireNeighbor (MdcGeoWire *awire, int id, int type)
 
void ClearNeighbors ()
 
int Cell (int)
 
int Layer (int)
 
int Stat (int)
 
MdcGeoLayerLyr (MdcGeoLayer *)
 

Detailed Description

Constructor & Destructor Documentation

◆ MdcGeoWire() [1/4]

MdcGeoWire::MdcGeoWire ( )
inline

Definition at line 20 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

21 : fId(0),
22 fSlant(0),
23 fnomSlant(0),
24 fCell(0),
25 fLayer(0),
26 fStat(0)
27 {
28 HepPoint3D O(0,0,0);
29 fBackward=O;
30 fForward=O;
31 fBwirepos=O;
32 fFwirepos=O;
33 fnomBackward=O;
34 fnomForward=O;
35 fLyr=NULL;
36 }

◆ MdcGeoWire() [2/4]

MdcGeoWire::MdcGeoWire ( const MdcGeoWire & e)
inline

Definition at line 39 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

39 {
40 fId=e.Id();
41 fBackward=e.Backward();
42 fForward=e.Forward();
43 fBwirepos=e.BWirePos();
44 fFwirepos=e.FWirePos();
45 fSlant=e.Slant();
46 fCell=e.Cell();
47 fLayer=e.Layer();
48 fStat=e.Stat();
49 fLyr=e.Lyr();
50 };

◆ ~MdcGeoWire() [1/2]

MdcGeoWire::~MdcGeoWire ( )
inline

Definition at line 70 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

70{ };

◆ MdcGeoWire() [3/4]

MdcGeoWire::MdcGeoWire ( )
inline

Definition at line 22 of file MdcGeomSvc-00-01-42/MdcGeomSvc/MdcGeoWire.h.

23 : fId(0),
24 fSlant(0),
25 fnomSlant(0),
26 fCell(0),
27 fLayer(0),
28 fStat(0)
29 {
30 HepPoint3D O(0,0,0);
31 fBackward=O;
32 fForward=O;
33 fBwirepos=O;
34 fFwirepos=O;
35 fnomBackward=O;
36 fnomForward=O;
37 fLyr=NULL;
38 fWireNeighbors.clear();
39 fNeighborType.clear();
40 fWireNeighborsID.clear();
41 }

◆ MdcGeoWire() [4/4]

MdcGeoWire::MdcGeoWire ( const MdcGeoWire & e)
inline

Definition at line 44 of file MdcGeomSvc-00-01-42/MdcGeomSvc/MdcGeoWire.h.

44 {
45 fId=e.Id();
46 fBackward=e.Backward();
47 fForward=e.Forward();
48 fBwirepos=e.BWirePos();
49 fFwirepos=e.FWirePos();
50 fSlant=e.Slant();
51 fCell=e.Cell();
52 fLayer=e.Layer();
53 fStat=e.Stat();
54 fLyr=e.Lyr();
55 fWireNeighbors=e.GetNeighbors();
56 fWireNeighborsID=e.GetIDofNeighbors();
57 fNeighborType=e.GetNeighborsType();
58 };
vector< MdcGeoWire * > GetNeighbors(void) const
vector< int > GetIDofNeighbors(void) const
vector< int > GetNeighborsType(void) const

◆ ~MdcGeoWire() [2/2]

MdcGeoWire::~MdcGeoWire ( )
inline

Definition at line 81 of file MdcGeomSvc-00-01-42/MdcGeomSvc/MdcGeoWire.h.

81{ };

Member Function Documentation

◆ AddWireNeighbor() [1/3]

void MdcGeoWire::AddWireNeighbor ( int id,
int type )

Definition at line 33 of file MdcGeomSvc-00-01-42/src/MdcGeoWire.cxx.

33 {
34 fWireNeighborsID.push_back(id);
35 fNeighborType.push_back(type);
36}

◆ AddWireNeighbor() [2/3]

void MdcGeoWire::AddWireNeighbor ( MdcGeoWire * awire,
int id,
int type )

Definition at line 43 of file MdcGeomSvc-00-01-42/src/MdcGeoWire.cxx.

43 {
44 fWireNeighbors.push_back(awire);
45 fNeighborType.push_back(type);
46 fWireNeighborsID.push_back(id);
47}

◆ AddWireNeighbor() [3/3]

void MdcGeoWire::AddWireNeighbor ( MdcGeoWire * awire,
int type )

Definition at line 38 of file MdcGeomSvc-00-01-42/src/MdcGeoWire.cxx.

38 {
39 fWireNeighbors.push_back(awire);
40 fNeighborType.push_back(type);
41}

◆ Backward() [1/4]

HepPoint3D MdcGeoWire::Backward ( HepPoint3D i)
inline

Definition at line 144 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

144{return fBackward=i;}

◆ Backward() [2/4]

HepPoint3D MdcGeoWire::Backward ( HepPoint3D )

◆ Backward() [3/4]

◆ Backward() [4/4]

HepPoint3D MdcGeoWire::Backward ( void ) const

◆ BWirePos() [1/4]

HepPoint3D MdcGeoWire::BWirePos ( HepPoint3D i)
inline

Definition at line 146 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

146{return fBwirepos=i;}

◆ BWirePos() [2/4]

HepPoint3D MdcGeoWire::BWirePos ( HepPoint3D )

◆ BWirePos() [3/4]

HepPoint3D MdcGeoWire::BWirePos ( void ) const
inline

Definition at line 130 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

130{ return fBwirepos;}

Referenced by MdcGeoWire(), operator=(), and DedxCorrecSvc::PathL().

◆ BWirePos() [4/4]

HepPoint3D MdcGeoWire::BWirePos ( void ) const

◆ CalculatePhi()

double MdcGeoWire::CalculatePhi ( double phi) const

Definition at line 160 of file MdcGeomSvc-00-01-42/src/MdcGeoWire.cxx.

160 {
161 if(0<phi&&phi<2*M_PI){
162 return phi;
163 }
164 else if(phi>2*M_PI){
165 return phi-2*M_PI;
166 }
167 else {
168 return phi+2*M_PI;
169 }
170 }
#define M_PI
Definition TConstant.h:4

Referenced by GetNeighboratZType3(), and GetNeighboratZType4().

◆ Cell() [1/4]

int MdcGeoWire::Cell ( int i)
inline

Definition at line 153 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

153{return fCell=i;}

◆ Cell() [2/4]

int MdcGeoWire::Cell ( int )

◆ Cell() [3/4]

◆ Cell() [4/4]

int MdcGeoWire::Cell ( void ) const

◆ ClearNeighbors()

void MdcGeoWire::ClearNeighbors ( )

Definition at line 140 of file MdcGeomSvc-00-01-42/src/MdcGeoWire.cxx.

140 {
141 fWireNeighborsID.clear();
142 fWireNeighbors.clear();
143 fNeighborType.clear();
144}

◆ Forward() [1/4]

HepPoint3D MdcGeoWire::Forward ( HepPoint3D i)
inline

Definition at line 145 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

145{return fForward=i;}

◆ Forward() [2/4]

HepPoint3D MdcGeoWire::Forward ( HepPoint3D )

◆ Forward() [3/4]

◆ Forward() [4/4]

HepPoint3D MdcGeoWire::Forward ( void ) const

◆ FWirePos() [1/4]

HepPoint3D MdcGeoWire::FWirePos ( HepPoint3D i)
inline

Definition at line 147 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

147{return fFwirepos=i;}

◆ FWirePos() [2/4]

HepPoint3D MdcGeoWire::FWirePos ( HepPoint3D )

◆ FWirePos() [3/4]

HepPoint3D MdcGeoWire::FWirePos ( void ) const
inline

Definition at line 131 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

131{ return fFwirepos;}

Referenced by MdcGeoWire(), operator=(), and DedxCorrecSvc::PathL().

◆ FWirePos() [4/4]

HepPoint3D MdcGeoWire::FWirePos ( void ) const

◆ GetIDofNeighbors()

vector< int > MdcGeoWire::GetIDofNeighbors ( void ) const
inline

Definition at line 197 of file MdcGeomSvc-00-01-42/MdcGeomSvc/MdcGeoWire.h.

197{return fWireNeighborsID;}

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

◆ GetNeighboratZType3()

vector< MdcGeoWire * > MdcGeoWire::GetNeighboratZType3 ( double z) const

Definition at line 98 of file MdcGeomSvc-00-01-42/src/MdcGeoWire.cxx.

98 {
99 std::vector<MdcGeoWire*> NeighborZType3;
100 const double phi = MdcGeoWire::WirePhi(z);
101 double phi2,dPhi1,dPhi2,phiMax,phiMin;
102 std::vector<MdcGeoWire*> NeighborType3 = MdcGeoWire::GetNeighborType3();
103 dPhi1=M_PI/double(fLyr->NCell());
104 if(NeighborType3.size()>0) {
105 dPhi2=M_PI/double(NeighborType3.at(0)->Lyr()->NCell());
106 phiMax=MdcGeoWire::CalculatePhi(phi+dPhi1+dPhi2);
107 phiMin=MdcGeoWire::CalculatePhi(phi-dPhi1-dPhi2);
108 if(fabs(z)<NeighborType3.at(0)->Lyr()->Length()/2.){
109 for(unsigned i=0;i<NeighborType3.size();i++){
110 phi2 =NeighborType3.at(i)->WirePhi(z);
111 if(phi2>phiMin&&phi2<phiMax) NeighborZType3.push_back(NeighborType3.at(i));
112 else if(phiMin>phiMax&&(phi2>phiMin||phi2<phiMax)) NeighborZType3.push_back(NeighborType3.at(i));
113 }
114 }
115 }
116 return NeighborZType3;
117}
Double_t phi2
vector< MdcGeoWire * > GetNeighborType3(void) const
double WirePhi(double z) const
double CalculatePhi(double phi) const

◆ GetNeighboratZType4()

vector< MdcGeoWire * > MdcGeoWire::GetNeighboratZType4 ( double z) const

Definition at line 119 of file MdcGeomSvc-00-01-42/src/MdcGeoWire.cxx.

119 {
120 std::vector<MdcGeoWire*> NeighborZType4;
121 const double phi = MdcGeoWire::WirePhi(z);
122 double phi2,dPhi1,dPhi2,phiMax,phiMin;
123 std::vector<MdcGeoWire*> NeighborType4 = MdcGeoWire::GetNeighborType4();
124 dPhi1=M_PI/double(fLyr->NCell());
125 if(NeighborType4.size()>0) {
126 dPhi2=M_PI/double(NeighborType4.at(0)->Lyr()->NCell());
127 phiMax=MdcGeoWire::CalculatePhi(phi+dPhi1+dPhi2);
128 phiMin=MdcGeoWire::CalculatePhi(phi-dPhi1-dPhi2);
129
130 for(unsigned i=0;i<NeighborType4.size();i++){
131 phi2 =NeighborType4.at(i)->WirePhi(z);
132 if(phi2>phiMin&&phi2<phiMax) NeighborZType4.push_back(NeighborType4.at(i));
133 else if(phiMin>phiMax&&(phi2>phiMin||phi2<phiMax)) NeighborZType4.push_back(NeighborType4.at(i));
134 }
135
136 }
137 return NeighborZType4;
138}
vector< MdcGeoWire * > GetNeighborType4(void) const

◆ GetNeighborIDType1()

int MdcGeoWire::GetNeighborIDType1 ( void ) const
inline

Definition at line 190 of file MdcGeomSvc-00-01-42/MdcGeomSvc/MdcGeoWire.h.

190{return fWireNeighborsID.at(0);}

Referenced by MdcGeomSvc::getAdjacentIntersectionShape().

◆ GetNeighborIDType2()

int MdcGeoWire::GetNeighborIDType2 ( void ) const
inline

Definition at line 191 of file MdcGeomSvc-00-01-42/MdcGeomSvc/MdcGeoWire.h.

191{return fWireNeighborsID.at(1);}

◆ GetNeighborIDType3()

vector< int > MdcGeoWire::GetNeighborIDType3 ( void ) const

Definition at line 57 of file MdcGeomSvc-00-01-42/src/MdcGeoWire.cxx.

57 {
58 std::vector<int> NeighborType3;
59 for(unsigned i=0;i<fWireNeighborsID.size();i++){
60 if(fNeighborType.at(i)==3){
61 NeighborType3.push_back(fWireNeighborsID.at(i));
62 }
63 }
64 return NeighborType3;
65}

Referenced by DotsConnection::initialize().

◆ GetNeighborIDType4()

vector< int > MdcGeoWire::GetNeighborIDType4 ( void ) const

Definition at line 67 of file MdcGeomSvc-00-01-42/src/MdcGeoWire.cxx.

67 {
68 std::vector<int> NeighborType4;
69 for(unsigned i=0;i<fWireNeighborsID.size();i++){
70 if(fNeighborType.at(i)==4){
71 NeighborType4.push_back(fWireNeighborsID.at(i));
72 }
73 }
74 return NeighborType4;
75}

◆ GetNeighbors()

vector< MdcGeoWire * > MdcGeoWire::GetNeighbors ( void ) const
inline

Definition at line 192 of file MdcGeomSvc-00-01-42/MdcGeomSvc/MdcGeoWire.h.

192{return fWireNeighbors;}

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

◆ GetNeighborsType()

vector< int > MdcGeoWire::GetNeighborsType ( void ) const
inline

Definition at line 198 of file MdcGeomSvc-00-01-42/MdcGeomSvc/MdcGeoWire.h.

198{return fNeighborType;}

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

◆ GetNeighborType1()

MdcGeoWire * MdcGeoWire::GetNeighborType1 ( void ) const
inline

Definition at line 193 of file MdcGeomSvc-00-01-42/MdcGeomSvc/MdcGeoWire.h.

193{return fWireNeighbors.at(0);}

◆ GetNeighborType2()

MdcGeoWire * MdcGeoWire::GetNeighborType2 ( void ) const
inline

Definition at line 194 of file MdcGeomSvc-00-01-42/MdcGeomSvc/MdcGeoWire.h.

194{return fWireNeighbors.at(1);}

◆ GetNeighborType3()

vector< MdcGeoWire * > MdcGeoWire::GetNeighborType3 ( void ) const

Definition at line 77 of file MdcGeomSvc-00-01-42/src/MdcGeoWire.cxx.

77 {
78 std::vector<MdcGeoWire*> NeighborType3;
79 for(unsigned i=0;i<fWireNeighbors.size();i++){
80 if(fNeighborType.at(i)==3){
81 NeighborType3.push_back(fWireNeighbors.at(i));
82 }
83 }
84 return NeighborType3;
85}

Referenced by GetNeighboratZType3().

◆ GetNeighborType4()

vector< MdcGeoWire * > MdcGeoWire::GetNeighborType4 ( void ) const

Definition at line 87 of file MdcGeomSvc-00-01-42/src/MdcGeoWire.cxx.

87 {
88 std::vector<MdcGeoWire*> NeighborType4;
89 for(unsigned i=0;i<fWireNeighbors.size();i++){
90 if(fNeighborType.at(i)==4){
91 NeighborType4.push_back(fWireNeighbors.at(i));
92 }
93 }
94 return NeighborType4;
95}

Referenced by GetNeighboratZType4(), and MdcGeomSvc::testAdjacentIntersection().

◆ GetX()

double MdcGeoWire::GetX ( const double z) const

Definition at line 49 of file MdcGeomSvc-00-01-42/src/MdcGeoWire.cxx.

49 {
50 return (fForward.x()-fBackward.x())*(z-fBackward.z())/(fForward.z()-fBackward.z())+fBackward.x();
51}

Referenced by MdcGeomSvc::getAdjacentCandidateWithDriftCircle(), MdcGeomSvc::getAdjacentIntersectionPointFast(), MdcGeomSvc::getAdjacentIntersectionPointSlower(), MdcGeomSvc::testAdjacentIntersection(), and WirePhi().

◆ GetY()

double MdcGeoWire::GetY ( const double z) const

Definition at line 53 of file MdcGeomSvc-00-01-42/src/MdcGeoWire.cxx.

53 {
54 return (fForward.y()-fBackward.y())*(z-fBackward.z())/(fForward.z()-fBackward.z())+fBackward.y();
55}

Referenced by MdcGeomSvc::getAdjacentCandidateWithDriftCircle(), MdcGeomSvc::getAdjacentIntersectionPointFast(), MdcGeomSvc::getAdjacentIntersectionPointSlower(), MdcGeomSvc::testAdjacentIntersection(), and WirePhi().

◆ Id() [1/4]

int MdcGeoWire::Id ( int i)
inline

Definition at line 143 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

143{return fId=i;}

◆ Id() [2/4]

int MdcGeoWire::Id ( int )

◆ Id() [3/4]

◆ Id() [4/4]

int MdcGeoWire::Id ( void ) const

◆ Layer() [1/4]

int MdcGeoWire::Layer ( int i)
inline

Definition at line 154 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

154{return fLayer=i;}

◆ Layer() [2/4]

int MdcGeoWire::Layer ( int )

◆ Layer() [3/4]

◆ Layer() [4/4]

int MdcGeoWire::Layer ( void ) const

◆ Lyr() [1/4]

MdcGeoLayer * MdcGeoWire::Lyr ( MdcGeoLayer * i)
inline

Definition at line 156 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

156{return fLyr = i;}

◆ Lyr() [2/4]

MdcGeoLayer * MdcGeoWire::Lyr ( MdcGeoLayer * )

◆ Lyr() [3/4]

◆ Lyr() [4/4]

MdcGeoLayer * MdcGeoWire::Lyr ( void ) const

◆ NeiborType()

int MdcGeoWire::NeiborType ( int nid) const

◆ NeighborID()

int MdcGeoWire::NeighborID ( int nid) const
inline

Definition at line 195 of file MdcGeomSvc-00-01-42/MdcGeomSvc/MdcGeoWire.h.

195{return fWireNeighborsID.at(nid);}

◆ nomBackward() [1/4]

HepPoint3D MdcGeoWire::nomBackward ( HepPoint3D i)
inline

Definition at line 148 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

148{return fnomBackward=i;}

◆ nomBackward() [2/4]

HepPoint3D MdcGeoWire::nomBackward ( HepPoint3D )

◆ nomBackward() [3/4]

HepPoint3D MdcGeoWire::nomBackward ( void ) const
inline

Definition at line 133 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

133{ return fnomBackward;}

◆ nomBackward() [4/4]

HepPoint3D MdcGeoWire::nomBackward ( void ) const

◆ nomForward() [1/4]

HepPoint3D MdcGeoWire::nomForward ( HepPoint3D i)
inline

Definition at line 149 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

149{return fnomForward=i;}

◆ nomForward() [2/4]

HepPoint3D MdcGeoWire::nomForward ( HepPoint3D )

◆ nomForward() [3/4]

HepPoint3D MdcGeoWire::nomForward ( void ) const
inline

Definition at line 134 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

134{ return fnomForward;}

◆ nomForward() [4/4]

HepPoint3D MdcGeoWire::nomForward ( void ) const

◆ nomSlant() [1/4]

double MdcGeoWire::nomSlant ( double i)
inline

Definition at line 151 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

151{return fnomSlant=i;}

◆ nomSlant() [2/4]

double MdcGeoWire::nomSlant ( double )

◆ nomSlant() [3/4]

double MdcGeoWire::nomSlant ( void ) const
inline

Definition at line 135 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

135{ return fnomSlant; }

◆ nomSlant() [4/4]

double MdcGeoWire::nomSlant ( void ) const

◆ NumOfNeibors()

int MdcGeoWire::NumOfNeibors ( void ) const
inline

Definition at line 196 of file MdcGeomSvc-00-01-42/MdcGeomSvc/MdcGeoWire.h.

196{return fWireNeighborsID.size();}

◆ operator=() [1/2]

MdcGeoWire & MdcGeoWire::operator= ( const MdcGeoWire & e)
inline

Definition at line 52 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

52 {
53 if(this!=&e)
54 {
55 fId=e.Id();
56 fBackward=e.Backward();
57 fForward=e.Forward();
58 fBwirepos=e.BWirePos();
59 fFwirepos=e.FWirePos();
60 fSlant=e.Slant();
61 fCell=e.Cell();
62 fLayer=e.Layer();
63 fStat=e.Stat();
64 fLyr=e.Lyr();
65 }
66 return *this;
67 }

◆ operator=() [2/2]

MdcGeoWire & MdcGeoWire::operator= ( const MdcGeoWire & e)
inline

Definition at line 60 of file MdcGeomSvc-00-01-42/MdcGeomSvc/MdcGeoWire.h.

60 {
61 if(this!=&e)
62 {
63 fId=e.Id();
64 fBackward=e.Backward();
65 fForward=e.Forward();
66 fBwirepos=e.BWirePos();
67 fFwirepos=e.FWirePos();
68 fSlant=e.Slant();
69 fCell=e.Cell();
70 fLayer=e.Layer();
71 fStat=e.Stat();
72 fLyr=e.Lyr();
73 fWireNeighbors=e.GetNeighbors();
74 fWireNeighborsID=e.GetIDofNeighbors();
75 fNeighborType=e.GetNeighborsType();
76 }
77 return *this;
78 }

◆ Sag() [1/2]

const double MdcGeoWire::Sag ( void ) const

Definition at line 12 of file bak_MdcGeomSvc-00-01-39/src/MdcGeoWire.cxx.

12 {
13
15 // unit of wire length is mm
16 const double L = (fForward - fBackward).mag();
17 // sag unit is mm
18 return (L*L*1.184E-6/fTension);
19 }
20 // do not consider wire sagita
21 else return 0.;
22}

Referenced by MdcUtilitySvc::docaPatPar(), MdcUtilitySvc::docaPatPar(), and MdcDetector::MdcDetector().

◆ Sag() [2/2]

const double MdcGeoWire::Sag ( void ) const

◆ Sagz() [1/2]

const double MdcGeoWire::Sagz ( const double z) const

Definition at line 28 of file bak_MdcGeomSvc-00-01-39/src/MdcGeoWire.cxx.

28 {
29 return z*0.; //FIXME
30}

◆ Sagz() [2/2]

const double MdcGeoWire::Sagz ( const double z) const

◆ Slant() [1/4]

double MdcGeoWire::Slant ( double i)
inline

Definition at line 150 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

150{return fnomSlant=i;}

◆ Slant() [2/4]

double MdcGeoWire::Slant ( double )

◆ Slant() [3/4]

double MdcGeoWire::Slant ( void ) const
inline

Definition at line 132 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

132{ return fSlant; }

Referenced by EsTimeAlg::execute(), MdcGeoWire(), and operator=().

◆ Slant() [4/4]

double MdcGeoWire::Slant ( void ) const

◆ Stat() [1/4]

int MdcGeoWire::Stat ( int i)
inline

Definition at line 155 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

155{return fStat=i;}

◆ Stat() [2/4]

int MdcGeoWire::Stat ( int )

◆ Stat() [3/4]

int MdcGeoWire::Stat ( void ) const
inline

Definition at line 139 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

139{ return fStat; }

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

◆ Stat() [4/4]

int MdcGeoWire::Stat ( void ) const

◆ Tension() [1/4]

double MdcGeoWire::Tension ( double i)
inline

Definition at line 152 of file bak_MdcGeomSvc-00-01-39/MdcGeomSvc/MdcGeoWire.h.

152{return fTension=i;}

◆ Tension() [2/4]

double MdcGeoWire::Tension ( double )

◆ Tension() [3/4]

double MdcGeoWire::Tension ( void ) const
inline

◆ Tension() [4/4]

double MdcGeoWire::Tension ( void ) const

◆ WirePhi()

double MdcGeoWire::WirePhi ( double z) const

Definition at line 146 of file MdcGeomSvc-00-01-42/src/MdcGeoWire.cxx.

146 {
147 double x,y;
148 double phi;
149 x = MdcGeoWire::GetX(z);
150 y = MdcGeoWire::GetY(z);
151 if(y>=0){
152 phi = acos(x/sqrt(pow(x,2.)+pow(y,2.)));
153 }
154 else {
155 phi =2*M_PI-acos(x/sqrt(pow(x,2.)+pow(y,2.)));
156 }
157 return phi;
158}
Double_t x[10]
double GetX(const double z) const
double GetY(const double z) const

Referenced by GetNeighboratZType3(), GetNeighboratZType4(), and MdcGeomSvc::testAdjacentIntersection().


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