CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes
L1TwinMux::MBLTCollection Class Reference

#include <MBLTCollection.h>

Classes

struct  primitiveAssociation
 structure for internal indexing More...
 

Public Types

enum  bxMatch { NOMATCH, INMATCH, OUTMATCH, FULLMATCH }
 
enum  subsystem_offset { kDT, kRPCb, kCSC, kRPCf }
 internal enum for subdetector stub identification More...
 

Public Member Functions

void addStub (const TriggerPrimitiveRef &stub)
 
void associate (double)
 
DTChamberId detId () const
 returns detId More...
 
const TriggerPrimitiveListgetDtSegments () const
 return a reference to the DT only segments More...
 
TriggerPrimitiveList getRpcInAssociatedStubs (size_t dtIndex) const
 rpc inner layer hits associated to a given dt station More...
 
const TriggerPrimitiveListgetRpcInner () const
 rpc inner layer hits only More...
 
TriggerPrimitiveList getRpcInUnassociatedStubs () const
 rpc inner layer hits associated to a given dt station More...
 
TriggerPrimitiveList getRpcOutAssociatedStubs (size_t dtIndex) const
 rpc outer layer hits associated to a given dt station More...
 
const TriggerPrimitiveListgetRpcOuter () const
 rpc outer layer hits only More...
 
TriggerPrimitiveList getRpcOutUnassociatedStubs () const
 rpc outer layer hits associated to a given dt station More...
 
std::vector< std::pair
< TriggerPrimitiveList,
TriggerPrimitiveList > > 
getUnassociatedRpcClusters (double minRpcPhi) const
 RPC unassociated clusters. More...
 
bxMatch haveCommonRpc (size_t dt1, size_t dt2) const
 
 MBLTCollection ()
 default constructor More...
 
 MBLTCollection (const DTChamberId &dtId)
 construction out of DTChamberId: automatically extracts info More...
 
int sector () const
 returns sector More...
 
int station () const
 returns station More...
 
int wheel () const
 returns wheel More...
 
 ~MBLTCollection ()
 

Private Member Functions

bool areCloseClusters (std::vector< size_t > &cluster1, std::vector< size_t > &cluster2, const TriggerPrimitiveList &rpcList1, const TriggerPrimitiveList &rpcList2, double minRpcPhi) const
 
void getUnassociatedRpcClusters (const std::vector< size_t > &rpcUnass, const TriggerPrimitiveList &rpcList, double minRpcPhi, std::vector< std::vector< size_t > > &clusters) const
 RPC unassociated utility functions. More...
 
size_t reduceRpcClusters (std::vector< std::vector< size_t > > &tmpClusters, const TriggerPrimitiveList &rpcList, double minRpcPhi) const
 

Private Attributes

TriggerPrimitiveList _dtAssociatedStubs
 dt segments More...
 
std::vector< primitiveAssociation_dtMapAss
 
TriggerPrimitiveList _rpcInAssociatedStubs
 rpc inner layer hits More...
 
primitiveAssociation _rpcMapUnass
 
TriggerPrimitiveList _rpcOutAssociatedStubs
 rpc outer layer hits More...
 
int _sector
 
int _station
 
int _wheel
 space coordinates More...
 

Detailed Description

Definition at line 31 of file MBLTCollection.h.

Member Enumeration Documentation

internal enum for subdetector stub identification

Enumerator
kDT 
kRPCb 
kCSC 
kRPCf 

Definition at line 36 of file MBLTCollection.h.

Constructor & Destructor Documentation

L1TwinMux::MBLTCollection::MBLTCollection ( )
inline

default constructor

Definition at line 47 of file MBLTCollection.h.

L1TwinMux::MBLTCollection::MBLTCollection ( const DTChamberId dtId)

construction out of DTChamberId: automatically extracts info

Definition at line 10 of file MBLTCollection.cc.

L1TwinMux::MBLTCollection::~MBLTCollection ( )
inline

Definition at line 51 of file MBLTCollection.h.

51 {};

Member Function Documentation

void L1TwinMux::MBLTCollection::addStub ( const TriggerPrimitiveRef stub)

selectively add Trigger Primitives to the MBLTCollection dt, rpc up layer and rpc down layer are stored in separated collections

Definition at line 17 of file MBLTCollection.cc.

bool L1TwinMux::MBLTCollection::areCloseClusters ( std::vector< size_t > &  cluster1,
std::vector< size_t > &  cluster2,
const TriggerPrimitiveList rpcList1,
const TriggerPrimitiveList rpcList2,
double  minRpcPhi 
) const
private

Definition at line 277 of file MBLTCollection.cc.

void L1TwinMux::MBLTCollection::associate ( double  minRpcPhi)

fill up index for In associations

fill up index for Out associations

fill unassociated rpcIn

fill unassociated rpcOut

Definition at line 49 of file MBLTCollection.cc.

DTChamberId L1TwinMux::MBLTCollection::detId ( ) const
inline

returns detId

Definition at line 83 of file MBLTCollection.h.

References DTChamberId.

const TriggerPrimitiveList& L1TwinMux::MBLTCollection::getDtSegments ( ) const
inline

return a reference to the DT only segments

Definition at line 59 of file MBLTCollection.h.

59  {
60  return _dtAssociatedStubs;
61  }
TriggerPrimitiveList _dtAssociatedStubs
dt segments
L1TwinMux::TriggerPrimitiveList L1TwinMux::MBLTCollection::getRpcInAssociatedStubs ( size_t  dtIndex) const

rpc inner layer hits associated to a given dt station

Definition at line 125 of file MBLTCollection.cc.

const TriggerPrimitiveList& L1TwinMux::MBLTCollection::getRpcInner ( ) const
inline

rpc inner layer hits only

Definition at line 64 of file MBLTCollection.h.

64  {
65  return _rpcInAssociatedStubs;
66  }
TriggerPrimitiveList _rpcInAssociatedStubs
rpc inner layer hits
L1TwinMux::TriggerPrimitiveList L1TwinMux::MBLTCollection::getRpcInUnassociatedStubs ( ) const

rpc inner layer hits associated to a given dt station

Definition at line 174 of file MBLTCollection.cc.

L1TwinMux::TriggerPrimitiveList L1TwinMux::MBLTCollection::getRpcOutAssociatedStubs ( size_t  dtIndex) const

rpc outer layer hits associated to a given dt station

Definition at line 148 of file MBLTCollection.cc.

const TriggerPrimitiveList& L1TwinMux::MBLTCollection::getRpcOuter ( ) const
inline

rpc outer layer hits only

Definition at line 69 of file MBLTCollection.h.

69  {
71  }
TriggerPrimitiveList _rpcOutAssociatedStubs
rpc outer layer hits
L1TwinMux::TriggerPrimitiveList L1TwinMux::MBLTCollection::getRpcOutUnassociatedStubs ( ) const

rpc outer layer hits associated to a given dt station

Definition at line 190 of file MBLTCollection.cc.

std::vector< std::pair< L1TwinMux::TriggerPrimitiveList, L1TwinMux::TriggerPrimitiveList > > L1TwinMux::MBLTCollection::getUnassociatedRpcClusters ( double  minRpcPhi) const

RPC unassociated clusters.

loop over unassociated inner and outer RPC hits

Definition at line 408 of file MBLTCollection.cc.

void L1TwinMux::MBLTCollection::getUnassociatedRpcClusters ( const std::vector< size_t > &  rpcUnass,
const TriggerPrimitiveList rpcList,
double  minRpcPhi,
std::vector< std::vector< size_t > > &  clusters 
) const
private

RPC unassociated utility functions.

remember: we are running over an array of indices

remember: we are running over an array of indices

Definition at line 356 of file MBLTCollection.cc.

L1TwinMux::MBLTCollection::bxMatch L1TwinMux::MBLTCollection::haveCommonRpc ( size_t  dt1,
size_t  dt2 
) const

Definition at line 207 of file MBLTCollection.cc.

size_t L1TwinMux::MBLTCollection::reduceRpcClusters ( std::vector< std::vector< size_t > > &  tmpClusters,
const TriggerPrimitiveList rpcList,
double  minRpcPhi 
) const
private

Definition at line 310 of file MBLTCollection.cc.

int L1TwinMux::MBLTCollection::sector ( void  ) const
inline

returns sector

Definition at line 77 of file MBLTCollection.h.

77 { return _sector; }
int L1TwinMux::MBLTCollection::station ( ) const
inline

returns station

Definition at line 80 of file MBLTCollection.h.

80 { return _station; }
int L1TwinMux::MBLTCollection::wheel ( ) const
inline

returns wheel

Definition at line 74 of file MBLTCollection.h.

74 { return _wheel; }
int _wheel
space coordinates

Member Data Documentation

TriggerPrimitiveList L1TwinMux::MBLTCollection::_dtAssociatedStubs
private

dt segments

Definition at line 127 of file MBLTCollection.h.

std::vector< primitiveAssociation > L1TwinMux::MBLTCollection::_dtMapAss
private

Definition at line 139 of file MBLTCollection.h.

TriggerPrimitiveList L1TwinMux::MBLTCollection::_rpcInAssociatedStubs
private

rpc inner layer hits

Definition at line 130 of file MBLTCollection.h.

primitiveAssociation L1TwinMux::MBLTCollection::_rpcMapUnass
private

Definition at line 141 of file MBLTCollection.h.

TriggerPrimitiveList L1TwinMux::MBLTCollection::_rpcOutAssociatedStubs
private

rpc outer layer hits

Definition at line 133 of file MBLTCollection.h.

int L1TwinMux::MBLTCollection::_sector
private

Definition at line 136 of file MBLTCollection.h.

int L1TwinMux::MBLTCollection::_station
private

Definition at line 136 of file MBLTCollection.h.

int L1TwinMux::MBLTCollection::_wheel
private

space coordinates

Definition at line 136 of file MBLTCollection.h.