Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:17:50

0001 #ifndef G4BBC_BBCVERTEXV1_H
0002 #define G4BBC_BBCVERTEXV1_H
0003 
0004 #include "BbcVertex.h"
0005 
0006 #include <iostream>
0007 #include <limits>
0008 
0009 class BbcVertexv1 : public BbcVertex
0010 {
0011  public:
0012   BbcVertexv1() = default;;
0013   ~BbcVertexv1() override = default;
0014 
0015   // PHObject virtual overloads
0016 
0017   void identify(std::ostream& os = std::cout) const override;
0018   void Reset() override { *this = BbcVertexv1(); }
0019   int isValid() const override;
0020   PHObject* CloneMe() const override { return new BbcVertexv1(*this); }
0021 
0022   // vertex info
0023 
0024   unsigned int get_id() const override { return _id; }
0025   void set_id(unsigned int id) override { _id = id; }
0026 
0027   float get_t() const override { return _t; }
0028   void set_t(float t) override { _t = t; }
0029 
0030   float get_t_err() const override { return _t_err; }
0031   void set_t_err(float t_err) override { _t_err = t_err; }
0032 
0033   float get_z() const override { return _z; }
0034   void set_z(float z) override { _z = z; }
0035 
0036   float get_z_err() const override { return _z_err; }
0037   void set_z_err(float z_err) override { _z_err = z_err; }
0038 
0039  private:
0040   unsigned int _id {std::numeric_limits<unsigned int>::max()};  //< unique identifier within container
0041   float _t {std::numeric_limits<float>::quiet_NaN()};          //< collision time
0042   float _t_err {std::numeric_limits<float>::quiet_NaN()};      //< collision time uncertainty
0043   float _z {std::numeric_limits<float>::quiet_NaN()};          //< collision position z
0044   float _z_err {std::numeric_limits<float>::quiet_NaN()};      //< collision position z uncertainty
0045 
0046   ClassDefOverride(BbcVertexv1, 1);
0047 };
0048 
0049 #endif