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

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

Definition at line 37 of file MTDDigitizer.h.

Function Documentation

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

Definition at line 39 of file MTDDigitizer.h.

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) return true;
44  if(detId_a>detId_b) return false;
45 
46  double time_a(std::get<2>(a)), time_b(std::get<2>(b));
47  if(time_a<time_b) return true;
48 
49  return false;
50  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121