CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Protected Attributes
BeamSpotOnline Class Reference

#include <BeamSpotOnline.h>

Classes

class  h
 Persistable copy of online BeamSpotOnline value. More...
 

Public Member Functions

 BeamSpotOnline ()
 
 BeamSpotOnline (const unsigned char *rawData)
 
unsigned int bunchNumber () const
 
timespec collectionTime () const
 
float dxdz () const
 
float dydz () const
 
bool empty () const
 empty method (= false) More...
 
float err_dxdz () const
 
float err_dydz () const
 
float err_sigma_z () const
 
float err_width_x () const
 
float err_width_y () const
 
float err_x () const
 
float err_y () const
 
float err_z () const
 
unsigned int eventID () const
 
std::string name () const
 name method More...
 
int operator!= (const BeamSpotOnline &e) const
 inequality operator More...
 
int operator== (const BeamSpotOnline &e) const
 equality operator More...
 
float sigma_z () const
 
unsigned int sourceID () const
 
unsigned int trigType () const
 
int version () const
 
float width_x () const
 
float width_y () const
 
float x () const
 
float y () const
 
float z () const
 
virtual ~BeamSpotOnline ()
 

Protected Attributes

unsigned int bunchNumber_
 
TimeSpec collectionTime_
 
float dxdz_
 
float dydz_
 
float err_dxdz_
 
float err_dydz_
 
float err_sigma_z_
 
float err_width_x_
 
float err_width_y_
 
float err_x_
 
float err_y_
 
float err_z_
 
unsigned int eventID_
 
float sigma_z_
 
unsigned int sourceID_
 
unsigned int trigType_
 
int version_
 
float width_x_
 
float width_y_
 
float x_
 
float y_
 
float z_
 

Detailed Description

Definition at line 28 of file BeamSpotOnline.h.

Constructor & Destructor Documentation

BeamSpotOnline::BeamSpotOnline ( )

Definition at line 10 of file BeamSpotOnline.cc.

Referenced by BeamSpotOnline().

10  :
11  trigType_(0),
12  eventID_(0),
13  sourceID_(0),
14  bunchNumber_(0),
15  version_(0),
16  collectionTime_(0,0),
17  x_((float)0.0),
18  y_((float)0.0),
19  z_((float)0.0),
20  dxdz_((float)0.0),
21  dydz_((float)0.0),
22  err_x_((float)0.0),
23  err_y_((float)0.0),
24  err_z_((float)0.0),
25  err_dxdz_((float)0.0),
26  err_dydz_((float)0.0),
27  width_x_((float)0.0),
28  width_y_((float)0.0),
29  sigma_z_((float)0.0),
30  err_width_x_((float)0.0),
31  err_width_y_((float)0.0),
32  err_sigma_z_((float)0.0)
33 {
34 }
unsigned int eventID_
TimeSpec collectionTime_
unsigned int sourceID_
unsigned int trigType_
unsigned int bunchNumber_
BeamSpotOnline::BeamSpotOnline ( const unsigned char *  rawData)

Definition at line 36 of file BeamSpotOnline.cc.

References BeamSpotOnline(), ScalersEventRecordRaw_v4::beamSpotOnline, bunchNumber_, collectionTime_, BeamSpotOnlineRaw_v4::collectionTime_nsec, BeamSpotOnlineRaw_v4::collectionTime_sec, BeamSpotOnlineRaw_v4::dxdz, dxdz_, BeamSpotOnlineRaw_v4::dydz, dydz_, BeamSpotOnlineRaw_v4::err_dxdz, err_dxdz_, BeamSpotOnlineRaw_v4::err_dydz, err_dydz_, BeamSpotOnlineRaw_v4::err_sigma_z, err_sigma_z_, BeamSpotOnlineRaw_v4::err_width_x, err_width_x_, BeamSpotOnlineRaw_v4::err_width_y, err_width_y_, BeamSpotOnlineRaw_v4::err_x, err_x_, BeamSpotOnlineRaw_v4::err_y, err_y_, BeamSpotOnlineRaw_v4::err_z, err_z_, eventID_, ScalersEventRecordRaw_v4::header, TimeSpec::set_tv_nsec(), TimeSpec::set_tv_sec(), BeamSpotOnlineRaw_v4::sigma_z, sigma_z_, sourceID_, trigType_, ScalersEventRecordRaw_v4::version, version_, BeamSpotOnlineRaw_v4::width_x, width_x_, BeamSpotOnlineRaw_v4::width_y, width_y_, BeamSpotOnlineRaw_v4::x, x_, BeamSpotOnlineRaw_v4::y, y_, BeamSpotOnlineRaw_v4::z, and z_.

37 {
39 
40  struct ScalersEventRecordRaw_v4 * raw
41  = (struct ScalersEventRecordRaw_v4 *)rawData;
42  trigType_ = ( raw->header >> 56 ) & 0xFULL;
43  eventID_ = ( raw->header >> 32 ) & 0x00FFFFFFULL;
44  sourceID_ = ( raw->header >> 8 ) & 0x00000FFFULL;
45  bunchNumber_ = ( raw->header >> 20 ) & 0xFFFULL;
46 
47  version_ = raw->version;
48  if ( version_ >= 4 )
49  {
52  x_ = raw->beamSpotOnline.x;
53  y_ = raw->beamSpotOnline.y;
54  z_ = raw->beamSpotOnline.z;
55  dxdz_ = raw->beamSpotOnline.dxdz;
56  dydz_ = raw->beamSpotOnline.dydz;
68  }
69 }
unsigned int eventID_
void set_tv_nsec(long value)
Definition: TimeSpec.h:27
unsigned int collectionTime_nsec
Definition: ScalersRaw.h:160
unsigned int collectionTime_sec
Definition: ScalersRaw.h:159
struct BeamSpotOnlineRaw_v4 beamSpotOnline
Definition: ScalersRaw.h:226
TimeSpec collectionTime_
unsigned long long header
Definition: ScalersRaw.h:222
void set_tv_sec(long value)
Definition: TimeSpec.h:26
unsigned int sourceID_
unsigned int trigType_
unsigned int bunchNumber_
BeamSpotOnline::~BeamSpotOnline ( )
virtual

Definition at line 71 of file BeamSpotOnline.cc.

71 { }

Member Function Documentation

unsigned int BeamSpotOnline::bunchNumber ( ) const
inline

Definition at line 45 of file BeamSpotOnline.h.

References bunchNumber_.

Referenced by operator<<().

45 { return(bunchNumber_);}
unsigned int bunchNumber_
timespec BeamSpotOnline::collectionTime ( ) const
inline

Definition at line 48 of file BeamSpotOnline.h.

References collectionTime_, and TimeSpec::get_timespec().

Referenced by operator<<().

48 { return(collectionTime_.get_timespec());}
TimeSpec collectionTime_
timespec get_timespec() const
Definition: TimeSpec.cc:4
float BeamSpotOnline::dxdz ( ) const
inline

Definition at line 53 of file BeamSpotOnline.h.

References dxdz_.

Referenced by operator<<(), and BeamSpotOnlineProducer::produce().

53 { return(dxdz_);}
float BeamSpotOnline::dydz ( ) const
inline

Definition at line 54 of file BeamSpotOnline.h.

References dydz_.

Referenced by operator<<(), and BeamSpotOnlineProducer::produce().

54 { return(dydz_);}
bool BeamSpotOnline::empty ( ) const
inline

empty method (= false)

Definition at line 40 of file BeamSpotOnline.h.

Referenced by Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().

40 { return false; }
float BeamSpotOnline::err_dxdz ( ) const
inline

Definition at line 58 of file BeamSpotOnline.h.

References err_dxdz_.

Referenced by operator<<().

58 { return(err_dxdz_);}
float BeamSpotOnline::err_dydz ( ) const
inline

Definition at line 59 of file BeamSpotOnline.h.

References err_dydz_.

Referenced by operator<<().

59 { return(err_dydz_);}
float BeamSpotOnline::err_sigma_z ( ) const
inline

Definition at line 65 of file BeamSpotOnline.h.

References err_sigma_z_.

Referenced by operator<<(), and BeamSpotOnlineProducer::produce().

65 { return(err_sigma_z_);}
float BeamSpotOnline::err_width_x ( ) const
inline

Definition at line 63 of file BeamSpotOnline.h.

References err_width_x_.

Referenced by operator<<().

63 { return(err_width_x_);}
float BeamSpotOnline::err_width_y ( ) const
inline

Definition at line 64 of file BeamSpotOnline.h.

References err_width_y_.

Referenced by operator<<().

64 { return(err_width_y_);}
float BeamSpotOnline::err_x ( ) const
inline

Definition at line 55 of file BeamSpotOnline.h.

References err_x_.

Referenced by FWBeamSpotOnlineProxyBuilder::build(), operator<<(), and BeamSpotOnlineProducer::produce().

55 { return(err_x_);}
float BeamSpotOnline::err_y ( ) const
inline

Definition at line 56 of file BeamSpotOnline.h.

References err_y_.

Referenced by FWBeamSpotOnlineProxyBuilder::build(), operator<<(), and BeamSpotOnlineProducer::produce().

56 { return(err_y_);}
float BeamSpotOnline::err_z ( ) const
inline

Definition at line 57 of file BeamSpotOnline.h.

References err_z_.

Referenced by FWBeamSpotOnlineProxyBuilder::build(), operator<<(), and BeamSpotOnlineProducer::produce().

57 { return(err_z_);}
unsigned int BeamSpotOnline::eventID ( ) const
inline

Definition at line 43 of file BeamSpotOnline.h.

References eventID_.

Referenced by operator<<().

43 { return(eventID_);}
unsigned int eventID_
std::string BeamSpotOnline::name ( ) const
inline
int BeamSpotOnline::operator!= ( const BeamSpotOnline e) const
inline

inequality operator

Definition at line 71 of file BeamSpotOnline.h.

71 { return false; }
int BeamSpotOnline::operator== ( const BeamSpotOnline e) const
inline

equality operator

Definition at line 68 of file BeamSpotOnline.h.

68 { return false; }
float BeamSpotOnline::sigma_z ( ) const
inline

Definition at line 62 of file BeamSpotOnline.h.

References sigma_z_.

Referenced by operator<<(), and BeamSpotOnlineProducer::produce().

62 { return(sigma_z_);}
unsigned int BeamSpotOnline::sourceID ( ) const
inline

Definition at line 44 of file BeamSpotOnline.h.

References sourceID_.

Referenced by operator<<().

44 { return(sourceID_);}
unsigned int sourceID_
unsigned int BeamSpotOnline::trigType ( ) const
inline

Definition at line 42 of file BeamSpotOnline.h.

References trigType_.

Referenced by operator<<().

42 { return(trigType_);}
unsigned int trigType_
int BeamSpotOnline::version ( ) const
inline

Definition at line 47 of file BeamSpotOnline.h.

References version_.

Referenced by operator<<().

47 { return(version_);}
float BeamSpotOnline::width_x ( ) const
inline

Definition at line 60 of file BeamSpotOnline.h.

References width_x_.

Referenced by BeamSpotProblemMonitor::analyze(), operator<<(), and BeamSpotOnlineProducer::produce().

60 { return(width_x_);}
float BeamSpotOnline::width_y ( ) const
inline

Definition at line 61 of file BeamSpotOnline.h.

References width_y_.

Referenced by BeamSpotProblemMonitor::analyze(), operator<<(), and BeamSpotOnlineProducer::produce().

61 { return(width_y_);}
float BeamSpotOnline::x ( ) const
inline
float BeamSpotOnline::y ( ) const
inline
float BeamSpotOnline::z ( ) const
inline

Member Data Documentation

unsigned int BeamSpotOnline::bunchNumber_
protected

Definition at line 78 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and bunchNumber().

TimeSpec BeamSpotOnline::collectionTime_
protected

Definition at line 82 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and collectionTime().

float BeamSpotOnline::dxdz_
protected

Definition at line 86 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and dxdz().

float BeamSpotOnline::dydz_
protected

Definition at line 87 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and dydz().

float BeamSpotOnline::err_dxdz_
protected

Definition at line 91 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and err_dxdz().

float BeamSpotOnline::err_dydz_
protected

Definition at line 92 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and err_dydz().

float BeamSpotOnline::err_sigma_z_
protected

Definition at line 98 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and err_sigma_z().

float BeamSpotOnline::err_width_x_
protected

Definition at line 96 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and err_width_x().

float BeamSpotOnline::err_width_y_
protected

Definition at line 97 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and err_width_y().

float BeamSpotOnline::err_x_
protected

Definition at line 88 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and err_x().

float BeamSpotOnline::err_y_
protected

Definition at line 89 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and err_y().

float BeamSpotOnline::err_z_
protected

Definition at line 90 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and err_z().

unsigned int BeamSpotOnline::eventID_
protected

Definition at line 76 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and eventID().

float BeamSpotOnline::sigma_z_
protected

Definition at line 95 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and sigma_z().

unsigned int BeamSpotOnline::sourceID_
protected

Definition at line 77 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and sourceID().

unsigned int BeamSpotOnline::trigType_
protected

Definition at line 75 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and trigType().

int BeamSpotOnline::version_
protected

Definition at line 80 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and version().

float BeamSpotOnline::width_x_
protected

Definition at line 93 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and width_x().

float BeamSpotOnline::width_y_
protected

Definition at line 94 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and width_y().

float BeamSpotOnline::x_
protected

Definition at line 83 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and x().

float BeamSpotOnline::y_
protected

Definition at line 84 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and y().

float BeamSpotOnline::z_
protected

Definition at line 85 of file BeamSpotOnline.h.

Referenced by BeamSpotOnline(), and z().