PandaRoot
PndDrcBarPoint.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // -------------------------------------------------------------------------
14 // ----- PndDrcBarPoint header file -----
15 // ----- Created 09/04/08 by E. Fioravanti and A. Cecchi -----
16 // -------------------------------------------------------------------------
17 
21 #ifndef PNDDRCBARPOINT_H
22 #define PNDDRCBARPOINT_H
23 
24 #include "TObject.h"
25 #include "TVector3.h"
26 #include "FairMCPoint.h"
27 
28 class PndDrcBarPoint : public FairMCPoint {
29 
30  public:
33 
35  PndDrcBarPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Int_t pdgCode, Double_t thetaC, Int_t nBar, Int_t eventID, Double_t mass);
36 
38  // PndDrcBarPoint(const PndDrcBarPoint& point) { *this = point; }; // Not needed
39 
41  virtual ~PndDrcBarPoint();
42 
44  Int_t GetPdgCode() const { return fPdgCode; };
45  Double_t GetThetaC() const { return fThetaC; };
46  Int_t GetBarId() const { return fBarN % 10; };
47  Int_t GetBoxId() const { return fBarN / 10; };
48  Double_t GetMass() const { return fMass; };
49  Int_t GetTrackStatus() const { return fTrackStatus; };
50 
52  void SetPdgCode(Int_t id) { fPdgCode = id; };
53  void SetThetaC(Double_t theta) { fThetaC = theta; };
54  void SetBarN(Int_t bar) { fBarN = bar; };
56 
58  // virtual void Print(const Option_t* opt = 0) const = 0;
59  virtual void Print(const Option_t *opt) const;
60 
61  protected:
62  Int_t fPdgCode; // PDG code
63  Double_t fThetaC; // Cherenkov Angle
64  Int_t fBarN; // Bar id number
65  Double_t fMass; // Mass
66  Int_t fTrackStatus;
67 
68  ClassDef(PndDrcBarPoint, 3)
69 };
70 
71 #endif
Double_t fThetaC
Int_t GetBoxId() const
Int_t GetTrackStatus() const
Int_t GetPdgCode() const
virtual ~PndDrcBarPoint()
Int_t GetBarId() const
void SetBarN(Int_t bar)
void SetThetaC(Double_t theta)
void SetTrackStatus(Int_t status)
void SetPdgCode(Int_t id)
virtual void Print(const Option_t *opt) const
Double_t GetMass() const
int status[10]
Definition: f_Init.h:48
Double_t GetThetaC() const