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 40 of file FTLDigitizer.h.

Function Documentation

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

Definition at line 42 of file FTLDigitizer.h.

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

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