FairShip
Loading...
Searching...
No Matches
TrackInfo.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// SPDX-FileCopyrightText: Copyright CERN for the benefit of the SHiP
3// Collaboration
4
5#ifndef SHIPDATA_TRACKINFO_H_
6#define SHIPDATA_TRACKINFO_H_
7
8#include <vector>
9
10#include "Rtypes.h" // for Double_t, Int_t, Double32_t, etc
11#include "TObject.h" //
12#include "TVector.h" // for TVector
13#include "Track.h"
14
15class TrackInfo : public TObject {
16 public:
18 TrackInfo();
20 explicit TrackInfo(const genfit::Track* tr);
21
23 TrackInfo(const TrackInfo& ti);
24
26 ~TrackInfo() override;
27
29 unsigned int N() const { return fDetIDs.size(); }
30 unsigned int detId(Int_t n) const { return fDetIDs[n]; }
31 float wL(Int_t n) const { return fWL[n]; }
32 float wR(Int_t n) const { return fWR[n]; }
33
34 /*** Output to screen */
35 void Print(const Option_t* opt = "") const override { ; }
36
37 protected:
38 std::vector<unsigned int> fDetIDs;
39 std::vector<float> fWL;
40 std::vector<float> fWR;
42};
43
44#endif // SHIPDATA_TRACKINFO_H_
ClassDefOverride(TrackInfo, 2)
unsigned int detId(Int_t n) const
Definition: TrackInfo.h:30
std::vector< float > fWR
Definition: TrackInfo.h:40
~TrackInfo() override
Definition: TrackInfo.cxx:38
unsigned int N() const
Definition: TrackInfo.h:29
std::vector< float > fWL
Definition: TrackInfo.h:39
float wR(Int_t n) const
Definition: TrackInfo.h:32
std::vector< unsigned int > fDetIDs
array of measurements
Definition: TrackInfo.h:38
float wL(Int_t n) const
Definition: TrackInfo.h:31
void Print(const Option_t *opt="") const override
Definition: TrackInfo.h:35