CMS 3D CMS Logo

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 public:
31  BeamSpotOnline(const unsigned char* rawData);
32  virtual ~BeamSpotOnline();
33 
35  std::string name() const { return "BeamSpotOnline"; }
36 
38  bool empty() const { return false; }
39 
40  unsigned int trigType() const { return (trigType_); }
41  unsigned int eventID() const { return (eventID_); }
42  unsigned int sourceID() const { return (sourceID_); }
43  unsigned int bunchNumber() const { return (bunchNumber_); }
44 
45  int version() const { return (version_); }
46  timespec collectionTime() const { return (collectionTime_.get_timespec()); }
47 
48  float x() const { return (x_); }
49  float y() const { return (y_); }
50  float z() const { return (z_); }
51  float dxdz() const { return (dxdz_); }
52  float dydz() const { return (dydz_); }
53  float err_x() const { return (err_x_); }
54  float err_y() const { return (err_y_); }
55  float err_z() const { return (err_z_); }
56  float err_dxdz() const { return (err_dxdz_); }
57  float err_dydz() const { return (err_dydz_); }
58  float width_x() const { return (width_x_); }
59  float width_y() const { return (width_y_); }
60  float sigma_z() const { return (sigma_z_); }
61  float err_width_x() const { return (err_width_x_); }
62  float err_width_y() const { return (err_width_y_); }
63  float err_sigma_z() const { return (err_sigma_z_); }
64 
66  int operator==(const BeamSpotOnline& e) const { return false; }
67 
69  int operator!=(const BeamSpotOnline& e) const { return false; }
70 
71 protected:
72  unsigned int trigType_;
73  unsigned int eventID_;
74  unsigned int sourceID_;
75  unsigned int bunchNumber_;
76 
77  int version_;
78 
80  float x_;
81  float y_;
82  float z_;
83  float dxdz_;
84  float dydz_;
85  float err_x_;
86  float err_y_;
87  float err_z_;
88  float err_dxdz_;
89  float err_dydz_;
90  float width_x_;
91  float width_y_;
92  float sigma_z_;
93  float err_width_x_;
94  float err_width_y_;
95  float err_sigma_z_;
96 };
97 
99 std::ostream& operator<<(std::ostream& s, const BeamSpotOnline& c);
100 
101 typedef std::vector<BeamSpotOnline> BeamSpotOnlineCollection;
102 
103 #endif
float err_y() const
float err_width_y() const
int operator==(const BeamSpotOnline &e) const
equality operator
std::vector< BeamSpotOnline > BeamSpotOnlineCollection
float z() const
float dydz() const
std::ostream & operator<<(std::ostream &s, const BeamSpotOnline &c)
Pretty-print operator for BeamSpotOnline.
virtual ~BeamSpotOnline()
unsigned int eventID_
unsigned int sourceID() const
float y() const
float err_width_x() const
float err_x() const
float err_z() const
TimeSpec collectionTime_
int version() const
unsigned int bunchNumber() const
float err_sigma_z() const
unsigned int trigType() const
float dxdz() const
float width_x() const
float err_dxdz() const
std::string name() const
name method
float err_dydz() const
float sigma_z() const
float width_y() const
timespec get_timespec() const
Definition: TimeSpec.cc:4
timespec collectionTime() const
int operator!=(const BeamSpotOnline &e) const
inequality operator
unsigned int eventID() const
unsigned int sourceID_
unsigned int trigType_
bool empty() const
empty method (= false)
unsigned int bunchNumber_
float x() const