31 bool segmentNoisyPhi =
false;
37 nPhiHits = phiRecHits.size();
43 bool segmentNoisyZ =
false;
50 nZHits = zRecHits.size();
56 if(segmentNoisyPhi || segmentNoisyZ)
73 double angleZ = fabs( atan(segment4DLocalDir.
y()/segment4DLocalDir.
z())*180./
Geom::pi() );
77 double anglePhi = fabs( atan(segment4DLocalDir.
x()/segment4DLocalDir.
z())*180./
Geom::pi() );
86 bool segmentNoisy =
false;
88 std::vector<DTRecHit1D>::const_iterator dtHit = dtHits.begin();
89 std::vector<DTRecHit1D>::const_iterator dtHits_end = dtHits.end();
90 for(; dtHit != dtHits_end; ++dtHit){
94 bool isNoisy =
false, isFEMasked =
false, isTDCMasked =
false, isTrigMask =
false,
95 isDead =
false, isNohv =
false;
96 statusMap->
cellStatus(wireId, isNoisy, isFEMasked, isTDCMasked, isTrigMask, isDead, isNohv);
98 LogTrace(
"Calibration") <<
"Wire: " << wireId <<
" is noisy, skipping!";
99 segmentNoisy =
true;
break;
LocalVector localDirection() const override
Local direction in Chamber frame.
const DTChamberRecSegment2D * phiSegment() const
The superPhi segment: 0 if no phi projection available.
double chi2() const override
Chi2 of the segment fit.
def setup(process, global_tag, zero_tesla=False)
bool operator()(DTRecSegment4D const &, edm::Event const &, edm::EventSetup const &)
bool hasPhi() const
Does it have the Phi projection?
std::vector< DTRecHit1D > specificRecHits() const
Access to specific components.
bool hasZed() const
Does it have the Z projection?
const DTSLRecSegment2D * zSegment() const
The Z segment: 0 if not zed projection available.
int cellStatus(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool &noiseFlag, bool &feMask, bool &tdcMask, bool &trigMask, bool &deadFlag, bool &nohvFlag) const
get content
bool checkNoisySegment(edm::ESHandle< DTStatusFlag > const &, std::vector< DTRecHit1D > const &)
int degreesOfFreedom() const override
Degrees of freedom of the segment fit.