PandaRoot
PndSttSkewedHit Class Reference

#include <PndSttSkewedHit.h>

Inheritance diagram for PndSttSkewedHit:

Public Member Functions

 PndSttSkewedHit ()
 
 PndSttSkewedHit (Int_t detID, Int_t tubeID1, Int_t tubeID2, Int_t mcindex, TVector3 &pos, TVector3 &dpos)
 
virtual ~PndSttSkewedHit ()
 
virtual void Print (const Option_t *opt=nullptr) const
 
void Clear ()
 
void SetTubeIDs (Int_t tubeid1, Int_t tubeid2)
 
std::pair< Int_t, Int_t > GetTubeIDs () const
 

Protected Member Functions

 ClassDef (PndSttSkewedHit, 1)
 

Protected Attributes

std::pair< Int_t, Int_t > fTubeIDs
 

Friends

std::ostream & operator<< (std::ostream &out, PndSttSkewedHit &digi)
 

Detailed Description

CbmStsMapsHit Class for MAPS detector hit

Author
Michael Deveaux m.dev.nosp@m.eaux.nosp@m.@gsi..nosp@m.de Acknowledgements to M. Al-Turany, D. Bertini, G. Gaycken Version beta 0.1 (02.02.2005) Slight modifications by V. Friese to match coding conventions

Meaning of RefIndex: Index of corresponding MCPoint -1 if fake or background hit

Meaning of Flag: 0 = Hit ok -1 : Hit lost due to detection inefficiency

Definition at line 22 of file PndSttSkewedHit.h.

Constructor & Destructor Documentation

◆ PndSttSkewedHit() [1/2]

PndSttSkewedHit::PndSttSkewedHit ( )

Default constructor

◆ PndSttSkewedHit() [2/2]

PndSttSkewedHit::PndSttSkewedHit ( Int_t  detID,
Int_t  tubeID1,
Int_t  tubeID2,
Int_t  mcindex,
TVector3 &  pos,
TVector3 &  dpos 
)

Standard constructor

Parameters
detIDDetector unique volume ID
tubeID1Unique tube ID
mcindexIndex of corresponding MCPoint

◆ ~PndSttSkewedHit()

virtual PndSttSkewedHit::~PndSttSkewedHit ( )
virtual

Destructor

Member Function Documentation

◆ ClassDef()

PndSttSkewedHit::ClassDef ( PndSttSkewedHit  ,
 
)
protected

◆ Clear()

void PndSttSkewedHit::Clear ( void  )
inline

Public method Clear Resets the isochrone and it's error to 0

Definition at line 50 of file PndSttSkewedHit.h.

References SetTubeIDs().

50 { SetTubeIDs(-1, -1); }
void SetTubeIDs(Int_t tubeid1, Int_t tubeid2)

◆ GetTubeIDs()

std::pair<Int_t, Int_t> PndSttSkewedHit::GetTubeIDs ( ) const
inline

Definition at line 56 of file PndSttSkewedHit.h.

References fTubeIDs.

Referenced by PndApollonius::ApolloniusTripletFunctions::AddOtherDetectors().

56 { return fTubeIDs; }
std::pair< Int_t, Int_t > fTubeIDs

◆ Print()

virtual void PndSttSkewedHit::Print ( const Option_t *  opt = nullptr) const
inlinevirtual

Output to screen (not yet implemented)

Definition at line 41 of file PndSttSkewedHit.h.

42  {
43  std::cout << " opt=" << opt << std::endl;
44  return;
45  }

◆ SetTubeIDs()

void PndSttSkewedHit::SetTubeIDs ( Int_t  tubeid1,
Int_t  tubeid2 
)
inline

Accessors

Definition at line 55 of file PndSttSkewedHit.h.

References fTubeIDs.

Referenced by Clear().

55 { fTubeIDs = std::make_pair<int, int>((int)tubeid1, (int)tubeid2); }
std::pair< Int_t, Int_t > fTubeIDs

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
PndSttSkewedHit digi 
)
friend

Definition at line 58 of file PndSttSkewedHit.h.

59  {
60  out << "PndSttSkewedHit in Tubes: " << digi.GetTubeIDs().first << "/" << digi.GetTubeIDs().second << std::endl;
61  return out;
62  }
std::pair< Int_t, Int_t > GetTubeIDs() const

Member Data Documentation

◆ fTubeIDs

std::pair<Int_t, Int_t> PndSttSkewedHit::fTubeIDs
protected

tube id

Definition at line 66 of file PndSttSkewedHit.h.

Referenced by GetTubeIDs(), and SetTubeIDs().


The documentation for this class was generated from the following file: