20 if (verbose)
std::cout <<
"\n========== RPC Primitive Converter ==========" << std::endl;
23 for (std::vector<L1TMuon::TriggerPrimitive>::iterator iter = TrigPrim.begin(); iter != TrigPrim.end(); iter++) {
32 if ( SectIndex != (detID.
sector() - 1) + (detID.
region() == -1)*6 )
continue;
40 tmpHits.push_back( thisHit );
44 for (
unsigned int iHit = 0; iHit < tmpHits.size(); iHit++) {
48 bool hit_in_cluster =
false;
49 for (
unsigned int jHit = 0; jHit < clustHits.size(); jHit++) {
54 if (hit_in_cluster)
continue;
58 int prevHi = -999, prevLow = -999;
63 for (
unsigned int jHit = 0; jHit < tmpHits.size(); jHit++) {
64 if (iHit == jHit)
continue;
74 std::unique_ptr<const RPCRoll> roll(rpc_geom->roll( hit1.
RPC_DetId() ));
81 float glob_phi_hi = gpHi.
phi();
82 float glob_phi_low = gpLow.
phi();
83 float glob_phi = (glob_phi_hi + glob_phi_low) / 2.0;
84 float glob_eta = (gpHi.
eta() + gpLow.
eta()) / 2.0;
86 if (verbose)
std::cout <<
"RPC cluster phi = " << glob_phi <<
" (" << glob_phi_hi <<
", " << glob_phi_low
87 <<
"), eta = " << glob_eta <<
" (" << gpHi.
eta() <<
", " << gpLow.
eta() <<
")" << std::endl;
92 clustHits.push_back( hit1 );
105 std::vector<ConvertedHit>
108 std::vector<ConvertedHit> ConvHits;
109 for (
unsigned int iHit = 0; iHit < exHits.size(); iHit++) {
125 ConvHits.push_back(ConvHit);
std::vector< EMTFHitExtra > EMTFHitExtraCollection
RPCDetId RPC_DetId() const
bool sameRpcChamber(l1t::EMTFHitExtra hitA, l1t::EMTFHitExtra hitB)
void set_sector_index(int bits)
void SetNeighbor(int neighbor)
Geom::Phi< T > phi() const
l1t::EMTFHitExtraCollection convert(std::vector< L1TMuon::TriggerPrimitive > TriggPrim, int SectIndex, edm::ESHandle< RPCGeometry > rpc_geom)
const RPCData getRPCData() const
void ImportRPCDigi(const RPCDigi &_digi)
void set_strip_low(int bits)
void set_strip_hi(int bits)
void SetTP(L1TMuon::TriggerPrimitive tp)
std::vector< ConvertedHit > fillConvHits(l1t::EMTFHitExtraCollection exHits)
Abs< T >::type abs(const T &t)
void ImportRPCDetId(const RPCDetId &_detId)
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
void SetValues(int phi, int theta, int ph_hit, int phzvl, int station, int sub, int id, int quality, int pattern, int wire, int strip, int BX)
void SetSectorIndex(int sectorIndex)
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.