test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
DTTMax::InfoLayer Struct Reference

#include <DTTMax.h>

Public Member Functions

 InfoLayer (const DTRecHit1D &rh_, const DTSuperLayer &isl, GlobalVector dir, GlobalPoint pos, DTTTrigBaseSync *sync)
 

Public Attributes

DTWireId idWire
 
DTEnums::DTCellSide lr
 
DTRecHit1D rh
 
float time
 
float wireX
 

Detailed Description

Definition at line 61 of file DTTMax.h.

Constructor & Destructor Documentation

DTTMax::InfoLayer::InfoLayer ( const DTRecHit1D rh_,
const DTSuperLayer isl,
GlobalVector  dir,
GlobalPoint  pos,
DTTTrigBaseSync sync 
)

Definition at line 21 of file DTTMax.cc.

References funct::cos(), gather_cfg::cout, DTRecHit1D::digiTime(), idWire, DTSuperLayer::layer(), DTWireId::layerId(), DTRecHit1D::localPosition(), DTTTrigBaseSync::offset(), rh, DTLayer::specificTopology(), PV3DBase< T, PVType, FrameType >::theta(), time, GeomDet::toGlobal(), GeomDet::toLocal(), DTWireId::wire(), DTTopology::wirePosition(), wireX, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

22  :
23  rh(rh_), idWire(rh.wireId()), lr(rh.lrSide()) {
24  const DTLayer* layer = isl.layer(idWire.layerId());
25  LocalPoint wirePosInLayer(layer->specificTopology().wirePosition(idWire.wire()), 0, 0);
26  LocalPoint wirePosInSL=isl.toLocal(layer->toGlobal(wirePosInLayer));
27  wireX = wirePosInSL.x();
28 
29  //-- Correction for signal propagation along wire, t0 subtraction,
30  LocalVector segDir = layer->toLocal(dir);
31  LocalPoint segPos = layer->toLocal(pos);
32  LocalPoint segPosAtLayer = segPos + segDir*(-segPos.z())/cos(segDir.theta());
33  LocalPoint hitPos(rh.localPosition().x() ,segPosAtLayer.y(),0.);
34  time = rh.digiTime() - sync->offset(layer, idWire, layer->toGlobal(hitPos));
35 
36  if (time < 0. || time > 415.) {
37  // FIXME introduce time window to reject "out-of-time" digis
38  cout << " *** WARNING time = " << time << endl;
39  }
40  }
float wirePosition(int wireNumber) const
Returns the x position in the layer of a given wire number.
Definition: DTTopology.cc:86
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
Definition: GeomDet.h:54
double offset(const DTLayer *layer, const DTWireId &wireId, const GlobalPoint &globalPos)
T y() const
Definition: PV3DBase.h:63
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
Definition: GeomDet.h:69
DTRecHit1D rh
Definition: DTTMax.h:64
Geom::Theta< T > theta() const
Definition: PV3DBase.h:75
const DTTopology & specificTopology() const
Definition: DTLayer.cc:42
T z() const
Definition: PV3DBase.h:64
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
Definition: DTRecHit1D.h:113
const DTLayer * layer(DTLayerId id) const
Return the layer corresponding to the given id.
Definition: DTSuperLayer.cc:68
DTEnums::DTCellSide lr
Definition: DTTMax.h:66
virtual LocalPoint localPosition() const
Return the 3-dimensional local position.
Definition: DTRecHit1D.h:60
int wire() const
Return the wire number.
Definition: DTWireId.h:56
DTWireId idWire
Definition: DTTMax.h:65
DTLayerId layerId() const
Return the corresponding LayerId.
Definition: DTWireId.h:62
tuple cout
Definition: gather_cfg.py:145
T x() const
Definition: PV3DBase.h:62
DTEnums::DTCellSide lrSide() const
The side of the cell.
Definition: DTRecHit1D.h:82
DTWireId wireId() const
Return the wireId.
Definition: DTRecHit1D.h:107

Member Data Documentation

DTWireId DTTMax::InfoLayer::idWire

Definition at line 65 of file DTTMax.h.

Referenced by DTTMax::DTTMax(), and InfoLayer().

DTEnums::DTCellSide DTTMax::InfoLayer::lr

Definition at line 66 of file DTTMax.h.

DTRecHit1D DTTMax::InfoLayer::rh

Definition at line 64 of file DTTMax.h.

Referenced by InfoLayer().

float DTTMax::InfoLayer::time
float DTTMax::InfoLayer::wireX

Definition at line 67 of file DTTMax.h.

Referenced by DTTMax::DTTMax(), and InfoLayer().