Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MbdVertexv1.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MbdVertexv1.h
1 #ifndef G4MBD_MBDVERTEXV1_H
2 #define G4MBD_MBDVERTEXV1_H
3 
4 #include "MbdVertex.h"
5 
6 #include <iostream>
7 
8 class MbdVertexv1 : public MbdVertex
9 {
10  public:
11  MbdVertexv1();
12  ~MbdVertexv1() override;
13 
14  // PHObject virtual overloads
15 
16  void identify(std::ostream& os = std::cout) const override;
17  void Reset() override { *this = MbdVertexv1(); }
18  int isValid() const override;
19  PHObject* CloneMe() const override { return new MbdVertexv1(*this); }
20 
21  // vertex info
22 
23  unsigned int get_id() const override { return _id; }
24  void set_id(unsigned int id) override { _id = id; }
25 
26  float get_t() const override { return _t; }
27  void set_t(float t) override { _t = t; }
28 
29  float get_t_err() const override { return _t_err; }
30  void set_t_err(float t_err) override { _t_err = t_err; }
31 
32  float get_z() const override { return _z; }
33  void set_z(float z) override { _z = z; }
34 
35  float get_z_err() const override { return _z_err; }
36  void set_z_err(float z_err) override { _z_err = z_err; }
37 
38  private:
39  unsigned int _id; //< unique identifier within container
40  float _t; //< collision time
41  float _t_err; //< collision time uncertainty
42  float _z; //< collision position z
43  float _z_err; //< collision position z uncertainty
44 
46 };
47 
48 #endif