CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BeamSpotOnline.h
Go to the documentation of this file.
1 /*
2  * File: DataFormats/Scalers/interface/BeamSpotOnline.h (W.Badgett)
3  *
4  * The online computed BeamSpotOnline value
5  *
6  */
7 
8 #ifndef DATAFORMATS_SCALERS_BEAMSPOT_H
9 #define DATAFORMATS_SCALERS_BEAMSPOT_H
10 
12 
13 #include <ctime>
14 #include <iosfwd>
15 #include <vector>
16 #include <string>
17 
25 
29 {
30  public:
31 
33  BeamSpotOnline(const unsigned char * rawData);
34  virtual ~BeamSpotOnline();
35 
37  std::string name() const { return "BeamSpotOnline"; }
38 
40  bool empty() const { return false; }
41 
42  unsigned int trigType() const { return(trigType_);}
43  unsigned int eventID() const { return(eventID_);}
44  unsigned int sourceID() const { return(sourceID_);}
45  unsigned int bunchNumber() const { return(bunchNumber_);}
46 
47  int version() const { return(version_);}
48  timespec collectionTime() const { return(collectionTime_.get_timespec());}
49 
50  float x() const { return(x_);}
51  float y() const { return(y_);}
52  float z() const { return(z_);}
53  float dxdz() const { return(dxdz_);}
54  float dydz() const { return(dydz_);}
55  float err_x() const { return(err_x_);}
56  float err_y() const { return(err_y_);}
57  float err_z() const { return(err_z_);}
58  float err_dxdz() const { return(err_dxdz_);}
59  float err_dydz() const { return(err_dydz_);}
60  float width_x() const { return(width_x_);}
61  float width_y() const { return(width_y_);}
62  float sigma_z() const { return(sigma_z_);}
63  float err_width_x() const { return(err_width_x_);}
64  float err_width_y() const { return(err_width_y_);}
65  float err_sigma_z() const { return(err_sigma_z_);}
66 
68  int operator==(const BeamSpotOnline& e) const { return false; }
69 
71  int operator!=(const BeamSpotOnline& e) const { return false; }
72 
73 protected:
74 
75  unsigned int trigType_;
76  unsigned int eventID_;
77  unsigned int sourceID_;
78  unsigned int bunchNumber_;
79 
80  int version_;
81 
83  float x_;
84  float y_;
85  float z_;
86  float dxdz_;
87  float dydz_;
88  float err_x_;
89  float err_y_;
90  float err_z_;
91  float err_dxdz_;
92  float err_dydz_;
93  float width_x_;
94  float width_y_;
95  float sigma_z_;
96  float err_width_x_;
97  float err_width_y_;
98  float err_sigma_z_;
99 };
100 
102 std::ostream& operator<<(std::ostream& s, const BeamSpotOnline& c);
103 
104 typedef std::vector<BeamSpotOnline> BeamSpotOnlineCollection;
105 
106 #endif
std::string name() const
name method
std::vector< BeamSpotOnline > BeamSpotOnlineCollection
float err_y() const
float dxdz() const
virtual ~BeamSpotOnline()
unsigned int eventID_
float err_x() const
float dydz() const
float sigma_z() const
float y() const
float x() const
float err_dydz() const
float z() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
TimeSpec collectionTime_
float width_y() const
float err_width_y() const
timespec get_timespec() const
Definition: TimeSpec.cc:4
unsigned int sourceID() const
unsigned int bunchNumber() const
int operator==(const BeamSpotOnline &e) const
equality operator
int version() const
float err_dxdz() const
float err_width_x() const
int operator!=(const BeamSpotOnline &e) const
inequality operator
float err_z() const
timespec collectionTime() const
unsigned int eventID() const
bool empty() const
empty method (= false)
float width_x() const
unsigned int trigType() const
float err_sigma_z() const
unsigned int sourceID_
unsigned int trigType_
unsigned int bunchNumber_