File indexing completed on 2025-08-05 08:11:21
0001 #ifndef GENHADRON_H
0002 #define GENHADRON_H
0003
0004 #include <stdio.h>
0005 #include <iostream>
0006 #include <cmath>
0007
0008 #include <TObject.h>
0009 #include <TVector3.h>
0010 #include <TRandom3.h>
0011
0012 using namespace std;
0013
0014 class GenHadron : public TObject
0015 {
0016 public:
0017 GenHadron();
0018 GenHadron(float, float, float, float);
0019 ~GenHadron();
0020
0021 float Pt();
0022 float Eta();
0023 float Phi();
0024 float E();
0025
0026 void SetMatchedToRecotkl();
0027 bool IsMatchedToRecotkl();
0028
0029 private:
0030 float _pt;
0031 float _eta;
0032 float _phi;
0033 float _en;
0034 bool _ismatched;
0035 };
0036
0037 GenHadron::GenHadron()
0038 {
0039 _pt = 0;
0040 _eta = 0;
0041 _phi = 0;
0042 _en = 0;
0043 _ismatched = false;
0044 }
0045
0046 GenHadron::GenHadron(float pt, float eta, float phi, float E)
0047 {
0048 _pt = pt;
0049 _eta = eta;
0050 _phi = phi;
0051 _en = E;
0052 _ismatched = false;
0053 }
0054
0055 GenHadron::~GenHadron() {}
0056
0057 float GenHadron::Pt() { return (_pt); }
0058
0059 float GenHadron::Eta() { return (_eta); }
0060
0061 float GenHadron::Phi() { return (_phi); }
0062
0063 float GenHadron::E() { return (_en); }
0064
0065 void GenHadron::SetMatchedToRecotkl() { _ismatched = true; }
0066
0067 bool GenHadron::IsMatchedToRecotkl() { return _ismatched; }
0068
0069 #endif