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 63 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 23 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().

24  :
25  rh(rh_), idWire(rh.wireId()), lr(rh.lrSide()) {
26  const DTLayer* layer = isl.layer(idWire.layerId());
27  LocalPoint wirePosInLayer(layer->specificTopology().wirePosition(idWire.wire()), 0, 0);
28  LocalPoint wirePosInSL=isl.toLocal(layer->toGlobal(wirePosInLayer));
29  wireX = wirePosInSL.x();
30 
31  //-- Correction for signal propagation along wire, t0 subtraction,
32  LocalVector segDir = layer->toLocal(dir);
33  LocalPoint segPos = layer->toLocal(pos);
34  LocalPoint segPosAtLayer = segPos + segDir*(-segPos.z())/cos(segDir.theta());
35  LocalPoint hitPos(rh.localPosition().x() ,segPosAtLayer.y(),0.);
36  time = rh.digiTime() - sync->offset(layer, idWire, layer->toGlobal(hitPos));
37 
38  if (time < 0. || time > 415.) {
39  // FIXME introduce time window to reject "out-of-time" digis
40  cout << " *** WARNING time = " << time << endl;
41  }
42  }
float wirePosition(int wireNumber) const
Returns the x position in the layer of a given wire number.
Definition: DTTopology.cc:88
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
Definition: GeomDet.h:47
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:62
DTRecHit1D rh
Definition: DTTMax.h:66
Geom::Theta< T > theta() const
Definition: PV3DBase.h:75
const DTTopology & specificTopology() const
Definition: DTLayer.cc:44
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:115
const DTLayer * layer(DTLayerId id) const
Return the layer corresponding to the given id.
Definition: DTSuperLayer.cc:70
DTEnums::DTCellSide lr
Definition: DTTMax.h:68
virtual LocalPoint localPosition() const
Return the 3-dimensional local position.
Definition: DTRecHit1D.h:62
int wire() const
Return the wire number.
Definition: DTWireId.h:58
DTWireId idWire
Definition: DTTMax.h:67
DTLayerId layerId() const
Return the corresponding LayerId.
Definition: DTWireId.h:64
tuple cout
Definition: gather_cfg.py:121
T x() const
Definition: PV3DBase.h:62
DTEnums::DTCellSide lrSide() const
The side of the cell.
Definition: DTRecHit1D.h:84
DTWireId wireId() const
Return the wireId.
Definition: DTRecHit1D.h:109

Member Data Documentation

DTWireId DTTMax::InfoLayer::idWire

Definition at line 67 of file DTTMax.h.

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

DTEnums::DTCellSide DTTMax::InfoLayer::lr

Definition at line 68 of file DTTMax.h.

DTRecHit1D DTTMax::InfoLayer::rh

Definition at line 66 of file DTTMax.h.

Referenced by InfoLayer().

float DTTMax::InfoLayer::time

Definition at line 70 of file DTTMax.h.

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

float DTTMax::InfoLayer::wireX

Definition at line 69 of file DTTMax.h.

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