CMS 3D CMS Logo

Typedefs | Functions
ftl_digitizer::FTLHelpers Namespace Reference

Typedefs

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

Functions

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

Typedef Documentation

typedef std::tuple<int, uint32_t, float> ftl_digitizer::FTLHelpers::FTLCaloHitTuple_t

Definition at line 31 of file FTLDigitizer.h.

Function Documentation

bool ftl_digitizer::FTLHelpers::orderByDetIdThenTime ( const FTLCaloHitTuple_t a,
const FTLCaloHitTuple_t b 
)

Definition at line 33 of file FTLDigitizer.h.

Referenced by ftl_digitizer::FTLDigitizer< SensorPhysics, ElectronicsSim >::accumulate().

33  {
34  unsigned int detId_a(std::get<1>(a)), detId_b(std::get<1>(b));
35 
36  if (detId_a < detId_b)
37  return true;
38  if (detId_a > detId_b)
39  return false;
40 
41  double time_a(std::get<2>(a)), time_b(std::get<2>(b));
42  if (time_a < time_b)
43  return true;
44 
45  return false;
46  }
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119