13 :simhit_matcher_(sh),gem_geo_(geom)
43 for (
auto id: det_ids)
51 cout<<
"hit_strips_fat ";
52 copy(hit_strips.begin(), hit_strips.end(), ostream_iterator<int>(
cout,
" "));
56 auto rechits_in_det = rechits.get(
GEMDetId(
id));
58 for (
auto d = rechits_in_det.first;
d != rechits_in_det.second; ++
d)
65 int firstStrip =
d->firstClusterStrip();
66 int cls =
d->clusterSize();
67 bool stripFound =
false;
69 for(
int i = firstStrip;
i < (firstStrip + cls);
i++){
71 if (hit_strips.find(
i) != hit_strips.end()) stripFound =
true;
76 if (!stripFound)
continue;
90 std::set<unsigned int>
93 std::set<unsigned int>
result;
99 std::set<unsigned int>
102 std::set<unsigned int>
result;
107 std::set<unsigned int>
110 std::set<unsigned int>
result;
149 return layers.size();
173 for (
auto id: detids)
176 result.insert( idd.
roll() );
184 unsigned int id =
digi_id(rechit);
204 if (rechit.empty())
return point_zero;
206 float sumx, sumy, sumz;
207 sumx = sumy = sumz = 0.f;
209 for (
auto&
d: rechit)
212 if (gp == point_zero)
continue;
std::set< unsigned int > detIdsGEM() const
GEM partitions' detIds with SimHits.
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
const RecHitContainer & recHitsInDetId(unsigned int) const
const RecHitContainer & recHitsInSuperChamber(unsigned int) const
T getUntrackedParameter(std::string const &, T const &) const
std::set< int > stripNumbersInDetId(unsigned int) const
std::set< unsigned int > chamberIds() const
std::vector< LayerSetAndLayers > layers(const SeedingLayerSetsHits &sets)
std::map< unsigned int, RecHitContainer > detid_to_recHits_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::set< int > hitStripsInDetId(unsigned int, int margin_n_strips=0) const
Global3DPoint GlobalPoint
const RecHitContainer no_recHits_
int chamber() const
Chamber id: it identifies a chamber in a ring it goes from 1 to 36.
std::set< unsigned int > detIds() const
const Plane & surface() const
The nominal surface of the GeomDet.
const GEMEtaPartition * etaPartition(GEMDetId id) const
Return a GEMEtaPartition given its id.
DigiType digi_type(const Digi &d)
std::map< unsigned int, RecHitContainer > superchamber_to_recHits_
GEMDetId chamberId() const
Return the corresponding ChamberId.
uint32_t rawId() const
get the raw id
std::set< unsigned int > superChamberIds() const
const SimHitMatcher & simhit_matcher_
int station() const
Station id : the station is the pair of chambers at same disk.
void matchRecHitsToSimTrack(const GEMRecHitCollection &recHits)
GlobalPoint recHitMeanPosition(const RecHitContainer &rechits) const
int region() const
Region id: 0 for Barrel Not in use, +/-1 For +/- Endcap.
int nLayersWithRecHitsInSuperChamber(unsigned int) const
T const * product() const
virtual const GeomDet * idToDet(DetId) const override
std::map< unsigned int, RecHitContainer > chamber_to_recHits_
int digi_channel(const Digi &d)
void init(const edm::Event &)
edm::Handle< GEMRecHitCollection > gem_rechits_
GlobalPoint recHitPosition(const RecHit &rechit) const
const GEMGeometry & gem_geo_
matching::DigiContainer RecHitContainer
GEMRecHitMatcher(const SimHitMatcher &sh, const edm::Event &, const GEMGeometry &geom, const edm::ParameterSet &cfg, edm::EDGetToken &)
const RecHitContainer & recHitsInChamber(unsigned int) const
std::set< int > partitionNumbers() const
unsigned int digi_id(const Digi &d)