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); }
float & digi_dphi(Digi &d)
bool is_valid(const Digi &d)
std::vector< Digi > DigiContainer
std::ostream & operator<<(std::ostream &out, const ALILine &li)
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)