43 DTWireId wireId(layerId, (*digi).wire());
45 bool isDouble =
false;
48 if (wireId == (*doubleWireCheck).wireId()) {
73 result.push_back(recHitPair);
86 if (!
layer->specificTopology().isWireValid(digi.
wire()))
115 const float digiTime,
127 if (digiTime < minTime || digiTime >
maxTime) {
129 cout <<
"[DTNoDriftAlgo]*** Drift time out of window for in-time hits " << digiTime << endl;
142 if (!
layer->specificTopology().isWireValid(wireId.
wire()))
151 cout <<
"[DTNoDriftAlgo] Compute drift distance, for digi at wire: " << wireId << endl
152 <<
" Step: " <<
step << endl
153 <<
" Digi time: " << digiTime
156 <<
" Fixed Drift distance: " <<
drift << endl
158 <<
" Left point: " << leftPoint << endl
159 <<
" Right point: " << rightPoint << endl
160 <<
" Error: " <<
error << endl;
169 const float digiTime,
179 switch (newHit1D.
lrSide()) {
189 throw cms::Exception(
"InvalidDTCellSide") <<
"[DTNoDriftAlgo] Compute at Step " <<
step <<
", Hit side " 190 << newHit1D.
lrSide() <<
" is invalid!" << endl;
void setES(const edm::EventSetup &setup) override
Pass the Event Setup to the algo at each event.
Point3DBase< Scalar, LocalTag > LocalPoint
const float hitResolution
int wire() const
Return the wire number.
edm::OwnVector< DTRecHit1DPair > reconstruct(const DTLayer *layer, const DTLayerId &layerId, const DTDigiCollection::Range &digiRange) override
uint32_t cc[maxCellsPerHit]
LocalVector drift(const StripGeomDetUnit *, const MagneticField &, const SiStripLorentzAngle &)
int wire() const
Return wire number.
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
double time() const
Get time in ns.
void setPositionAndError(DTEnums::DTCellSide lrside, const LocalPoint &point, const LocalError &err)
DTEnums::DTCellSide lrSide() const
The side of the cell.
~DTNoDriftAlgo() override
Destructor.
std::pair< int, edm::FunctionWithDict > OK
std::pair< const_iterator, const_iterator > Range
std::vector< DigiType >::const_iterator const_iterator
LocalError localPositionError() const override
Return the 3-dimensional error on the local position.
DTWireId wireId() const
Return the wireId.
DTNoDriftAlgo(const edm::ParameterSet &config, edm::ConsumesCollector)
Constructor.
void setPositionAndError(LocalPoint pos, LocalError err)
Set the local position and its error.
bool compute(const DTLayer *layer, const DTDigi &digi, LocalPoint &leftPoint, LocalPoint &rightPoint, LocalError &error) const override
LocalPoint localPosition() const override
Return the 3-dimensional local position.
T angle(T x1, T y1, T z1, T x2, T y2, T z2)