#include <DTLinearDriftFromDBAlgo.h>
Public Member Functions | |
virtual bool | compute (const DTLayer *layer, const DTDigi &digi, LocalPoint &leftPoint, LocalPoint &rightPoint, LocalError &error) const |
virtual bool | compute (const DTLayer *layer, const DTRecHit1D &recHit1D, const float &angle, DTRecHit1D &newHit1D) const |
virtual bool | compute (const DTLayer *layer, const DTRecHit1D &recHit1D, const float &angle, const GlobalPoint &globPos, DTRecHit1D &newHit1D) const |
DTLinearDriftFromDBAlgo (const edm::ParameterSet &config) | |
Constructor. More... | |
virtual void | setES (const edm::EventSetup &setup) |
Pass the Event Setup to the algo at each event. More... | |
virtual | ~DTLinearDriftFromDBAlgo () |
Destructor. More... | |
Public Member Functions inherited from DTRecHitBaseAlgo | |
DTRecHitBaseAlgo (const edm::ParameterSet &config) | |
Constructor. More... | |
virtual edm::OwnVector < DTRecHit1DPair > | reconstruct (const DTLayer *layer, const DTLayerId &layerId, const DTDigiCollection::Range &digiRange) |
Build all hits in the range associated to the layerId, at the 1st step. More... | |
virtual | ~DTRecHitBaseAlgo () |
Destructor. More... | |
Private Member Functions | |
virtual bool | compute (const DTLayer *layer, const DTWireId &wireId, const float digiTime, const GlobalPoint &globPos, LocalPoint &leftPoint, LocalPoint &rightPoint, LocalError &error, int step) const |
virtual bool | compute (const DTLayer *layer, const DTWireId &wireId, const float digiTime, const GlobalPoint &globPos, DTRecHit1D &newHit1D, int step) const |
Private Attributes | |
const bool | debug |
const bool | doVdriftCorr |
const MagneticField * | field |
const float | maxTime |
const float | minTime |
const DTMtime * | mTimeMap |
int | nominalB |
const bool | stepTwoFromDigi |
const DTRecoUncertainties * | uncertMap |
bool | useUncertDB |
Additional Inherited Members | |
Protected Attributes inherited from DTRecHitBaseAlgo | |
DTTTrigBaseSync * | theSync |
Concrete implementation of DTRecHitBaseAlgo. Compute drift distance using constant drift velocity read from database.
Definition at line 18 of file DTLinearDriftFromDBAlgo.h.
DTLinearDriftFromDBAlgo::DTLinearDriftFromDBAlgo | ( | const edm::ParameterSet & | config | ) |
Constructor.
Definition at line 26 of file DTLinearDriftFromDBAlgo.cc.
References gather_cfg::cout, debug, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), and useUncertDB.
|
virtual |
|
virtual |
First step in computation of Left/Right hits from a Digi. The results are the local position (in DTLayer frame) of the Left and Right hit, and the error (which is common). Returns false on failure. The hit is assumed to be at the wire center.
Implements DTRecHitBaseAlgo.
Definition at line 89 of file DTLinearDriftFromDBAlgo.cc.
References relativeConstraints::error, DTLayer::id(), DTTopology::isWireValid(), DTLayer::specificTopology(), DTDigi::time(), GeomDet::toGlobal(), DTDigi::wire(), and DTTopology::wirePosition().
Referenced by compute().
|
virtual |
Second step in hit position computation. It is the same as first step since the angular information is not used NOTE: Only position and error of the new hit are modified
Implements DTRecHitBaseAlgo.
Definition at line 109 of file DTLinearDriftFromDBAlgo.cc.
References compute(), DTRecHit1D::digiTime(), DTTopology::isWireValid(), DTRecHit1D::localPosition(), DTRecHit1D::localPositionError(), DTRecHit1D::setPositionAndError(), DTLayer::specificTopology(), stepTwoFromDigi, GeomDet::toGlobal(), DTWireId::wire(), DTRecHit1D::wireId(), and DTTopology::wirePosition().
|
virtual |
Third (and final) step in hits position computation. Also the hit position along the wire is available and can be used to correct the drift time for particle TOF and propagation of signal along the wire. NOTE: Only position and error of the new hit are modified
Implements DTRecHitBaseAlgo.
Definition at line 133 of file DTLinearDriftFromDBAlgo.cc.
References compute(), DTRecHit1D::digiTime(), and DTRecHit1D::wireId().
|
privatevirtual |
cf. http://arxiv.org/PS_cache/arxiv/pdf/0911/0911.4895v2.pdf
Definition at line 144 of file DTLinearDriftFromDBAlgo.cc.
References funct::abs(), DTVelocityUnits::cm_per_ns, gather_cfg::cout, debug, doVdriftCorr, shallow::drift(), DTRecoUncertainties::get(), DTMtime::get(), DTTopology::isWireValid(), maxTime, mTimeMap, nominalB, DTTTrigBaseSync::offset(), DTLayer::specificTopology(), DTChamberId::station(), DTSuperLayerId::superLayer(), DTLayerId::superlayerId(), DTRecHitBaseAlgo::theSync, GeomDet::toLocal(), uncertMap, useUncertDB, DTChamberId::wheel(), DTWireId::wire(), DTTopology::wirePosition(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
privatevirtual |
Definition at line 232 of file DTLinearDriftFromDBAlgo.cc.
References compute(), relativeConstraints::error, edm::hlt::Exception, DTEnums::Left, DTRecHit1D::localPosition(), DTRecHit1D::lrSide(), DTEnums::Right, DTRecHit1D::setPositionAndError(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
virtual |
Pass the Event Setup to the algo at each event.
Implements DTRecHitBaseAlgo.
Definition at line 56 of file DTLinearDriftFromDBAlgo.cc.
References gather_cfg::cout, debug, field, edm::EventSetup::get(), HLT_ES_cff::magfield, mTimeMap, nominalB, MagneticField::nominalValue(), DTTTrigBaseSync::setES(), DTRecHitBaseAlgo::theSync, uncertMap, useUncertDB, DTRecoUncertainties::version(), and DTMtime::version().
|
private |
Definition at line 112 of file DTLinearDriftFromDBAlgo.h.
Referenced by compute(), DTLinearDriftFromDBAlgo(), and setES().
|
private |
Definition at line 101 of file DTLinearDriftFromDBAlgo.h.
Referenced by compute().
|
private |
Definition at line 88 of file DTLinearDriftFromDBAlgo.h.
Referenced by setES().
|
private |
Definition at line 98 of file DTLinearDriftFromDBAlgo.h.
Referenced by compute().
|
private |
Definition at line 95 of file DTLinearDriftFromDBAlgo.h.
|
private |
Definition at line 85 of file DTLinearDriftFromDBAlgo.h.
|
private |
Definition at line 89 of file DTLinearDriftFromDBAlgo.h.
|
private |
Definition at line 105 of file DTLinearDriftFromDBAlgo.h.
Referenced by compute().
|
private |
Definition at line 92 of file DTLinearDriftFromDBAlgo.h.
|
private |
Definition at line 109 of file DTLinearDriftFromDBAlgo.h.
Referenced by compute(), DTLinearDriftFromDBAlgo(), and setES().