56 digi != digiRange.second;
59 DTWireId wireId(layerId, (*digi).wire());
61 bool isDouble =
false;
63 doubleWireCheck != result.
end();
65 if( wireId == (*doubleWireCheck).wireId()) {
72 if (isDouble)
continue;
77 bool OK =
compute(layer, *digi, lpoint, rpoint, tmpErr);
112 return compute(layer, wireId, digi.
time(), globWirePos, leftPoint, rightPoint,
error, 1);
142 const float digiTime,
155 if (digiTime < minTime || digiTime >
maxTime) {
156 if (
debug)
cout <<
"[DTNoDriftAlgo]*** Drift time out of window for in-time hits "
184 cout <<
"[DTNoDriftAlgo] Compute drift distance, for digi at wire: " << wireId << endl
185 <<
" Step: " << step << endl
186 <<
" Digi time: " << digiTime << endl
188 <<
" Fixed Drift distance: " << drift << endl
189 <<
" Hit Resolution: " << hitResolution << endl
190 <<
" Left point: " << leftPoint << endl
191 <<
" Right point: " << rightPoint << endl
192 <<
" Error: " << error << endl;
205 const float digiTime,
213 if(
compute(layer, wireId, digiTime, globPos, leftPoint, rightPoint, error, step)) {
215 switch(newHit1D.
lrSide()) {
226 throw cms::Exception(
"InvalidDTCellSide") <<
"[DTNoDriftAlgo] Compute at Step "
227 << step <<
", Hit side "
229 <<
" is invalid!" << endl;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
float wirePosition(int wireNumber) const
Returns the x position in the layer of a given wire number.
pair< int, edm::FunctionWithDict > OK
DTLayerId id() const
Return the DetId of this SL.
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
LocalVector drift(const StripGeomDetUnit *, const MagneticField &, const SiStripLorentzAngle &)
int wire() const
Return wire number.
const DTTopology & specificTopology() const
double time() const
Get time in ns.
virtual bool compute(const DTLayer *layer, const DTDigi &digi, LocalPoint &leftPoint, LocalPoint &rightPoint, LocalError &error) const
void setPositionAndError(DTEnums::DTCellSide lrside, const LocalPoint &point, const LocalError &err)
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
virtual edm::OwnVector< DTRecHit1DPair > reconstruct(const DTLayer *layer, const DTLayerId &layerId, const DTDigiCollection::Range &digiRange)
virtual LocalError localPositionError() const
Return the 3-dimensional error on the local position.
virtual LocalPoint localPosition() const
Return the 3-dimensional local position.
int wire() const
Return the wire number.
std::vector< DigiType >::const_iterator const_iterator
virtual ~DTNoDriftAlgo()
Destructor.
bool isWireValid(const int wireNumber) const
static float hitResolution
std::pair< const_iterator, const_iterator > Range
void setPositionAndError(LocalPoint pos, LocalError err)
Set the local position and its error.
virtual void setES(const edm::EventSetup &setup)
Pass the Event Setup to the algo at each event.
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
DTNoDriftAlgo(const edm::ParameterSet &config)
Constructor.
DTEnums::DTCellSide lrSide() const
The side of the cell.
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
DTWireId wireId() const
Return the wireId.