CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Attributes
EcalTBEventHeader Class Reference

#include <EcalTBEventHeader.h>

Classes

struct  magnetsMeasurement
 

Public Types

enum  LaserType { LBlue = 440, LGreen = 495, LRed = 709, LInfrared = 800 }
 
typedef struct EcalTBEventHeader::magnetsMeasurement magnetsMeasurement_t
 

Public Member Functions

int begBurstLV1A () const
 Returns the begin burst time (msec) More...
 
int begBurstTimeMsec () const
 Returns the begin burst time (msec) More...
 
int begBurstTimeSec () const
 Returns the begin burst time (sec) More...
 
short burstNumber () const
 Returns the burst number. More...
 
int crystalInBeam () const
 Returns the crystal which is being hit by the beam (in the internal SM numbering scheme) More...
 
int date () const
 Returns the date in Unix time. More...
 
int dbEventType () const
 Returns the event type as in the H4ROOTDB. More...
 
 EcalTBEventHeader ()
 
int endBurstLV1A () const
 Returns the end burst time (sec) More...
 
int endBurstTimeMsec () const
 Returns the end burst time (msec) More...
 
int endBurstTimeSec () const
 Returns the end burst time (sec) More...
 
int eventNumber () const
 Returns the event number. More...
 
std::string eventType () const
 
int laserType () const
 return the event laser type More...
 
LaserType laserTypeName () const
 
int lightIntensity () const
 return the laser intensity More...
 
const std::vector< magnetsMeasurement_t > & magnetMeasurements () const
 
int nextCrystalInBeam () const
 
int nominalCrystalInBeam () const
 
int numberOfMagnetMeasurements () const
 
unsigned int phiTableIndex () const
 Returns the phi table index. More...
 
int runNumber () const
 
int S6ADC () const
 returns S6 ADC value More...
 
int scaler (int scalerId) const
 
void setBegBurstLV1A (const int &begBurstLV1A)
 
void setBegBurstTimeMsec (const int &begBurstTimeMsec)
 
void setBegBurstTimeSec (const int &begBurstTimeSec)
 
void setBurstNumber (const short &burstNumber)
 
void setCrystalInBeam (const DetId &crystalInBeam)
 
void setDate (const int &date)
 
void setEndBurstLV1A (const int &endBurstLV1A)
 
void setEndBurstTimeMsec (const int &endBurstTimeMsec)
 
void setEndBurstTimeSec (const int &endBurstTimeSec)
 
void setEventNumber (const int &eventNumber)
 
void setLaserType (const int &laserType)
 
void setLightIntensity (const int &lightIntensity)
 
void setMagnetMeasurements (const std::vector< magnetsMeasurement_t > &magnetMeasurements)
 
void setNextCrystalInBeam (const DetId &crystalInBeam)
 
void setNominalCrystalInBeam (const DetId &crystalInBeam)
 
void setNumberOfMagnetMeasurements (const int &numberOfMagnetMeasurements)
 
void setPhiTableIndex (const unsigned int &phiTableIndex)
 
void setRunNumber (const int &runNumber)
 
void setS6ADC (const int &S6ADC)
 
void setScalers (const std::vector< int > &scalers)
 
void setSmInBeam (const int &smInBeam)
 
void setSyncError (const bool &syncError)
 
void setTableIsMoving (const bool &tableIsMoving)
 
void setTableIsMovingAtBegSpill (const bool &tableIsMoving)
 
void setThetaTableIndex (const unsigned int &thetaTableIndex)
 
void setTriggerMask (const int &triggerMask)
 
short smInBeam () const
 Returns the burst number. More...
 
bool syncError () const
 is there any sync error More...
 
bool tableIsMoving () const
 Tell if the table is Moving. More...
 
bool tableIsMovingAtBegSpill () const
 Tell if the table is Moving At the begin of the spill (available in runs only after 1st August 06) More...
 
unsigned int thetaTableIndex () const
 Returns the theta table index. More...
 
int triggerMask () const
 Returns the trigger mask. More...
 
 ~EcalTBEventHeader ()
 

Private Attributes

int begBurstLV1A_
 
int begBurstTime_msec_
 
int begBurstTime_sec_
 Information from the ecalSupervisor. More...
 
short burstNumber_
 The number of the burst. More...
 
DetId crystalInBeam_
 Information from the table Supervisor. More...
 
int date_
 The date when the run was taken. More...
 
int endBurstLV1A_
 
int endBurstTime_msec_
 
int endBurstTime_sec_
 
int eventNumber_
 The numner of the event. More...
 
int laserType_
 The laser type –see enum LaserType. More...
 
int lightIntensity_
 The light intensity. More...
 
std::vector< magnetsMeasurement_tmagnetMeasurements_
 
DetId nextCrystalInBeam_
 The nominal next crystal which should be hit by the beam. More...
 
DetId nominalCrystalInBeam_
 The nominal crystal which should be hit by the beam. More...
 
int numberOfMagnetMeasurements_
 Magnet currents. More...
 
unsigned int phiTableIndex_
 Phi table index (Y) More...
 
int runNumber_
 The number of the run. More...
 
int S6ADC_
 ADC lecture of the S6 counter. More...
 
std::vector< int > scalers_
 
short smInBeam_
 
bool syncError_
 
bool tableIsMoving_
 
bool tableIsMovingAtBegSpill_
 
unsigned int thetaTableIndex_
 Theta table index (X) More...
 
int triggerMask_
 The trigger mask. More...
 

Detailed Description

Container for event ancilllary informations defined in TB raw data formats

Definition at line 14 of file EcalTBEventHeader.h.

Member Typedef Documentation

◆ magnetsMeasurement_t

Member Enumeration Documentation

◆ LaserType

SHOULD WE REMOVE ALL THIS??? Unique codes for the 4 lasers
The Caltech laser system (resp. R. Zhu, contact at CERN A. Bornheim) is a two-laser (2 times "YLF and Ti:Sapphire lasers") which provides 25 ns (FWHM) pulses at 4 different wavelengths:

  1. Laser 1 Blue (violet) 440 nm Green (blue) 495 nm
  2. Laser 2 Red 709 nm Infrared 801 nm
Enumerator
LBlue 
LGreen 

440 nm

LRed 

495 nm

LInfrared 

709 nm

Definition at line 105 of file EcalTBEventHeader.h.

105  {
106  LBlue = 440,
107  LGreen = 495,
108  LRed = 709,
109  LInfrared = 800
110  };

Constructor & Destructor Documentation

◆ EcalTBEventHeader()

EcalTBEventHeader::EcalTBEventHeader ( )
inline

Definition at line 16 of file EcalTBEventHeader.h.

16 {};

◆ ~EcalTBEventHeader()

EcalTBEventHeader::~EcalTBEventHeader ( )
inline

Definition at line 18 of file EcalTBEventHeader.h.

18 {};

Member Function Documentation

◆ begBurstLV1A()

int EcalTBEventHeader::begBurstLV1A ( ) const
inline

Returns the begin burst time (msec)

Definition at line 58 of file EcalTBEventHeader.h.

References begBurstLV1A_.

Referenced by setBegBurstLV1A().

58 { return begBurstLV1A_; }

◆ begBurstTimeMsec()

int EcalTBEventHeader::begBurstTimeMsec ( ) const
inline

Returns the begin burst time (msec)

Definition at line 49 of file EcalTBEventHeader.h.

References begBurstTime_msec_.

Referenced by setBegBurstTimeMsec().

49 { return begBurstTime_msec_; }

◆ begBurstTimeSec()

int EcalTBEventHeader::begBurstTimeSec ( ) const
inline

Returns the begin burst time (sec)

Definition at line 46 of file EcalTBEventHeader.h.

References begBurstTime_sec_.

Referenced by EcalStatusAnalyzer::analyze(), and setBegBurstTimeSec().

46 { return begBurstTime_sec_; }
int begBurstTime_sec_
Information from the ecalSupervisor.

◆ burstNumber()

short EcalTBEventHeader::burstNumber ( ) const
inline

Returns the burst number.

Definition at line 40 of file EcalTBEventHeader.h.

References burstNumber_.

Referenced by operator<<(), and setBurstNumber().

40 { return burstNumber_; }
short burstNumber_
The number of the burst.

◆ crystalInBeam()

int EcalTBEventHeader::crystalInBeam ( ) const
inline

Returns the crystal which is being hit by the beam (in the internal SM numbering scheme)

Definition at line 80 of file EcalTBEventHeader.h.

References crystalInBeam_, and EBDetId::ic().

Referenced by EcalSimpleTBAnalyzer::analyze(), EcalSimple2007H4TBAnalyzer::analyze(), setCrystalInBeam(), setNextCrystalInBeam(), and setNominalCrystalInBeam().

80 { return EBDetId(crystalInBeam_).ic(); }
DetId crystalInBeam_
Information from the table Supervisor.
int ic() const
get ECAL/crystal number inside SM
Definition: EBDetId.cc:41

◆ date()

int EcalTBEventHeader::date ( ) const
inline

Returns the date in Unix time.

Definition at line 75 of file EcalTBEventHeader.h.

References date_.

Referenced by setDate().

75 { return date_; }
int date_
The date when the run was taken.

◆ dbEventType()

int EcalTBEventHeader::dbEventType ( ) const

Returns the event type as in the H4ROOTDB.

Definition at line 53 of file EcalTBEventHeader.cc.

References eventType(), laserTypeName(), LGreen, LInfrared, LRed, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by EcalTBTDCRecInfoAlgo::reconstruct().

53  {
54  std::string evtType = eventType();
55  int ievtType = 0;
56  if (evtType == "beam")
57  ievtType = 1;
58  if (evtType == "laser")
59  ievtType = 2;
60  if (evtType == "pedestal")
61  ievtType = 1; // same as beam
62  if (ievtType == 2) {
63  LaserType laser_type = laserTypeName();
64  //if (laser_type == EcalTBEventHeader::LBlue) ievtType += 0 ;
65  if (laser_type == EcalTBEventHeader::LGreen)
66  ievtType += 1;
67  if (laser_type == EcalTBEventHeader::LInfrared)
68  ievtType += 2;
69  if (laser_type == EcalTBEventHeader::LRed)
70  ievtType += 3;
71  }
72  return ievtType;
73 }
std::string eventType() const
LaserType laserTypeName() const

◆ endBurstLV1A()

int EcalTBEventHeader::endBurstLV1A ( ) const
inline

Returns the end burst time (sec)

Definition at line 61 of file EcalTBEventHeader.h.

References endBurstLV1A_.

Referenced by setEndBurstLV1A().

61 { return endBurstLV1A_; }

◆ endBurstTimeMsec()

int EcalTBEventHeader::endBurstTimeMsec ( ) const
inline

Returns the end burst time (msec)

Definition at line 55 of file EcalTBEventHeader.h.

References endBurstTime_msec_.

Referenced by setEndBurstTimeMsec().

55 { return endBurstTime_msec_; }

◆ endBurstTimeSec()

int EcalTBEventHeader::endBurstTimeSec ( ) const
inline

Returns the end burst time (sec)

Definition at line 52 of file EcalTBEventHeader.h.

References endBurstTime_sec_.

Referenced by setEndBurstTimeSec().

52 { return endBurstTime_sec_; }

◆ eventNumber()

int EcalTBEventHeader::eventNumber ( ) const
inline

Returns the event number.

Definition at line 35 of file EcalTBEventHeader.h.

References eventNumber_.

Referenced by EcalSimpleTBAnalyzer::analyze(), EcalSimple2007H4TBAnalyzer::analyze(), TreeProducerCalibSimul::analyze(), operator<<(), and setEventNumber().

35 { return eventNumber_; }
int eventNumber_
The numner of the event.

◆ eventType()

std::string EcalTBEventHeader::eventType ( ) const

Return the event type: "beam", "laser", "pedestal". "error" or a number orresponding to the orginal eventype stored in the RRF.

Definition at line 7 of file EcalTBEventHeader.cc.

References mps_fire::i, visualization-live-secondInstance_cfg::m, EgammaValidation_cff::num, AlCaHLTBitMon_QueryRunRegistry::string, triggerMask_, w(), and testProducerWithPsetDescEmpty_cfi::x1.

Referenced by dbEventType(), and IsTBH4Type::filter().

7  {
8  // this piece of code was in TPilot (ievtype)
9  int m = triggerMask_ & 0x00FFFF01; // bits 0, 8..23
10 
11  // this piece of code was in TPilot (numbit)
12  int w = m;
13  int num = 0;
14  if (w < 0) { //
15  w &= 0x7FFFFFFF; // CINT Error
16  num++; //
17  }
18  do {
19  num += (w & 0x1);
20  } while ((w >>= 1) != 0);
21  // end of numbit
22 
23  if (num != 1)
24  return std::string("error");
25 
26  char chEvtype[80];
27  if (m == 1)
28  return std::string("beam"); // Physics triggers
29  for (int i = 0; i < 24; i++) {
30  if ((m & 0x1) == 1) {
31  sprintf(chEvtype, "%d", i);
32  if (i == 11)
33  return std::string("pedestal");
34  if (i == 13)
35  return std::string("laser");
36  return std::string(chEvtype);
37  }
38  m >>= 1;
39  }
40  return std::string("error");
41 
42  // // FIXME: to be uncommented with new rawroot
43  // int evtype = rawHeader->GetEventType() ;
44  // if (evtype == 0) return std::string("error") ;
45  // if (evtype == 1) return std::string("beam") ;
46  // if (evtype == 11) return std::string("pedestal") ;
47  // if (evtype == 13) return std::string("laser") ;
48  // char chEvtype[80] ;
49  // sprintf(chEvtype, "%d", evtype) ;
50  // return std::string(chEvtype) ;
51 }
T w() const
int triggerMask_
The trigger mask.

◆ laserType()

int EcalTBEventHeader::laserType ( ) const
inline

return the event laser type

Definition at line 114 of file EcalTBEventHeader.h.

References laserType_.

Referenced by setLaserType().

114  {
115  return laserType_; // returns wavelength
116  }
int laserType_
The laser type –see enum LaserType.

◆ laserTypeName()

LaserType EcalTBEventHeader::laserTypeName ( ) const
inline

Definition at line 118 of file EcalTBEventHeader.h.

References laserType_, LBlue, LGreen, LInfrared, and LRed.

Referenced by dbEventType().

118  {
119  LaserType laser_type;
120  switch (laserType_) {
121  case 440:
122  laser_type = LBlue;
123  break;
124  case 495:
125  laser_type = LGreen;
126  break;
127  case 709:
128  laser_type = LRed;
129  break;
130  case 800:
131  laser_type = LInfrared;
132  break;
133  default:
134  laser_type = LRed;
135  break;
136  }
137  return laser_type; // returns laserTypeName
138  }
int laserType_
The laser type –see enum LaserType.

◆ lightIntensity()

int EcalTBEventHeader::lightIntensity ( ) const
inline

return the laser intensity

Definition at line 112 of file EcalTBEventHeader.h.

References lightIntensity_.

Referenced by setLightIntensity().

112 { return lightIntensity_; }
int lightIntensity_
The light intensity.

◆ magnetMeasurements()

const std::vector<magnetsMeasurement_t>& EcalTBEventHeader::magnetMeasurements ( ) const
inline

Definition at line 145 of file EcalTBEventHeader.h.

References magnetMeasurements_.

Referenced by setMagnetMeasurements().

145 { return magnetMeasurements_; }
std::vector< magnetsMeasurement_t > magnetMeasurements_

◆ nextCrystalInBeam()

int EcalTBEventHeader::nextCrystalInBeam ( ) const
inline

Definition at line 82 of file EcalTBEventHeader.h.

References EBDetId::ic(), and nextCrystalInBeam_.

82 { return EBDetId(nextCrystalInBeam_).ic(); }
int ic() const
get ECAL/crystal number inside SM
Definition: EBDetId.cc:41
DetId nextCrystalInBeam_
The nominal next crystal which should be hit by the beam.

◆ nominalCrystalInBeam()

int EcalTBEventHeader::nominalCrystalInBeam ( ) const
inline

Definition at line 81 of file EcalTBEventHeader.h.

References EBDetId::ic(), and nominalCrystalInBeam_.

81 { return EBDetId(nominalCrystalInBeam_).ic(); }
int ic() const
get ECAL/crystal number inside SM
Definition: EBDetId.cc:41
DetId nominalCrystalInBeam_
The nominal crystal which should be hit by the beam.

◆ numberOfMagnetMeasurements()

int EcalTBEventHeader::numberOfMagnetMeasurements ( ) const
inline

Definition at line 143 of file EcalTBEventHeader.h.

References numberOfMagnetMeasurements_.

Referenced by setNumberOfMagnetMeasurements().

143 { return numberOfMagnetMeasurements_; }
int numberOfMagnetMeasurements_
Magnet currents.

◆ phiTableIndex()

unsigned int EcalTBEventHeader::phiTableIndex ( ) const
inline

Returns the phi table index.

Definition at line 86 of file EcalTBEventHeader.h.

References phiTableIndex_.

Referenced by setPhiTableIndex().

86 { return phiTableIndex_; }
unsigned int phiTableIndex_
Phi table index (Y)

◆ runNumber()

int EcalTBEventHeader::runNumber ( ) const
inline

Definition at line 37 of file EcalTBEventHeader.h.

References runNumber_.

Referenced by operator<<(), EcalTBTDCRecInfoAlgo::reconstruct(), and setRunNumber().

37 { return runNumber_; }
int runNumber_
The number of the run.

◆ S6ADC()

int EcalTBEventHeader::S6ADC ( ) const
inline

returns S6 ADC value

Definition at line 141 of file EcalTBEventHeader.h.

References S6ADC_.

Referenced by EcalSimple2007H4TBAnalyzer::analyze(), and setS6ADC().

141 { return S6ADC_; }
int S6ADC_
ADC lecture of the S6 counter.

◆ scaler()

int EcalTBEventHeader::scaler ( int  scalerId) const
inline

Definition at line 147 of file EcalTBEventHeader.h.

References scalers_.

147  {
148  if (scalerId < ((int)scalers_.size()))
149  return scalers_[scalerId];
150  else
151  return -1;
152  }
std::vector< int > scalers_

◆ setBegBurstLV1A()

void EcalTBEventHeader::setBegBurstLV1A ( const int &  begBurstLV1A)
inline

Definition at line 175 of file EcalTBEventHeader.h.

References begBurstLV1A(), and begBurstLV1A_.

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

int begBurstLV1A() const
Returns the begin burst time (msec)

◆ setBegBurstTimeMsec()

void EcalTBEventHeader::setBegBurstTimeMsec ( const int &  begBurstTimeMsec)
inline

Definition at line 169 of file EcalTBEventHeader.h.

References begBurstTime_msec_, and begBurstTimeMsec().

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

int begBurstTimeMsec() const
Returns the begin burst time (msec)

◆ setBegBurstTimeSec()

void EcalTBEventHeader::setBegBurstTimeSec ( const int &  begBurstTimeSec)
inline

Definition at line 167 of file EcalTBEventHeader.h.

References begBurstTime_sec_, and begBurstTimeSec().

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

int begBurstTimeSec() const
Returns the begin burst time (sec)
int begBurstTime_sec_
Information from the ecalSupervisor.

◆ setBurstNumber()

void EcalTBEventHeader::setBurstNumber ( const short &  burstNumber)
inline

Definition at line 163 of file EcalTBEventHeader.h.

References burstNumber(), and burstNumber_.

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

short burstNumber() const
Returns the burst number.
short burstNumber_
The number of the burst.

◆ setCrystalInBeam()

void EcalTBEventHeader::setCrystalInBeam ( const DetId crystalInBeam)
inline

Definition at line 181 of file EcalTBEventHeader.h.

References crystalInBeam(), and crystalInBeam_.

Referenced by TableDataFormatter::interpretRawData().

int crystalInBeam() const
Returns the crystal which is being hit by the beam (in the internal SM numbering scheme) ...
DetId crystalInBeam_
Information from the table Supervisor.

◆ setDate()

void EcalTBEventHeader::setDate ( const int &  date)
inline

Definition at line 179 of file EcalTBEventHeader.h.

References date(), and date_.

179 { date_ = date; }
int date() const
Returns the date in Unix time.
int date_
The date when the run was taken.

◆ setEndBurstLV1A()

void EcalTBEventHeader::setEndBurstLV1A ( const int &  endBurstLV1A)
inline

Definition at line 177 of file EcalTBEventHeader.h.

References endBurstLV1A(), and endBurstLV1A_.

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

int endBurstLV1A() const
Returns the end burst time (sec)

◆ setEndBurstTimeMsec()

void EcalTBEventHeader::setEndBurstTimeMsec ( const int &  endBurstTimeMsec)
inline

Definition at line 173 of file EcalTBEventHeader.h.

References endBurstTime_msec_, and endBurstTimeMsec().

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

int endBurstTimeMsec() const
Returns the end burst time (msec)

◆ setEndBurstTimeSec()

void EcalTBEventHeader::setEndBurstTimeSec ( const int &  endBurstTimeSec)
inline

Definition at line 171 of file EcalTBEventHeader.h.

References endBurstTime_sec_, and endBurstTimeSec().

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

int endBurstTimeSec() const
Returns the end burst time (sec)

◆ setEventNumber()

void EcalTBEventHeader::setEventNumber ( const int &  eventNumber)
inline

Definition at line 157 of file EcalTBEventHeader.h.

References eventNumber(), and eventNumber_.

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

int eventNumber() const
Returns the event number.
int eventNumber_
The numner of the event.

◆ setLaserType()

void EcalTBEventHeader::setLaserType ( const int &  laserType)
inline

Definition at line 199 of file EcalTBEventHeader.h.

References laserType(), and laserType_.

199 { laserType_ = laserType; }
int laserType() const
return the event laser type
int laserType_
The laser type –see enum LaserType.

◆ setLightIntensity()

void EcalTBEventHeader::setLightIntensity ( const int &  lightIntensity)
inline

Definition at line 197 of file EcalTBEventHeader.h.

References lightIntensity(), and lightIntensity_.

int lightIntensity_
The light intensity.
int lightIntensity() const
return the laser intensity

◆ setMagnetMeasurements()

void EcalTBEventHeader::setMagnetMeasurements ( const std::vector< magnetsMeasurement_t > &  magnetMeasurements)
inline

Definition at line 206 of file EcalTBEventHeader.h.

References magnetMeasurements(), and magnetMeasurements_.

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

206  {
208  }
const std::vector< magnetsMeasurement_t > & magnetMeasurements() const
std::vector< magnetsMeasurement_t > magnetMeasurements_

◆ setNextCrystalInBeam()

void EcalTBEventHeader::setNextCrystalInBeam ( const DetId crystalInBeam)
inline

Definition at line 185 of file EcalTBEventHeader.h.

References crystalInBeam(), and nextCrystalInBeam_.

Referenced by TableDataFormatter::interpretRawData().

int crystalInBeam() const
Returns the crystal which is being hit by the beam (in the internal SM numbering scheme) ...
DetId nextCrystalInBeam_
The nominal next crystal which should be hit by the beam.

◆ setNominalCrystalInBeam()

void EcalTBEventHeader::setNominalCrystalInBeam ( const DetId crystalInBeam)
inline

Definition at line 183 of file EcalTBEventHeader.h.

References crystalInBeam(), and nominalCrystalInBeam_.

Referenced by TableDataFormatter::interpretRawData().

int crystalInBeam() const
Returns the crystal which is being hit by the beam (in the internal SM numbering scheme) ...
DetId nominalCrystalInBeam_
The nominal crystal which should be hit by the beam.

◆ setNumberOfMagnetMeasurements()

void EcalTBEventHeader::setNumberOfMagnetMeasurements ( const int &  numberOfMagnetMeasurements)
inline

◆ setPhiTableIndex()

void EcalTBEventHeader::setPhiTableIndex ( const unsigned int &  phiTableIndex)
inline

Definition at line 189 of file EcalTBEventHeader.h.

References phiTableIndex(), and phiTableIndex_.

Referenced by TableDataFormatter::interpretRawData().

unsigned int phiTableIndex_
Phi table index (Y)
unsigned int phiTableIndex() const
Returns the phi table index.

◆ setRunNumber()

void EcalTBEventHeader::setRunNumber ( const int &  runNumber)
inline

Definition at line 159 of file EcalTBEventHeader.h.

References runNumber(), and runNumber_.

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

159 { runNumber_ = runNumber; }
int runNumber_
The number of the run.

◆ setS6ADC()

void EcalTBEventHeader::setS6ADC ( const int &  S6ADC)
inline

Definition at line 201 of file EcalTBEventHeader.h.

References S6ADC(), and S6ADC_.

Referenced by CamacTBDataFormatter::interpretRawData().

201 { S6ADC_ = S6ADC; }
int S6ADC_
ADC lecture of the S6 counter.
int S6ADC() const
returns S6 ADC value

◆ setScalers()

void EcalTBEventHeader::setScalers ( const std::vector< int > &  scalers)
inline

◆ setSmInBeam()

void EcalTBEventHeader::setSmInBeam ( const int &  smInBeam)
inline

Definition at line 161 of file EcalTBEventHeader.h.

References smInBeam(), and smInBeam_.

161 { smInBeam_ = smInBeam; }
short smInBeam() const
Returns the burst number.

◆ setSyncError()

void EcalTBEventHeader::setSyncError ( const bool &  syncError)
inline

Definition at line 195 of file EcalTBEventHeader.h.

References syncError(), and syncError_.

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

195 { syncError_ = syncError; }
bool syncError() const
is there any sync error

◆ setTableIsMoving()

void EcalTBEventHeader::setTableIsMoving ( const bool &  tableIsMoving)
inline

Definition at line 191 of file EcalTBEventHeader.h.

References tableIsMoving(), and tableIsMoving_.

Referenced by CamacTBDataFormatter::interpretRawData().

bool tableIsMoving() const
Tell if the table is Moving.

◆ setTableIsMovingAtBegSpill()

void EcalTBEventHeader::setTableIsMovingAtBegSpill ( const bool &  tableIsMoving)
inline

Definition at line 193 of file EcalTBEventHeader.h.

References tableIsMoving(), and tableIsMovingAtBegSpill_.

Referenced by TableDataFormatter::interpretRawData().

bool tableIsMoving() const
Tell if the table is Moving.

◆ setThetaTableIndex()

void EcalTBEventHeader::setThetaTableIndex ( const unsigned int &  thetaTableIndex)
inline

Definition at line 187 of file EcalTBEventHeader.h.

References thetaTableIndex(), and thetaTableIndex_.

Referenced by TableDataFormatter::interpretRawData().

unsigned int thetaTableIndex() const
Returns the theta table index.
unsigned int thetaTableIndex_
Theta table index (X)

◆ setTriggerMask()

void EcalTBEventHeader::setTriggerMask ( const int &  triggerMask)
inline

Definition at line 165 of file EcalTBEventHeader.h.

References triggerMask(), and triggerMask_.

int triggerMask_
The trigger mask.
int triggerMask() const
Returns the trigger mask.

◆ smInBeam()

short EcalTBEventHeader::smInBeam ( ) const
inline

Returns the burst number.

Definition at line 43 of file EcalTBEventHeader.h.

References smInBeam_.

Referenced by EcalStatusAnalyzer::analyze(), and setSmInBeam().

43 { return smInBeam_; }

◆ syncError()

bool EcalTBEventHeader::syncError ( ) const
inline

is there any sync error

Definition at line 92 of file EcalTBEventHeader.h.

References syncError_.

Referenced by setSyncError().

92 { return syncError_; }

◆ tableIsMoving()

bool EcalTBEventHeader::tableIsMoving ( ) const
inline

◆ tableIsMovingAtBegSpill()

bool EcalTBEventHeader::tableIsMovingAtBegSpill ( ) const
inline

Tell if the table is Moving At the begin of the spill (available in runs only after 1st August 06)

Definition at line 90 of file EcalTBEventHeader.h.

References tableIsMovingAtBegSpill_.

◆ thetaTableIndex()

unsigned int EcalTBEventHeader::thetaTableIndex ( ) const
inline

Returns the theta table index.

Definition at line 84 of file EcalTBEventHeader.h.

References thetaTableIndex_.

Referenced by setThetaTableIndex().

84 { return thetaTableIndex_; }
unsigned int thetaTableIndex_
Theta table index (X)

◆ triggerMask()

int EcalTBEventHeader::triggerMask ( ) const
inline

Returns the trigger mask.

Definition at line 72 of file EcalTBEventHeader.h.

References triggerMask_.

Referenced by setTriggerMask().

72 { return triggerMask_; }
int triggerMask_
The trigger mask.

Member Data Documentation

◆ begBurstLV1A_

int EcalTBEventHeader::begBurstLV1A_
private

Definition at line 222 of file EcalTBEventHeader.h.

Referenced by begBurstLV1A(), and setBegBurstLV1A().

◆ begBurstTime_msec_

int EcalTBEventHeader::begBurstTime_msec_
private

Definition at line 219 of file EcalTBEventHeader.h.

Referenced by begBurstTimeMsec(), and setBegBurstTimeMsec().

◆ begBurstTime_sec_

int EcalTBEventHeader::begBurstTime_sec_
private

Information from the ecalSupervisor.

Definition at line 218 of file EcalTBEventHeader.h.

Referenced by begBurstTimeSec(), and setBegBurstTimeSec().

◆ burstNumber_

short EcalTBEventHeader::burstNumber_
private

The number of the burst.

Definition at line 215 of file EcalTBEventHeader.h.

Referenced by burstNumber(), and setBurstNumber().

◆ crystalInBeam_

DetId EcalTBEventHeader::crystalInBeam_
private

Information from the table Supervisor.

The current crystal hit by the beam

Definition at line 243 of file EcalTBEventHeader.h.

Referenced by crystalInBeam(), and setCrystalInBeam().

◆ date_

int EcalTBEventHeader::date_
private

The date when the run was taken.

Definition at line 240 of file EcalTBEventHeader.h.

Referenced by date(), and setDate().

◆ endBurstLV1A_

int EcalTBEventHeader::endBurstLV1A_
private

Definition at line 223 of file EcalTBEventHeader.h.

Referenced by endBurstLV1A(), and setEndBurstLV1A().

◆ endBurstTime_msec_

int EcalTBEventHeader::endBurstTime_msec_
private

Definition at line 221 of file EcalTBEventHeader.h.

Referenced by endBurstTimeMsec(), and setEndBurstTimeMsec().

◆ endBurstTime_sec_

int EcalTBEventHeader::endBurstTime_sec_
private

Definition at line 220 of file EcalTBEventHeader.h.

Referenced by endBurstTimeSec(), and setEndBurstTimeSec().

◆ eventNumber_

int EcalTBEventHeader::eventNumber_
private

The numner of the event.

Definition at line 213 of file EcalTBEventHeader.h.

Referenced by eventNumber(), and setEventNumber().

◆ laserType_

int EcalTBEventHeader::laserType_
private

The laser type –see enum LaserType.

Definition at line 258 of file EcalTBEventHeader.h.

Referenced by laserType(), laserTypeName(), and setLaserType().

◆ lightIntensity_

int EcalTBEventHeader::lightIntensity_
private

The light intensity.

Definition at line 257 of file EcalTBEventHeader.h.

Referenced by lightIntensity(), and setLightIntensity().

◆ magnetMeasurements_

std::vector<magnetsMeasurement_t> EcalTBEventHeader::magnetMeasurements_
private

Definition at line 229 of file EcalTBEventHeader.h.

Referenced by magnetMeasurements(), and setMagnetMeasurements().

◆ nextCrystalInBeam_

DetId EcalTBEventHeader::nextCrystalInBeam_
private

The nominal next crystal which should be hit by the beam.

Definition at line 245 of file EcalTBEventHeader.h.

Referenced by nextCrystalInBeam(), and setNextCrystalInBeam().

◆ nominalCrystalInBeam_

DetId EcalTBEventHeader::nominalCrystalInBeam_
private

The nominal crystal which should be hit by the beam.

Definition at line 244 of file EcalTBEventHeader.h.

Referenced by nominalCrystalInBeam(), and setNominalCrystalInBeam().

◆ numberOfMagnetMeasurements_

int EcalTBEventHeader::numberOfMagnetMeasurements_
private

Magnet currents.

Definition at line 228 of file EcalTBEventHeader.h.

Referenced by numberOfMagnetMeasurements(), and setNumberOfMagnetMeasurements().

◆ phiTableIndex_

unsigned int EcalTBEventHeader::phiTableIndex_
private

Phi table index (Y)

Definition at line 247 of file EcalTBEventHeader.h.

Referenced by phiTableIndex(), and setPhiTableIndex().

◆ runNumber_

int EcalTBEventHeader::runNumber_
private

The number of the run.

Definition at line 214 of file EcalTBEventHeader.h.

Referenced by runNumber(), and setRunNumber().

◆ S6ADC_

int EcalTBEventHeader::S6ADC_
private

ADC lecture of the S6 counter.

Definition at line 260 of file EcalTBEventHeader.h.

Referenced by S6ADC(), and setS6ADC().

◆ scalers_

std::vector<int> EcalTBEventHeader::scalers_
private

Definition at line 265 of file EcalTBEventHeader.h.

Referenced by scaler(), and setScalers().

◆ smInBeam_

short EcalTBEventHeader::smInBeam_
private

Definition at line 262 of file EcalTBEventHeader.h.

Referenced by setSmInBeam(), and smInBeam().

◆ syncError_

bool EcalTBEventHeader::syncError_
private

Definition at line 254 of file EcalTBEventHeader.h.

Referenced by setSyncError(), and syncError().

◆ tableIsMoving_

bool EcalTBEventHeader::tableIsMoving_
private

Definition at line 249 of file EcalTBEventHeader.h.

Referenced by setTableIsMoving(), and tableIsMoving().

◆ tableIsMovingAtBegSpill_

bool EcalTBEventHeader::tableIsMovingAtBegSpill_
private

Definition at line 251 of file EcalTBEventHeader.h.

Referenced by setTableIsMovingAtBegSpill(), and tableIsMovingAtBegSpill().

◆ thetaTableIndex_

unsigned int EcalTBEventHeader::thetaTableIndex_
private

Theta table index (X)

Definition at line 246 of file EcalTBEventHeader.h.

Referenced by setThetaTableIndex(), and thetaTableIndex().

◆ triggerMask_

int EcalTBEventHeader::triggerMask_
private

The trigger mask.

Definition at line 225 of file EcalTBEventHeader.h.

Referenced by eventType(), setTriggerMask(), and triggerMask().