Definition at line 35 of file SiPixelPhase1RecHits.cc.
References funct::abs(), applyVertexCut_, CLUST_X, CLUST_Y, SiPixelRecHit::cluster(), CLUSTER_PROB, SiPixelRecHit::clusterProbability(), cuy::col, DEFINE_FWK_MODULE, ERROR_X, ERROR_Y, edm::EventSetup::get(), edm::Event::getByToken(), h, hcalSimParameters_cfi::hb, HistogramManagerHolder::histo, TrackerGeometry::idToDet(), createfilelist::int, edm::ESHandleBase::isValid(), edm::HandleBase::isValid(), Topology::measurementPosition(), NRECHITS, offlinePrimaryVerticesToken_, onlyValid_, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, POS, RecoTauValidation_cfi::sizeX, RecoTauValidation_cfi::sizeY, PixelGeomDetUnit::specificTopology(), mathSSE::sqrt(), srcToken_, HiIsolationCommonParameters_cff::track, mixOne_simraw_on_sim_cfi::tracker, l1t::tracks, TrackingRecHit::valid, electrons_cff::vertices, PV2DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), PV2DBase< T, PVType, FrameType >::y(), PV3DBase< T, PVType, FrameType >::y(), and LocalError::yy().
43 if (!tracks.isValid())
return;
51 for (
auto const &
track : *tracks) {
55 bool isBpixtrack =
false, isFpixtrack =
false;
57 auto const & trajParams =
track.extra()->trajParams();
59 for(
unsigned int h=0;
h<
track.recHitsSize();
h++){
62 if(!
hit->isValid())
continue;
65 uint32_t subdetid = (
id.subdetId());
71 if (!isBpixtrack && !isFpixtrack)
continue;
74 for(
unsigned int h=0;
h<
track.recHitsSize();
h++){
75 auto rechit = *(
hb+
h);
77 if(!rechit->isValid())
continue;
80 DetId id = rechit->geographicalId();
81 uint32_t subdetid = (
id.subdetId());
95 sizeX = (*clust).sizeX();
96 sizeY = (*clust).sizeY();
105 int row = (
int) mp.
x();
108 float rechit_x = lp.
x();
109 float rechit_y = lp.
y();
111 LocalError lerr = rechit->localPositionError();
112 float lerr_x =
sqrt(lerr.
xx());
113 float lerr_y =
sqrt(lerr.
yy());
125 histo[
POS].fill(rechit_x, rechit_y,
id, &iEvent);
129 if (clusterProbability > 0)
float clusterProbability(unsigned int flags=0) const
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual MeasurementPoint measurementPosition(const LocalPoint &) const =0
Abs< T >::type abs(const T &t)
ClusterRef cluster() const
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
std::vector< HistogramManager > histo
const TrackerGeomDet * idToDet(DetId) const override
edm::EDGetTokenT< reco::VertexCollection > offlinePrimaryVerticesToken_
edm::EDGetTokenT< reco::TrackCollection > srcToken_