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 15 of file EcalTBEventHeader.h.

Member Typedef Documentation

Member Enumeration Documentation

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 139 of file EcalTBEventHeader.h.

139  {
140  LBlue = 440,
141  LGreen = 495,
142  LRed = 709,
143  LInfrared = 800
144  };

Constructor & Destructor Documentation

EcalTBEventHeader::EcalTBEventHeader ( )
inline

Definition at line 19 of file EcalTBEventHeader.h.

19 {};
EcalTBEventHeader::~EcalTBEventHeader ( )
inline

Definition at line 21 of file EcalTBEventHeader.h.

21 {};

Member Function Documentation

int EcalTBEventHeader::begBurstLV1A ( ) const
inline

Returns the begin burst time (msec)

Definition at line 77 of file EcalTBEventHeader.h.

References begBurstLV1A_.

Referenced by setBegBurstLV1A().

77  {
78  return begBurstLV1A_;
79  }
int EcalTBEventHeader::begBurstTimeMsec ( ) const
inline

Returns the begin burst time (msec)

Definition at line 62 of file EcalTBEventHeader.h.

References begBurstTime_msec_.

Referenced by setBegBurstTimeMsec().

62  {
63  return begBurstTime_msec_;
64  }
int EcalTBEventHeader::begBurstTimeSec ( ) const
inline

Returns the begin burst time (sec)

Definition at line 57 of file EcalTBEventHeader.h.

References begBurstTime_sec_.

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

57  {
58  return begBurstTime_sec_;
59  }
int begBurstTime_sec_
Information from the ecalSupervisor.
short EcalTBEventHeader::burstNumber ( ) const
inline

Returns the burst number.

Definition at line 47 of file EcalTBEventHeader.h.

References burstNumber_.

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

47  {
48  return burstNumber_;
49  }
short burstNumber_
The number of the burst.
int EcalTBEventHeader::crystalInBeam ( ) const
inline

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

Definition at line 108 of file EcalTBEventHeader.h.

References crystalInBeam_, and EBDetId::ic().

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

108  {
109  return EBDetId(crystalInBeam_).ic();
110  }
DetId crystalInBeam_
Information from the table Supervisor.
int ic() const
get ECAL/crystal number inside SM
Definition: EBDetId.cc:46
int EcalTBEventHeader::date ( ) const
inline

Returns the date in Unix time.

Definition at line 101 of file EcalTBEventHeader.h.

References date_.

Referenced by setDate().

101  {
102  return date_;
103  }
int date_
The date when the run was taken.
int EcalTBEventHeader::dbEventType ( ) const

Returns the event type as in the H4ROOTDB.

Definition at line 49 of file EcalTBEventHeader.cc.

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

Referenced by endBurstLV1A(), and EcalTBTDCRecInfoAlgo::reconstruct().

49  {
50  std::string evtType = eventType();
51  int ievtType = 0;
52  if (evtType=="beam") ievtType = 1 ;
53  if (evtType=="laser") ievtType = 2 ;
54  if (evtType=="pedestal") ievtType = 1 ; // same as beam
55  if (ievtType == 2) {
56  LaserType laser_type = laserTypeName();
57  //if (laser_type == EcalTBEventHeader::LBlue) ievtType += 0 ;
58  if (laser_type == EcalTBEventHeader::LGreen) ievtType += 1 ;
59  if (laser_type == EcalTBEventHeader::LInfrared) ievtType += 2 ;
60  if (laser_type == EcalTBEventHeader::LRed) ievtType += 3 ;
61  }
62  return ievtType;
63 }
LaserType laserTypeName() const
std::string eventType() const
int EcalTBEventHeader::endBurstLV1A ( ) const
inline

Returns the end burst time (sec)

Definition at line 82 of file EcalTBEventHeader.h.

References dbEventType(), endBurstLV1A_, eventType(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by setEndBurstLV1A().

82  {
83  return endBurstLV1A_;
84  }
int EcalTBEventHeader::endBurstTimeMsec ( ) const
inline

Returns the end burst time (msec)

Definition at line 72 of file EcalTBEventHeader.h.

References endBurstTime_msec_.

Referenced by setEndBurstTimeMsec().

72  {
73  return endBurstTime_msec_;
74  }
int EcalTBEventHeader::endBurstTimeSec ( ) const
inline

Returns the end burst time (sec)

Definition at line 67 of file EcalTBEventHeader.h.

References endBurstTime_sec_.

Referenced by setEndBurstTimeSec().

67  {
68  return endBurstTime_sec_;
69  }
int EcalTBEventHeader::eventNumber ( ) const
inline

Returns the event number.

Definition at line 38 of file EcalTBEventHeader.h.

References eventNumber_.

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

38  {
39  return eventNumber_;
40  }
int eventNumber_
The numner of the event.
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 i, funct::m, pileupDistInMC::num, AlCaHLTBitMon_QueryRunRegistry::string, triggerMask_, and w.

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

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

return the event laser type

Definition at line 150 of file EcalTBEventHeader.h.

References laserType_.

Referenced by setLaserType().

150  {
151  return laserType_; // returns wavelength
152  }
int laserType_
The laser type –see enum LaserType.
LaserType EcalTBEventHeader::laserTypeName ( ) const
inline

Definition at line 154 of file EcalTBEventHeader.h.

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

Referenced by dbEventType().

154  {
155  LaserType laser_type;
156  switch(laserType_){
157  case 440: laser_type = LBlue; break;
158  case 495: laser_type = LGreen; break;
159  case 709: laser_type = LRed; break;
160  case 800: laser_type = LInfrared; break;
161  default: laser_type = LRed; break;
162  }
163  return laser_type; // returns laserTypeName
164  }
int laserType_
The laser type –see enum LaserType.
int EcalTBEventHeader::lightIntensity ( ) const
inline

return the laser intensity

Definition at line 146 of file EcalTBEventHeader.h.

References lightIntensity_.

Referenced by setLightIntensity().

146  {
147  return lightIntensity_;
148  }
int lightIntensity_
The light intensity.
const std::vector<magnetsMeasurement_t>& EcalTBEventHeader::magnetMeasurements ( ) const
inline

Definition at line 173 of file EcalTBEventHeader.h.

References magnetMeasurements_.

Referenced by setMagnetMeasurements().

173 { return magnetMeasurements_; }
std::vector< magnetsMeasurement_t > magnetMeasurements_
int EcalTBEventHeader::nextCrystalInBeam ( ) const
inline

Definition at line 114 of file EcalTBEventHeader.h.

References EBDetId::ic(), and nextCrystalInBeam_.

114  {
115  return EBDetId(nextCrystalInBeam_).ic();
116  }
int ic() const
get ECAL/crystal number inside SM
Definition: EBDetId.cc:46
DetId nextCrystalInBeam_
The nominal next crystal which should be hit by the beam.
int EcalTBEventHeader::nominalCrystalInBeam ( ) const
inline

Definition at line 111 of file EcalTBEventHeader.h.

References EBDetId::ic(), and nominalCrystalInBeam_.

111  {
112  return EBDetId(nominalCrystalInBeam_).ic();
113  }
DetId nominalCrystalInBeam_
The nominal crystal which should be hit by the beam.
int ic() const
get ECAL/crystal number inside SM
Definition: EBDetId.cc:46
int EcalTBEventHeader::numberOfMagnetMeasurements ( ) const
inline

Definition at line 171 of file EcalTBEventHeader.h.

References numberOfMagnetMeasurements_.

Referenced by setNumberOfMagnetMeasurements().

171 { return numberOfMagnetMeasurements_; }
int numberOfMagnetMeasurements_
Magnet currents.
unsigned int EcalTBEventHeader::phiTableIndex ( ) const
inline

Returns the phi table index.

Definition at line 120 of file EcalTBEventHeader.h.

References phiTableIndex_.

Referenced by setPhiTableIndex().

120 { return phiTableIndex_; }
unsigned int phiTableIndex_
Phi table index (Y)
int EcalTBEventHeader::runNumber ( ) const
inline

Definition at line 42 of file EcalTBEventHeader.h.

References runNumber_.

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

42  {
43  return runNumber_;
44  }
int runNumber_
The number of the run.
int EcalTBEventHeader::S6ADC ( ) const
inline

returns S6 ADC value

Definition at line 167 of file EcalTBEventHeader.h.

References S6ADC_.

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

167  {
168  return S6ADC_ ;
169  }
int S6ADC_
ADC lecture of the S6 counter.
int EcalTBEventHeader::scaler ( int  scalerId) const
inline

Definition at line 175 of file EcalTBEventHeader.h.

References scalers_.

175  {
176  if (scalerId < ((int) scalers_.size() ) )
177  return scalers_[scalerId];
178  else
179  return -1;
180  }
std::vector< int > scalers_
void EcalTBEventHeader::setBegBurstLV1A ( const int &  begBurstLV1A)
inline

Definition at line 203 of file EcalTBEventHeader.h.

References begBurstLV1A(), and begBurstLV1A_.

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

int begBurstLV1A() const
Returns the begin burst time (msec)
void EcalTBEventHeader::setBegBurstTimeMsec ( const int &  begBurstTimeMsec)
inline

Definition at line 197 of file EcalTBEventHeader.h.

References begBurstTime_msec_, and begBurstTimeMsec().

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

int begBurstTimeMsec() const
Returns the begin burst time (msec)
void EcalTBEventHeader::setBegBurstTimeSec ( const int &  begBurstTimeSec)
inline

Definition at line 195 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.
void EcalTBEventHeader::setBurstNumber ( const short &  burstNumber)
inline

Definition at line 191 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.
void EcalTBEventHeader::setCrystalInBeam ( const DetId crystalInBeam)
inline

Definition at line 209 of file EcalTBEventHeader.h.

References crystalInBeam(), and crystalInBeam_.

Referenced by TableDataFormatter::interpretRawData().

DetId crystalInBeam_
Information from the table Supervisor.
int crystalInBeam() const
Returns the crystal which is being hit by the beam (in the internal SM numbering scheme) ...
void EcalTBEventHeader::setDate ( const int &  date)
inline

Definition at line 207 of file EcalTBEventHeader.h.

References date(), and date_.

207 { date_=date; }
int date() const
Returns the date in Unix time.
int date_
The date when the run was taken.
void EcalTBEventHeader::setEndBurstLV1A ( const int &  endBurstLV1A)
inline

Definition at line 205 of file EcalTBEventHeader.h.

References endBurstLV1A(), and endBurstLV1A_.

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

int endBurstLV1A() const
Returns the end burst time (sec)
void EcalTBEventHeader::setEndBurstTimeMsec ( const int &  endBurstTimeMsec)
inline

Definition at line 201 of file EcalTBEventHeader.h.

References endBurstTime_msec_, and endBurstTimeMsec().

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

int endBurstTimeMsec() const
Returns the end burst time (msec)
void EcalTBEventHeader::setEndBurstTimeSec ( const int &  endBurstTimeSec)
inline

Definition at line 199 of file EcalTBEventHeader.h.

References endBurstTime_sec_, and endBurstTimeSec().

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

int endBurstTimeSec() const
Returns the end burst time (sec)
void EcalTBEventHeader::setEventNumber ( const int &  eventNumber)
inline

Definition at line 185 of file EcalTBEventHeader.h.

References eventNumber(), and eventNumber_.

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

int eventNumber_
The numner of the event.
int eventNumber() const
Returns the event number.
void EcalTBEventHeader::setLaserType ( const int &  laserType)
inline

Definition at line 227 of file EcalTBEventHeader.h.

References laserType(), and laserType_.

227 { laserType_ = laserType; }
int laserType_
The laser type –see enum LaserType.
int laserType() const
return the event laser type
void EcalTBEventHeader::setLightIntensity ( const int &  lightIntensity)
inline

Definition at line 225 of file EcalTBEventHeader.h.

References lightIntensity(), and lightIntensity_.

int lightIntensity() const
return the laser intensity
int lightIntensity_
The light intensity.
void EcalTBEventHeader::setMagnetMeasurements ( const std::vector< magnetsMeasurement_t > &  magnetMeasurements)
inline

Definition at line 232 of file EcalTBEventHeader.h.

References magnetMeasurements(), and magnetMeasurements_.

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

const std::vector< magnetsMeasurement_t > & magnetMeasurements() const
std::vector< magnetsMeasurement_t > magnetMeasurements_
void EcalTBEventHeader::setNextCrystalInBeam ( const DetId crystalInBeam)
inline

Definition at line 213 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.
void EcalTBEventHeader::setNominalCrystalInBeam ( const DetId crystalInBeam)
inline

Definition at line 211 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.
void EcalTBEventHeader::setNumberOfMagnetMeasurements ( const int &  numberOfMagnetMeasurements)
inline
void EcalTBEventHeader::setPhiTableIndex ( const unsigned int &  phiTableIndex)
inline

Definition at line 217 of file EcalTBEventHeader.h.

References phiTableIndex(), and phiTableIndex_.

Referenced by TableDataFormatter::interpretRawData().

unsigned int phiTableIndex() const
Returns the phi table index.
unsigned int phiTableIndex_
Phi table index (Y)
void EcalTBEventHeader::setRunNumber ( const int &  runNumber)
inline

Definition at line 187 of file EcalTBEventHeader.h.

References runNumber(), and runNumber_.

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

int runNumber() const
int runNumber_
The number of the run.
void EcalTBEventHeader::setS6ADC ( const int &  S6ADC)
inline

Definition at line 229 of file EcalTBEventHeader.h.

References S6ADC(), and S6ADC_.

Referenced by CamacTBDataFormatter::interpretRawData().

229 { S6ADC_ = S6ADC ; }
int S6ADC_
ADC lecture of the S6 counter.
int S6ADC() const
returns S6 ADC value
void EcalTBEventHeader::setScalers ( const std::vector< int > &  scalers)
inline

Definition at line 234 of file EcalTBEventHeader.h.

References scalers_.

Referenced by CamacTBDataFormatter::interpretRawData().

234 { scalers_ = scalers; }
std::vector< int > scalers_
void EcalTBEventHeader::setSmInBeam ( const int &  smInBeam)
inline

Definition at line 189 of file EcalTBEventHeader.h.

References smInBeam(), and smInBeam_.

189 { smInBeam_ = smInBeam; }
short smInBeam() const
Returns the burst number.
void EcalTBEventHeader::setSyncError ( const bool &  syncError)
inline

Definition at line 223 of file EcalTBEventHeader.h.

References syncError(), and syncError_.

Referenced by EcalSupervisorTBDataFormatter::interpretRawData().

223 { syncError_ = syncError; }
bool syncError() const
is there any sync error
void EcalTBEventHeader::setTableIsMoving ( const bool &  tableIsMoving)
inline

Definition at line 219 of file EcalTBEventHeader.h.

References tableIsMoving(), and tableIsMoving_.

Referenced by CamacTBDataFormatter::interpretRawData().

bool tableIsMoving() const
Tell if the table is Moving.
void EcalTBEventHeader::setTableIsMovingAtBegSpill ( const bool &  tableIsMoving)
inline

Definition at line 221 of file EcalTBEventHeader.h.

References tableIsMoving(), and tableIsMovingAtBegSpill_.

Referenced by TableDataFormatter::interpretRawData().

bool tableIsMoving() const
Tell if the table is Moving.
void EcalTBEventHeader::setThetaTableIndex ( const unsigned int &  thetaTableIndex)
inline

Definition at line 215 of file EcalTBEventHeader.h.

References thetaTableIndex(), and thetaTableIndex_.

Referenced by TableDataFormatter::interpretRawData().

unsigned int thetaTableIndex_
Theta table index (X)
unsigned int thetaTableIndex() const
Returns the theta table index.
void EcalTBEventHeader::setTriggerMask ( const int &  triggerMask)
inline

Definition at line 193 of file EcalTBEventHeader.h.

References triggerMask(), and triggerMask_.

int triggerMask() const
Returns the trigger mask.
int triggerMask_
The trigger mask.
short EcalTBEventHeader::smInBeam ( ) const
inline

Returns the burst number.

Definition at line 52 of file EcalTBEventHeader.h.

References smInBeam_.

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

52  {
53  return smInBeam_;
54  }
bool EcalTBEventHeader::syncError ( ) const
inline

is there any sync error

Definition at line 126 of file EcalTBEventHeader.h.

References syncError_.

Referenced by setSyncError().

126 { return syncError_; }
bool EcalTBEventHeader::tableIsMoving ( ) const
inline
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 124 of file EcalTBEventHeader.h.

References tableIsMovingAtBegSpill_.

124 { return tableIsMovingAtBegSpill_; }
unsigned int EcalTBEventHeader::thetaTableIndex ( ) const
inline

Returns the theta table index.

Definition at line 118 of file EcalTBEventHeader.h.

References thetaTableIndex_.

Referenced by setThetaTableIndex().

118 { return thetaTableIndex_; }
unsigned int thetaTableIndex_
Theta table index (X)
int EcalTBEventHeader::triggerMask ( ) const
inline

Returns the trigger mask.

Definition at line 96 of file EcalTBEventHeader.h.

References triggerMask_.

Referenced by setTriggerMask().

96  {
97  return triggerMask_;
98  }
int triggerMask_
The trigger mask.

Member Data Documentation

int EcalTBEventHeader::begBurstLV1A_
private

Definition at line 249 of file EcalTBEventHeader.h.

Referenced by begBurstLV1A(), and setBegBurstLV1A().

int EcalTBEventHeader::begBurstTime_msec_
private

Definition at line 246 of file EcalTBEventHeader.h.

Referenced by begBurstTimeMsec(), and setBegBurstTimeMsec().

int EcalTBEventHeader::begBurstTime_sec_
private

Information from the ecalSupervisor.

Definition at line 245 of file EcalTBEventHeader.h.

Referenced by begBurstTimeSec(), and setBegBurstTimeSec().

short EcalTBEventHeader::burstNumber_
private

The number of the burst.

Definition at line 241 of file EcalTBEventHeader.h.

Referenced by burstNumber(), and setBurstNumber().

DetId EcalTBEventHeader::crystalInBeam_
private

Information from the table Supervisor.

The current crystal hit by the beam

Definition at line 272 of file EcalTBEventHeader.h.

Referenced by crystalInBeam(), and setCrystalInBeam().

int EcalTBEventHeader::date_
private

The date when the run was taken.

Definition at line 269 of file EcalTBEventHeader.h.

Referenced by date(), and setDate().

int EcalTBEventHeader::endBurstLV1A_
private

Definition at line 250 of file EcalTBEventHeader.h.

Referenced by endBurstLV1A(), and setEndBurstLV1A().

int EcalTBEventHeader::endBurstTime_msec_
private

Definition at line 248 of file EcalTBEventHeader.h.

Referenced by endBurstTimeMsec(), and setEndBurstTimeMsec().

int EcalTBEventHeader::endBurstTime_sec_
private

Definition at line 247 of file EcalTBEventHeader.h.

Referenced by endBurstTimeSec(), and setEndBurstTimeSec().

int EcalTBEventHeader::eventNumber_
private

The numner of the event.

Definition at line 239 of file EcalTBEventHeader.h.

Referenced by eventNumber(), and setEventNumber().

int EcalTBEventHeader::laserType_
private

The laser type –see enum LaserType.

Definition at line 287 of file EcalTBEventHeader.h.

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

int EcalTBEventHeader::lightIntensity_
private

The light intensity.

Definition at line 286 of file EcalTBEventHeader.h.

Referenced by lightIntensity(), and setLightIntensity().

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

Definition at line 257 of file EcalTBEventHeader.h.

Referenced by magnetMeasurements(), and setMagnetMeasurements().

DetId EcalTBEventHeader::nextCrystalInBeam_
private

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

Definition at line 274 of file EcalTBEventHeader.h.

Referenced by nextCrystalInBeam(), and setNextCrystalInBeam().

DetId EcalTBEventHeader::nominalCrystalInBeam_
private

The nominal crystal which should be hit by the beam.

Definition at line 273 of file EcalTBEventHeader.h.

Referenced by nominalCrystalInBeam(), and setNominalCrystalInBeam().

int EcalTBEventHeader::numberOfMagnetMeasurements_
private

Magnet currents.

Definition at line 256 of file EcalTBEventHeader.h.

Referenced by numberOfMagnetMeasurements(), and setNumberOfMagnetMeasurements().

unsigned int EcalTBEventHeader::phiTableIndex_
private

Phi table index (Y)

Definition at line 276 of file EcalTBEventHeader.h.

Referenced by phiTableIndex(), and setPhiTableIndex().

int EcalTBEventHeader::runNumber_
private

The number of the run.

Definition at line 240 of file EcalTBEventHeader.h.

Referenced by runNumber(), and setRunNumber().

int EcalTBEventHeader::S6ADC_
private

ADC lecture of the S6 counter.

Definition at line 289 of file EcalTBEventHeader.h.

Referenced by S6ADC(), and setS6ADC().

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

Definition at line 294 of file EcalTBEventHeader.h.

Referenced by scaler(), and setScalers().

short EcalTBEventHeader::smInBeam_
private

Definition at line 291 of file EcalTBEventHeader.h.

Referenced by setSmInBeam(), and smInBeam().

bool EcalTBEventHeader::syncError_
private

Definition at line 283 of file EcalTBEventHeader.h.

Referenced by setSyncError(), and syncError().

bool EcalTBEventHeader::tableIsMoving_
private

Definition at line 278 of file EcalTBEventHeader.h.

Referenced by setTableIsMoving(), and tableIsMoving().

bool EcalTBEventHeader::tableIsMovingAtBegSpill_
private

Definition at line 280 of file EcalTBEventHeader.h.

Referenced by setTableIsMovingAtBegSpill(), and tableIsMovingAtBegSpill().

unsigned int EcalTBEventHeader::thetaTableIndex_
private

Theta table index (X)

Definition at line 275 of file EcalTBEventHeader.h.

Referenced by setThetaTableIndex(), and thetaTableIndex().

int EcalTBEventHeader::triggerMask_
private

The trigger mask.

Definition at line 253 of file EcalTBEventHeader.h.

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