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

Function Documentation

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

Definition at line 41 of file MTDDigitizer.h.

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

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