1 #ifndef GEMValidation_GenericDigi_h 2 #define GEMValidation_GenericDigi_h 30 typedef std::tuple<unsigned int, int, int, DigiType, int, int, int, float>
Digi;
37 inline Digi
make_digi(
unsigned int id,
int ch,
int bx, DigiType
t) {
return std::make_tuple(
id, ch, bx, t, 0, 0, 0, 0.); }
38 inline Digi
make_digi(
unsigned int id,
int ch,
int bx, DigiType
t,
int q) {
return std::make_tuple(
id, ch, bx, t, q, 0, 0, 0.); }
39 inline Digi
make_digi(
unsigned int id,
int ch,
int bx, DigiType
t,
int q,
int pat) {
return std::make_tuple(
id, ch, bx, t, q, pat, 0, 0.); }
40 inline Digi
make_digi(
unsigned int id,
int ch,
int bx, DigiType
t,
int q,
int pat,
int wg) {
return std::make_tuple(
id, ch, bx, t, q, pat, wg, 0.); }
41 inline Digi
make_digi(
unsigned int id,
int ch,
int bx, DigiType
t,
int q,
int pat,
int wg,
float dphi) {
return std::make_tuple(
id, ch, bx, t, q, pat, wg, dphi); }
46 inline unsigned int digi_id(
const Digi&
d) {
return std::get<0>(
d); }
48 inline int digi_bx(
const Digi&
d) {
return std::get<2>(
d); }
49 inline DigiType
digi_type(
const Digi&
d) {
return std::get<3>(
d); }
59 inline float&
digi_dphi(Digi& d) {
return std::get<7>(
d); }
61 inline float digi_dphi(
const Digi& d) {
return std::get<7>(
d); }
float & digi_dphi(Digi &d)
std::ostream & operator<<(std::ostream &o, const matching::Digi &d)
bool is_valid(const Digi &d)
std::vector< Digi > DigiContainer
std::tuple< unsigned int, int, int, DigiType, int, int, int, float > Digi
DigiType digi_type(const Digi &d)
int digi_pattern(const Digi &d)
int digi_bx(const Digi &d)
int digi_quality(const Digi &d)
int digi_channel(const Digi &d)
unsigned int digi_id(const Digi &d)