31 bool segmentNoisyPhi =
false;
37 nPhiHits = phiRecHits.size();
42 bool segmentNoisyZ =
false;
49 nZHits = zRecHits.size();
55 if(segmentNoisyPhi || segmentNoisyZ)
72 double angleZ = fabs( atan(segment4DLocalDir.
y()/segment4DLocalDir.
z())*180./
Geom::pi() );
76 double anglePhi = fabs( atan(segment4DLocalDir.
x()/segment4DLocalDir.
z())*180./
Geom::pi() );
85 bool segmentNoisy =
false;
87 std::vector<DTRecHit1D>::const_iterator dtHit = dtHits.begin();
88 std::vector<DTRecHit1D>::const_iterator dtHits_end = dtHits.end();
89 for(; dtHit != dtHits_end; ++dtHit){
93 bool isNoisy =
false, isFEMasked =
false, isTDCMasked =
false, isTrigMask =
false,
94 isDead =
false, isNohv =
false;
95 statusMap->
cellStatus(wireId, isNoisy, isFEMasked, isTDCMasked, isTrigMask, isDead, isNohv);
97 LogTrace(
"Calibration") <<
"Wire: " << wireId <<
" is noisy, skipping!";
98 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.