ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
Muon::MuonPrdPattern Class Reference

Class to store a pattern in the muon system containing PrepRawData pointers. More...

#include <MuonPrdPattern.h>

Inheritance diagram for Muon::MuonPrdPattern:
Collaboration diagram for Muon::MuonPrdPattern:

Public Types

typedef std::vector< const Trk::PrepRawData * > PrdVector
 

Public Member Functions

 MuonPrdPattern (const Amg::Vector3D &pos, const Amg::Vector3D &dir)
 Constructor. More...
 
 MuonPrdPattern (const Amg::Vector3D &pos, const Amg::Vector3D &dir, const PrdVector &prds)
 Constructor with vector of prds. More...
 
 ~MuonPrdPattern ()
 Destructor. More...
 
virtual void addPrd (const Trk::PrepRawData *prd)
 add hit to pattern More...
 
virtual unsigned int numberOfContainedPrds () const
 Number or PrepRawData contained by this Pattern. More...
 
virtual const Trk::PrepRawDataprd (unsigned int index) const
 returns the PrepRawData objects depending on the integer, return zero if index out of range More...
 
virtual MuonPrdPatternclone () const
 clone methode More...
 
const PrdVectorprepRawDataVec () const
 
const Amg::Vector3DglobalPosition () const
 Global position of the pattern. More...
 
const Amg::Vector3DglobalDirection () const
 Global direction of the pattern. More...
 

Private Attributes

PrdVector m_prds
 vector of PrepRawData pointers More...
 
Amg::Vector3D m_globalPosition
 global position of the pattern More...
 
Amg::Vector3D m_globalDirection
 global direction of the pattern More...
 

Detailed Description

Class to store a pattern in the muon system containing PrepRawData pointers.

The class inherits from MuonPattern.

Definition at line 27 of file MuonPrdPattern.h.

Member Typedef Documentation

◆ PrdVector

Definition at line 29 of file MuonPrdPattern.h.

Constructor & Destructor Documentation

◆ MuonPrdPattern() [1/2]

Muon::MuonPrdPattern::MuonPrdPattern ( const Amg::Vector3D pos,
const Amg::Vector3D dir 
)

Constructor.

Definition at line 25 of file MuonPrdPattern.cxx.

◆ MuonPrdPattern() [2/2]

Muon::MuonPrdPattern::MuonPrdPattern ( const Amg::Vector3D pos,
const Amg::Vector3D dir,
const PrdVector prds 
)

Constructor with vector of prds.

Definition at line 27 of file MuonPrdPattern.cxx.

◆ ~MuonPrdPattern()

Muon::MuonPrdPattern::~MuonPrdPattern ( )
default

Destructor.

Member Function Documentation

◆ addPrd()

void Muon::MuonPrdPattern::addPrd ( const Trk::PrepRawData prd)
inlinevirtual

add hit to pattern

Implements Muon::MuonPattern.

Definition at line 60 of file MuonPrdPattern.h.

60  {
61  if (prd) m_prds.push_back(prd);
62  }

◆ clone()

MuonPrdPattern * Muon::MuonPrdPattern::clone ( ) const
inlinevirtual

clone methode

Implements Muon::MuonPattern.

Definition at line 71 of file MuonPrdPattern.h.

71 { return new MuonPrdPattern(*this); }

◆ globalDirection()

const Amg::Vector3D & Muon::MuonPattern::globalDirection ( ) const
inlineinherited

Global direction of the pattern.

Definition at line 58 of file MuonPattern.h.

58 { return m_globalDirection; }

◆ globalPosition()

const Amg::Vector3D & Muon::MuonPattern::globalPosition ( ) const
inlineinherited

Global position of the pattern.

Definition at line 57 of file MuonPattern.h.

57 { return m_globalPosition; }

◆ numberOfContainedPrds()

unsigned int Muon::MuonPrdPattern::numberOfContainedPrds ( ) const
inlinevirtual

Number or PrepRawData contained by this Pattern.

Implements Muon::MuonPattern.

Definition at line 64 of file MuonPrdPattern.h.

64 { return m_prds.size(); }

◆ prd()

const Trk::PrepRawData * Muon::MuonPrdPattern::prd ( unsigned int  index) const
inlinevirtual

returns the PrepRawData objects depending on the integer, return zero if index out of range

Implements Muon::MuonPattern.

Definition at line 66 of file MuonPrdPattern.h.

66  {
67  if (index < numberOfContainedPrds()) return m_prds[index];
68  return 0;
69  }

◆ prepRawDataVec()

const std::vector< const Trk::PrepRawData * > & Muon::MuonPrdPattern::prepRawDataVec ( ) const
inline

Definition at line 73 of file MuonPrdPattern.h.

73 { return m_prds; }

Member Data Documentation

◆ m_globalDirection

Amg::Vector3D Muon::MuonPattern::m_globalDirection
privateinherited

global direction of the pattern

Definition at line 55 of file MuonPattern.h.

◆ m_globalPosition

Amg::Vector3D Muon::MuonPattern::m_globalPosition
privateinherited

global position of the pattern

Definition at line 52 of file MuonPattern.h.

◆ m_prds

PrdVector Muon::MuonPrdPattern::m_prds
private

vector of PrepRawData pointers

Definition at line 57 of file MuonPrdPattern.h.


The documentation for this class was generated from the following files:
Muon::MuonPrdPattern::m_prds
PrdVector m_prds
vector of PrepRawData pointers
Definition: MuonPrdPattern.h:57
Muon::MuonPrdPattern::prd
virtual const Trk::PrepRawData * prd(unsigned int index) const
returns the PrepRawData objects depending on the integer, return zero if index out of range
Definition: MuonPrdPattern.h:66
Muon::MuonPattern::m_globalPosition
Amg::Vector3D m_globalPosition
global position of the pattern
Definition: MuonPattern.h:52
Muon::MuonPrdPattern::MuonPrdPattern
MuonPrdPattern(const Amg::Vector3D &pos, const Amg::Vector3D &dir)
Constructor.
Definition: MuonPrdPattern.cxx:25
index
Definition: index.py:1
Muon::MuonPattern::m_globalDirection
Amg::Vector3D m_globalDirection
global direction of the pattern
Definition: MuonPattern.h:55
DeMoScan.index
string index
Definition: DeMoScan.py:364
Muon::MuonPrdPattern::numberOfContainedPrds
virtual unsigned int numberOfContainedPrds() const
Number or PrepRawData contained by this Pattern.
Definition: MuonPrdPattern.h:64