10#include "CLHEP/Geometry/Point3D.h"
11#ifndef ENABLE_BACKWARDS_COMPATIBILITY
14#include "KalFitAlg/KalFitWire.h"
15#include "KalFitAlg/KalFitLayer_Mdc.h"
16#include "KalFitAlg/KalFitSuper_Mdc.h"
18const double KalFitWire::A[NREGION] = { 8.5265E-7,
21const double KalFitWire::F[
NLAYER] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,
22 47.2,46.6,47.0,46,45,46.7,46,45,44.6,
23 45.9,45.9,45.3,44.5,44.0,46.0,45.6,
24 44.2,43.6,44.0,43.5,43.1,42.9,42.4,
25 42.7,42.5,42.2,41,42,42,42,41.4,42.5,
27const double L49_2 = 220.4*220.4;
37 localId_(localID), fwd_(fwd), bck_(bck), layer_(layer),
39 ddl_(0), ddr_(0), distance_(0) {
41 int layer_ID = layer_.
layerId();
42 xyPosition_ = 0.5 * (fwd_+bck_);
49 dx_ = (double)fwd_.x() - (double)bck_.x();
50 dy_ = (double)fwd_.y() - (double)bck_.y();
56 wire_ = (CLHEP::Hep3Vector)
fwd - (CLHEP::Hep3Vector)
bck;
57 lzx_ = sqrt(wire_.z()*wire_.z()+wire_.x()*wire_.x());
66 else if (layer_ID < 50){
67 double f_current(F[layer_ID]);
68 double l(wire_.mag());
69 A_ = A[2]*F[49]*F[49]*
L49_2/(f_current*f_current*l*l);
71 std::cout <<
"*** PROBLEM WIRE !!!!! " << std::endl;
87 localId_(0), fwd_(0,0,0), bck_(0,0,0), layer_(*(
KalFitLayer_Mdc *)NULL),
106 wire_ =(CLHEP::Hep3Vector)fwd_ - (CLHEP::Hep3Vector)bck_;
107 int layer_ID = layer_.
layerId();
114 }
else if (layer_ID < 50){
115 double f_current(F[layer_ID]);
116 double l(wire_.mag());
117 A_ = A[2]*F[49]*F[49]*
L49_2/(f_current*f_current*l*l);
119 std::cout <<
"*** PROBLEM WIRE !!!!! " << std::endl;
124const KalFitWire * KalFitWire::left(
void)
const{
130const KalFitWire * KalFitWire::right(
void)
const{
193 if (((**(neighbor_+2)).state_&
WireHit)&&
194 ((**(neighbor_+3)).state_&
WireHit)){
HepGeom::Point3D< double > HepPoint3D
const int localLayerId(void) const
returns local-layer ID
const KalFitSuper_Mdc & superLayer(void) const
returns super-layer
const int layerId(void) const
returns layer ID
const int offset(void) const
returns offset of numbering(local ID)
const int localMaxId(void) const
returns local max ID
const int nWire(void) const
returns number of wires
const int layerMaxId(void) const
returns layer max ID
Description of a Wire class.
~KalFitWire(void)
destructor
HepPoint3D bck(void) const
HepPoint3D fwd(void) const
Geometry :
void chk_left_and_right(void)