14 int clusCharge=accumulate( cluster->amplitudes().begin(), cluster->amplitudes().end(), uint16_t(0));
15 return (clusCharge>chargeCut);
19 int subdet,
float chargeCut)
const
21 auto const &
hit = aRecHit.
hit();
28 const std::type_info &
type =
typeid(aRecHit);
29 throw cms::Exception(
"Unknown RecHit Type") <<
"checkCharge/SiStripMatchedRecHit2D: Wrong recHit type: " << type.name();
35 else return (clus.cluster_pixel()->charge()>chargeCut);
50 }
else if (detid.
subdetId()==1)
return 0.0285;
55 std::pair<bool,double>
74 else return estimateResult;
77 return estimateResult;
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &, const TrackingRecHit &) const
const LocalTrajectoryParameters & localParameters() const
OmniClusterRef const & stereoClusterRef() const
bool checkCharge(const TrackingRecHit &aRecHit, int subdet, float chargeCut) const
float pTChargeCutThreshold_
ClusterStripRef cluster_strip() const
OmniClusterRef const & monoClusterRef() const
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
unsigned int getRTTI() const
float sensorThickness(const DetId &detid) const
Detector identifier class for the strip tracker.
std::pair< bool, double > HitReturnType
virtual TrackingRecHit const * hit() const
virtual OmniClusterRef const & firstClusterRef() const =0
bool checkClusterCharge(const OmniClusterRef::ClusterStripRef cluster, float chargeCut) const
GlobalVector globalMomentum() const
virtual std::pair< bool, double > estimate(const TrajectoryStateOnSurface &, const TrackingRecHit &) const
DetId geographicalId() const
ModuleGeometry moduleGeometry() const
Detector det() const
get the detector field from this detid
double minGoodCharge(int subdet) const