CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Static Public Attributes
EcalTimeMapDigitizer::time_average Struct Reference

#include <EcalTimeMapDigitizer.h>

Public Member Functions

void calculateAverage ()
 
void setZero ()
 
 time_average (const DetId &myId)
 
bool zero ()
 

Public Attributes

float average_time [time_average_capacity]
 
DetId id
 
unsigned int nhits [time_average_capacity]
 
float tot_energy [time_average_capacity]
 

Static Public Attributes

static const unsigned short time_average_capacity = 10
 

Detailed Description

Definition at line 21 of file EcalTimeMapDigitizer.h.

Constructor & Destructor Documentation

EcalTimeMapDigitizer::time_average::time_average ( const DetId myId)
inline

Definition at line 29 of file EcalTimeMapDigitizer.h.

References mps_fire::i, and time_average_capacity.

29  : id(myId) {
30  for (unsigned int i(0); i < time_average_capacity; ++i) {
31  average_time[i] = 0;
32  nhits[i] = 0;
33  tot_energy[i] = 0;
34  }
35  };
unsigned int nhits[time_average_capacity]
static const unsigned short time_average_capacity
float average_time[time_average_capacity]
float tot_energy[time_average_capacity]

Member Function Documentation

void EcalTimeMapDigitizer::time_average::calculateAverage ( )
inline

Definition at line 37 of file EcalTimeMapDigitizer.h.

References mps_fire::i, and time_average_capacity.

Referenced by EcalTimeMapDigitizer::finalizeHits().

37  {
38  for (unsigned int i(0); i < time_average_capacity; ++i) {
39  if (nhits[i] > 0)
41  else
42  average_time[i] = 0;
43  }
44  };
unsigned int nhits[time_average_capacity]
static const unsigned short time_average_capacity
float average_time[time_average_capacity]
float tot_energy[time_average_capacity]
void EcalTimeMapDigitizer::time_average::setZero ( )
inline

Definition at line 46 of file EcalTimeMapDigitizer.h.

References mps_fire::i, and time_average_capacity.

Referenced by EcalTimeMapDigitizer::blankOutUsedSamples().

46  {
47  for (unsigned int i(0); i < time_average_capacity; ++i) {
48  average_time[i] = 0;
49  nhits[i] = 0;
50  tot_energy[i] = 0;
51  }
52  };
unsigned int nhits[time_average_capacity]
static const unsigned short time_average_capacity
float average_time[time_average_capacity]
float tot_energy[time_average_capacity]
bool EcalTimeMapDigitizer::time_average::zero ( )
inline

Definition at line 54 of file EcalTimeMapDigitizer.h.

References mps_fire::i, and time_average_capacity.

Referenced by EcalTimeMapDigitizer::findSignal().

54  {
55  for (unsigned int i(0); i < time_average_capacity; ++i) {
56  if (nhits[i] > 0)
57  return false;
58  }
59  return true;
60  };
unsigned int nhits[time_average_capacity]
static const unsigned short time_average_capacity

Member Data Documentation

float EcalTimeMapDigitizer::time_average::average_time[time_average_capacity]
DetId EcalTimeMapDigitizer::time_average::id

Definition at line 24 of file EcalTimeMapDigitizer.h.

unsigned int EcalTimeMapDigitizer::time_average::nhits[time_average_capacity]
const unsigned short EcalTimeMapDigitizer::time_average::time_average_capacity = 10
static
float EcalTimeMapDigitizer::time_average::tot_energy[time_average_capacity]