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 23 of file EcalTimeMapDigitizer.h.

Constructor & Destructor Documentation

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

Definition at line 32 of file EcalTimeMapDigitizer.h.

References mps_fire::i, and time_average_capacity.

32  :
33  id(myId)
34  {
35  for (unsigned int i(0);i<time_average_capacity;++i)
36  {
37  average_time[i]=0;
38  nhits[i]=0;
39  tot_energy[i]=0;
40  }
41 
42  };
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 45 of file EcalTimeMapDigitizer.h.

References mps_fire::i, and time_average_capacity.

Referenced by EcalTimeMapDigitizer::finalizeHits().

46  {
47  for (unsigned int i(0);i<time_average_capacity;++i)
48  {
49  if (nhits[i]>0)
51  else
52  average_time[i]=0;
53  }
54  };
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 57 of file EcalTimeMapDigitizer.h.

References mps_fire::i, and time_average_capacity.

Referenced by EcalTimeMapDigitizer::blankOutUsedSamples().

58  {
59  for (unsigned int i(0);i<time_average_capacity;++i)
60  {
61  average_time[i]=0;
62  nhits[i]=0;
63  tot_energy[i]=0;
64  }
65  };
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 68 of file EcalTimeMapDigitizer.h.

References mps_fire::i, and time_average_capacity.

Referenced by EcalTimeMapDigitizer::findSignal().

69  {
70  for (unsigned int i(0);i<time_average_capacity;++i)
71  {
72  if(nhits[i]>0)
73  return false;
74  }
75  return true;
76  };
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 27 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]