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

Function Documentation

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

Definition at line 30 of file MTDDigitizer.h.

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

31  {
32  unsigned int detId_a(std::get<1>(a)), detId_b(std::get<1>(b));
33 
34  if(detId_a<detId_b) return true;
35  if(detId_a>detId_b) return false;
36 
37  double time_a(std::get<2>(a)), time_b(std::get<2>(b));
38  if(time_a<time_b) return true;
39 
40  return false;
41  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121