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 39 of file MTDDigitizer.h.

Function Documentation

◆ orderByDetIdThenTime()

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

Definition at line 41 of file MTDDigitizer.h.

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

References a, and b.

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

b
double b
Definition: hdecay.h:118
a
double a
Definition: hdecay.h:119