Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BbcVertexv2.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file BbcVertexv2.h
1 #ifndef G4BBC_BBCVERTEXV2_H
2 #define G4BBC_BBCVERTEXV2_H
3 
4 #include "BbcVertex.h"
5 
6 #include <iostream>
7 
8 class BbcVertexv2 : public BbcVertex
9 {
10  public:
11  BbcVertexv2();
12  ~BbcVertexv2() override;
13 
14  // PHObject virtual overloads
15 
16  void identify(std::ostream& os = std::cout) const override;
17  void Reset() override { *this = BbcVertexv2(); }
18  int isValid() const override;
19  PHObject* CloneMe() const override { return new BbcVertexv2(*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  void set_bbc_ns(int iarm, int bbc_npmt, float bbc_q, float bbc_t) override
39  {
40  _bbc_ns_npmt[iarm] = bbc_npmt;
41  _bbc_ns_q[iarm] = bbc_q;
42  _bbc_ns_t[iarm] = bbc_t;
43  }
44 
45  int get_bbc_npmt(int iarm) const override { return _bbc_ns_npmt[iarm]; }
46  float get_bbc_q(int iarm) const override { return _bbc_ns_q[iarm]; }
47  float get_bbc_t(int iarm) const override { return _bbc_ns_t[iarm]; }
48 
49  private:
50  unsigned int _id; //< unique identifier within container
51  float _t; //< collision time
52  float _t_err; //< collision time uncertainty
53  float _z; //< collision position z
54  float _z_err; //< collision position z uncertainty
55  int _bbc_ns_npmt[2]{};
56  float _bbc_ns_q[2]{};
57  float _bbc_ns_t[2]{};
58 
60 };
61 
62 #endif