ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
InDet::TrackQualityCuts Class Reference

#include <ISiCombinatorialTrackFinder.h>

Collaboration diagram for InDet::TrackQualityCuts:

Public Member Functions

 TrackQualityCuts ()
 
 TrackQualityCuts (const TrackQualityCuts &)
 
 TrackQualityCuts (const std::map< const std::string, int > &, const std::map< const std::string, double > &)
 
 ~TrackQualityCuts ()
 
TrackQualityCutsoperator= (const TrackQualityCuts &)
 
void setIntCut (const std::string &, int)
 
void setDoubleCut (const std::string &, double)
 
bool getIntCut (const std::string &, int &) const
 
bool getDoubleCut (const std::string &, double &) const
 
int numIntCuts () const
 
int numDoubleCuts () const
 

Protected Attributes

std::map< const std::string, int > m_idata
 
std::map< const std::string, double > m_ddata
 

Detailed Description

Definition at line 121 of file ISiCombinatorialTrackFinder.h.

Constructor & Destructor Documentation

◆ TrackQualityCuts() [1/3]

InDet::TrackQualityCuts::TrackQualityCuts ( )
inline

Definition at line 129 of file ISiCombinatorialTrackFinder.h.

129 {};

◆ TrackQualityCuts() [2/3]

InDet::TrackQualityCuts::TrackQualityCuts ( const TrackQualityCuts TQC)
inline

Definition at line 160 of file ISiCombinatorialTrackFinder.h.

161  {
162  *this = TQC;
163  }

◆ TrackQualityCuts() [3/3]

InDet::TrackQualityCuts::TrackQualityCuts ( const std::map< const std::string, int > &  in,
const std::map< const std::string, double > &  db 
)
inline

Definition at line 172 of file ISiCombinatorialTrackFinder.h.

173  :
174  m_idata (in),
175  m_ddata (db)
176  {
177  }

◆ ~TrackQualityCuts()

InDet::TrackQualityCuts::~TrackQualityCuts ( )
inline

Definition at line 133 of file ISiCombinatorialTrackFinder.h.

133 {};

Member Function Documentation

◆ getDoubleCut()

bool InDet::TrackQualityCuts::getDoubleCut ( const std::string &  name,
double &  cut 
) const
inline

Definition at line 200 of file ISiCombinatorialTrackFinder.h.

201  {
202  std::map<const std::string,double>::const_iterator n = m_ddata.find(name);
203  if(n==m_ddata.end()) {cut = 0 ; return false;}
204  cut = (*n).second; return true ;
205  }

◆ getIntCut()

bool InDet::TrackQualityCuts::getIntCut ( const std::string &  name,
int &  cut 
) const
inline

Definition at line 193 of file ISiCombinatorialTrackFinder.h.

194  {
195  std::map<const std::string,int>::const_iterator n = m_idata.find(name);
196  if(n==m_idata.end()) {cut = 0 ; return false;}
197  cut =(*n).second; return true ;
198  }

◆ numDoubleCuts()

int InDet::TrackQualityCuts::numDoubleCuts ( ) const
inline

Definition at line 212 of file ISiCombinatorialTrackFinder.h.

213  {
214  return m_ddata.size();
215  }

◆ numIntCuts()

int InDet::TrackQualityCuts::numIntCuts ( ) const
inline

Definition at line 207 of file ISiCombinatorialTrackFinder.h.

208  {
209  return m_idata.size();
210  }

◆ operator=()

TrackQualityCuts & InDet::TrackQualityCuts::operator= ( const TrackQualityCuts TQC)
inline

Definition at line 165 of file ISiCombinatorialTrackFinder.h.

166  {
167  m_idata = TQC.m_idata;
168  m_ddata = TQC.m_ddata;
169  return(*this);
170  }

◆ setDoubleCut()

void InDet::TrackQualityCuts::setDoubleCut ( const std::string &  name,
double  cut 
)
inline

Definition at line 186 of file ISiCombinatorialTrackFinder.h.

187  {
189  if(n==m_ddata.end()) {m_ddata.insert(std::make_pair(name,cut));}
190  else { (*n).second = cut; }
191  }

◆ setIntCut()

void InDet::TrackQualityCuts::setIntCut ( const std::string &  name,
int  cut 
)
inline

Definition at line 179 of file ISiCombinatorialTrackFinder.h.

180  {
182  if(n==m_idata.end()) {m_idata.insert(std::make_pair(name,cut));}
183  else { (*n).second = cut; }
184  }

Member Data Documentation

◆ m_ddata

std::map<const std::string,double> InDet::TrackQualityCuts::m_ddata
protected

Definition at line 152 of file ISiCombinatorialTrackFinder.h.

◆ m_idata

std::map<const std::string,int> InDet::TrackQualityCuts::m_idata
protected

Definition at line 151 of file ISiCombinatorialTrackFinder.h.


The documentation for this class was generated from the following file:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
CaloCondBlobAlgs_fillNoiseFromASCII.db
db
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:43
InDet::TrackQualityCuts::m_idata
std::map< const std::string, int > m_idata
Definition: ISiCombinatorialTrackFinder.h:151
beamspotman.n
n
Definition: beamspotman.py:731
BindingsTest.cut
cut
This script demonstrates how to call a C++ class from Python Also how to use PyROOT is shown.
Definition: BindingsTest.py:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
InDet::TrackQualityCuts::m_ddata
std::map< const std::string, double > m_ddata
Definition: ISiCombinatorialTrackFinder.h:152