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().

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