PandaRoot
PndSttSkewedHit.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 
27 #ifndef PndSttSkewedHit_H
28 #define PndSttSkewedHit_H 1
29 
30 #include "TVector3.h"
31 #include "FairHit.h"
32 #include "PndTrack.h"
33 
34 class PndSttSkewedHit : public FairHit {
35 
36  public:
39 
46  // THIS ONE!
47  PndSttSkewedHit(Int_t detID, Int_t tubeID1, Int_t tubeID2, Int_t mcindex, TVector3 &pos, TVector3 &dpos);
48 
50  virtual ~PndSttSkewedHit();
51 
53  virtual void Print(const Option_t *opt = nullptr) const
54  {
55  std::cout << " opt=" << opt << std::endl;
56  return;
57  }
58 
62  void Clear() { SetTubeIDs(-1, -1); }
63 
66  // tube ID // CHECK added
67  void SetTubeIDs(Int_t tubeid1, Int_t tubeid2) { fTubeIDs = std::make_pair<int, int>((int)tubeid1, (int)tubeid2); }
68  std::pair<Int_t, Int_t> GetTubeIDs() const { return fTubeIDs; }
69 
70  friend std::ostream &operator<<(std::ostream &out, PndSttSkewedHit &digi)
71  {
72  out << "PndSttSkewedHit in Tubes: " << digi.GetTubeIDs().first << "/" << digi.GetTubeIDs().second << std::endl;
73  return out;
74  }
75 
76  protected:
78  std::pair<Int_t, Int_t> fTubeIDs; // CHECK added
79 
81 };
82 
83 #endif
std::pair< Int_t, Int_t > GetTubeIDs() const
virtual ~PndSttSkewedHit()
virtual void Print(const Option_t *opt=nullptr) const
std::pair< Int_t, Int_t > fTubeIDs
void SetTubeIDs(Int_t tubeid1, Int_t tubeid2)
ClassDef(PndSttSkewedHit, 1)
friend std::ostream & operator<<(std::ostream &out, PndSttSkewedHit &digi)