16 : simhit_matcher_(sh), gem_geo_(geom) {
36 for (
auto id : det_ids) {
42 cout <<
"hit_strips_fat ";
43 copy(hit_strips.begin(), hit_strips.end(), ostream_iterator<int>(
cout,
" "));
47 auto rechits_in_det = rechits.get(
GEMDetId(
id));
49 for (
auto d = rechits_in_det.first;
d != rechits_in_det.second; ++
d) {
51 cout <<
"recHit " << p_id <<
" " << *
d << endl;
57 int firstStrip =
d->firstClusterStrip();
58 int cls =
d->clusterSize();
59 bool stripFound =
false;
61 for (
int i = firstStrip;
i < (firstStrip + cls);
i++) {
62 if (hit_strips.find(
i) != hit_strips.end())
70 cout <<
"oki" << endl;
81 std::set<unsigned int>
result;
83 result.insert(
p.first);
88 std::set<unsigned int>
result;
90 result.insert(
p.first);
95 std::set<unsigned int>
result;
97 result.insert(
p.first);
129 return layers.size();
148 for (
auto id : detids) {
150 result.insert(idd.
roll());
156 unsigned int id =
digi_id(rechit);
175 float sumx, sumy, sumz;
176 sumx = sumy = sumz = 0.f;
178 for (
auto &
d : rechit) {
180 if (gp == point_zero)
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
constexpr uint32_t rawId() const
get the raw id
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.
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
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)