|
|
Go to the documentation of this file.
42 DTWireId wireId(layerId, (*digi).wire());
44 bool isDouble =
false;
47 if (wireId == (*doubleWireCheck).wireId()) {
72 result.push_back(recHitPair);
85 if (!
layer->specificTopology().isWireValid(digi.
wire()))
114 const float digiTime,
126 if (digiTime < minTime || digiTime >
maxTime) {
128 cout <<
"[DTNoDriftAlgo]*** Drift time out of window for in-time hits " << digiTime << endl;
141 if (!
layer->specificTopology().isWireValid(wireId.
wire()))
150 cout <<
"[DTNoDriftAlgo] Compute drift distance, for digi at wire: " << wireId << endl
151 <<
" Step: " <<
step << endl
152 <<
" Digi time: " << digiTime
155 <<
" Fixed Drift distance: " <<
drift << endl
157 <<
" Left point: " << leftPoint << endl
158 <<
" Right point: " << rightPoint << endl
159 <<
" Error: " <<
error << endl;
168 const float digiTime,
178 switch (newHit1D.
lrSide()) {
188 throw cms::Exception(
"InvalidDTCellSide") <<
"[DTNoDriftAlgo] Compute at Step " <<
step <<
", Hit side "
189 << newHit1D.
lrSide() <<
" is invalid!" << endl;
int wire() const
Return the wire number.
DTEnums::DTCellSide lrSide() const
The side of the cell.
Point3DBase< Scalar, LocalTag > LocalPoint
LocalError localPositionError() const override
Return the 3-dimensional error on the local position.
double time() const
Get time in ns.
std::pair< int, edm::FunctionWithDict > OK
std::vector< DigiType >::const_iterator const_iterator
void setPositionAndError(LocalPoint pos, LocalError err)
Set the local position and its error.
DTWireId wireId() const
Return the wireId.
LocalVector drift(const StripGeomDetUnit *, const MagneticField &, const SiStripLorentzAngle &)
int wire() const
Return wire number.
bool compute(const DTLayer *layer, const DTDigi &digi, LocalPoint &leftPoint, LocalPoint &rightPoint, LocalError &error) const override
constexpr std::array< uint8_t, layerIndexSize > layer
LocalPoint localPosition() const override
Return the 3-dimensional local position.
const float hitResolution
DTNoDriftAlgo(const edm::ParameterSet &config)
Constructor.
edm::OwnVector< DTRecHit1DPair > reconstruct(const DTLayer *layer, const DTLayerId &layerId, const DTDigiCollection::Range &digiRange) override
~DTNoDriftAlgo() override
Destructor.
void setES(const edm::EventSetup &setup) override
Pass the Event Setup to the algo at each event.
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
void setPositionAndError(DTEnums::DTCellSide lrside, const LocalPoint &point, const LocalError &err)
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
std::pair< const_iterator, const_iterator > Range