CMS 3D CMS Logo

Typedefs | Functions
mtd_digitizer::MTDHelpers Namespace Reference

Typedefs

typedef std::tuple< int, uint32_t, float > MTDCaloHitTuple_t
 

Functions

bool orderByDetIdThenTime (const MTDCaloHitTuple_t &a, const MTDCaloHitTuple_t &b)
 

Typedef Documentation

◆ MTDCaloHitTuple_t

typedef std::tuple<int, uint32_t, float> mtd_digitizer::MTDHelpers::MTDCaloHitTuple_t

Definition at line 38 of file MTDDigitizer.h.

Function Documentation

◆ orderByDetIdThenTime()

bool mtd_digitizer::MTDHelpers::orderByDetIdThenTime ( const MTDCaloHitTuple_t a,
const MTDCaloHitTuple_t b 
)
inline

Definition at line 40 of file MTDDigitizer.h.

References a, and b.

Referenced by mtd_digitizer::MTDDigitizer< Traits >::accumulate().

40  {
41  unsigned int detId_a(std::get<1>(a)), detId_b(std::get<1>(b));
42 
43  if (detId_a < detId_b)
44  return true;
45  if (detId_a > detId_b)
46  return false;
47 
48  double time_a(std::get<2>(a)), time_b(std::get<2>(b));
49  if (time_a < time_b)
50  return true;
51 
52  return false;
53  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121