CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Typedefs | Enumerations | Functions
matching Namespace Reference

Typedefs

typedef std::tuple< unsigned
int, int, int, DigiType, int,
int, int, float > 
Digi
 
typedef std::vector< DigiDigiContainer
 

Enumerations

enum  DigiType {
  INVALID =0, GEM_STRIP, GEM_PAD, GEM_COPAD,
  CSC_STRIP, CSC_WIRE, CSC_CLCT, CSC_ALCT,
  CSC_LCT
}
 

Functions

int digi_bx (const Digi &d)
 
int digi_channel (const Digi &d)
 
float & digi_dphi (Digi &d)
 
float digi_dphi (const Digi &d)
 
unsigned int digi_id (const Digi &d)
 
int digi_pattern (const Digi &d)
 
int digi_quality (const Digi &d)
 
DigiType digi_type (const Digi &d)
 
int & digi_wg (Digi &d)
 
int digi_wg (const Digi &d)
 
bool is_valid (const Digi &d)
 
Digi make_digi ()
 
Digi make_digi (unsigned int id, int ch, int bx, DigiType t)
 
Digi make_digi (unsigned int id, int ch, int bx, DigiType t, int q)
 
Digi make_digi (unsigned int id, int ch, int bx, DigiType t, int q, int pat)
 
Digi make_digi (unsigned int id, int ch, int bx, DigiType t, int q, int pat, int wg)
 
Digi make_digi (unsigned int id, int ch, int bx, DigiType t, int q, int pat, int wg, float dphi)
 

Typedef Documentation

typedef std::tuple<unsigned int, int, int, DigiType, int, int, int, float> matching::Digi

Definition at line 30 of file GenericDigi.h.

typedef std::vector<Digi> matching::DigiContainer

Definition at line 33 of file GenericDigi.h.

Enumeration Type Documentation

Enumerator
INVALID 
GEM_STRIP 
GEM_PAD 
GEM_COPAD 
CSC_STRIP 
CSC_WIRE 
CSC_CLCT 
CSC_ALCT 
CSC_LCT 

Definition at line 27 of file GenericDigi.h.

Function Documentation

int matching::digi_bx ( const Digi &  d)
inline

Definition at line 48 of file GenericDigi.h.

References ztail::d.

48 { return std::get<2>(d); }
tuple d
Definition: ztail.py:151
int matching::digi_channel ( const Digi &  d)
inline
float& matching::digi_dphi ( Digi &  d)
inline

Definition at line 59 of file GenericDigi.h.

References ztail::d.

59 { return std::get<7>(d); }
tuple d
Definition: ztail.py:151
float matching::digi_dphi ( const Digi &  d)
inline

Definition at line 61 of file GenericDigi.h.

References ztail::d.

61 { return std::get<7>(d); }
tuple d
Definition: ztail.py:151
unsigned int matching::digi_id ( const Digi &  d)
inline

Definition at line 46 of file GenericDigi.h.

References ztail::d.

Referenced by GEMDigiMatcher::nLayersWithDigisInSuperChamber(), GEMDigiMatcher::nLayersWithPadsInSuperChamber(), and GEMRecHitMatcher::recHitPosition().

46 { return std::get<0>(d); }
tuple d
Definition: ztail.py:151
int matching::digi_pattern ( const Digi &  d)
inline

Definition at line 51 of file GenericDigi.h.

References ztail::d.

51 { return std::get<5>(d); }
tuple d
Definition: ztail.py:151
int matching::digi_quality ( const Digi &  d)
inline

Definition at line 50 of file GenericDigi.h.

References ztail::d.

50 { return std::get<4>(d); }
tuple d
Definition: ztail.py:151
DigiType matching::digi_type ( const Digi &  d)
inline

Definition at line 49 of file GenericDigi.h.

References ztail::d.

Referenced by GEMRecHitMatcher::recHitPosition().

49 { return std::get<3>(d); }
tuple d
Definition: ztail.py:151
int& matching::digi_wg ( Digi &  d)
int matching::digi_wg ( const Digi &  d)
bool matching::is_valid ( const Digi &  d)
inline

Definition at line 44 of file GenericDigi.h.

References ztail::d, and INVALID.

44 {return std::get<0>(d) != INVALID; }
tuple d
Definition: ztail.py:151
#define INVALID
Definition: myFilter.cc:48
Digi matching::make_digi ( )
inline

Definition at line 36 of file GenericDigi.h.

References INVALID.

Referenced by GEMDigiMatcher::matchCoPadsToSimTrack(), GEMDigiMatcher::matchDigisToSimTrack(), GEMDigiMatcher::matchPadsToSimTrack(), and GEMRecHitMatcher::matchRecHitsToSimTrack().

36 { return std::make_tuple(0, 0, 0, INVALID, 0, 0, 0, 0.); }
#define INVALID
Definition: myFilter.cc:48
Digi matching::make_digi ( unsigned int  id,
int  ch,
int  bx,
DigiType  t 
)
inline

Definition at line 37 of file GenericDigi.h.

37 { return std::make_tuple(id, ch, bx, t, 0, 0, 0, 0.); }
Digi matching::make_digi ( unsigned int  id,
int  ch,
int  bx,
DigiType  t,
int  q 
)
inline

Definition at line 38 of file GenericDigi.h.

38 { return std::make_tuple(id, ch, bx, t, q, 0, 0, 0.); }
Digi matching::make_digi ( unsigned int  id,
int  ch,
int  bx,
DigiType  t,
int  q,
int  pat 
)
inline

Definition at line 39 of file GenericDigi.h.

39 { return std::make_tuple(id, ch, bx, t, q, pat, 0, 0.); }
Digi matching::make_digi ( unsigned int  id,
int  ch,
int  bx,
DigiType  t,
int  q,
int  pat,
int  wg 
)
inline

Definition at line 40 of file GenericDigi.h.

40 { return std::make_tuple(id, ch, bx, t, q, pat, wg, 0.); }
Digi matching::make_digi ( unsigned int  id,
int  ch,
int  bx,
DigiType  t,
int  q,
int  pat,
int  wg,
float  dphi 
)
inline

Definition at line 41 of file GenericDigi.h.

41 { return std::make_tuple(id, ch, bx, t, q, pat, wg, dphi); }