PandaRoot
PndCATrackFtsMCPointContainer.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 #ifndef _PndCATrackFtsMCPointContainer_h_
14 #define _PndCATrackFtsMCPointContainer_h_
15 
16 #include <FairMCPoint.h>
17 
18 #include "TClonesArray.h"
19 #include <vector>
20 
21 #include "PndFtsPoint.h"
22 
23 using std::vector;
24 
25 class PndCATrackFtsMCPointContainer : public TObject {
26 
27  public:
30 
31  PndFtsPoint *GetFtsPoint(Int_t i) { return FtsArray[i]; }
32 
33  void SetFtsPoint(PndFtsPoint *mp) { FtsArray.push_back(mp); }
34 
35  int GetNFtsPoints() const { return FtsArray.size(); }
36 
37  double GetFtsPointX(int i) { return FtsArray[i]->FairMCPoint::GetX(); }
38  double GetFtsPointY(int i) { return FtsArray[i]->FairMCPoint::GetY(); }
39  double GetFtsPointZ(int i) { return FtsArray[i]->GetZ(); }
40  double GetFtsPointPx(int i) { return FtsArray[i]->GetPx(); }
41  double GetFtsPointPy(int i) { return FtsArray[i]->GetPy(); }
42  double GetFtsPointPz(int i) { return FtsArray[i]->GetPz(); }
43 
44  vector<PndFtsPoint *> FtsArray;
45 
47 };
48 
49 #endif // _PndCATrackMCPointContainer_h_
unsigned int i
Definition: P4_F32vec4.h:33
static const double mp
Definition: mzparameters.h:22
ClassDef(PndCATrackFtsMCPointContainer, 1)