All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
lar_content::BdtBeamParticleIdTool::SliceFeatureParameters Class Reference

SliceFeatureParameters class. More...

Public Member Functions

 SliceFeatureParameters ()
 Constructor. More...
 
void Initialize (const float larTPCMinX, const float larTPCMaxX, const float larTPCMinY, const float larTPCMaxY, const float larTPCMinZ, const float larTPCMaxZ)
 Set LArTPC geometry information. More...
 
void SetBeamLArTPCIntersection (const pandora::CartesianVector &beamLArTPCIntersection)
 Set m_beamLArTPCIntersection. More...
 
void SetBeamDirection (const pandora::CartesianVector &beamDirection)
 Set m_beamDirection. More...
 
void SetSelectedFraction (const float selectedFraction)
 Set m_selectedFraction. More...
 
void SetNSelectedHits (const unsigned int nSelectedHits)
 Set m_nSelectedHits. More...
 
void SetContainmentLimit (const float containmentLimit)
 Set m_containmentLimit. More...
 
float GetLArTPCMinX () const
 Get m_larTPCMinX. More...
 
float GetLArTPCMaxX () const
 Get m_larTPCMaxX. More...
 
float GetLArTPCMinY () const
 Get m_larTPCMinY. More...
 
float GetLArTPCMaxY () const
 Get m_larTPCMaxY. More...
 
float GetLArTPCMinZ () const
 Get m_larTPCMinZ. More...
 
float GetLArTPCMaxZ () const
 Get m_larTPCMaxZ. More...
 
const PlaneVectorGetPlanes () const
 Get vector of planes. More...
 
const pandora::CartesianVector & GetBeamLArTPCIntersection () const
 Get the beam LArTPC intersection. More...
 
const pandora::CartesianVector & GetBeamDirection () const
 Get the beam direction. More...
 
float GetSelectedFraction () const
 Get m_selectedFraction. More...
 
unsigned int GetNSelectedHits () const
 Get m_nSelectedHits. More...
 
float GetContainmentLimit () const
 Get m_containmentLimit. More...
 

Private Attributes

float m_larTPCMinX
 Global LArTPC volume minimum x extent. More...
 
float m_larTPCMaxX
 Global LArTPC volume maximum x extent. More...
 
float m_larTPCMinY
 Global LArTPC volume minimum y extent. More...
 
float m_larTPCMaxY
 Global LArTPC volume maximum y extent. More...
 
float m_larTPCMinZ
 Global LArTPC volume minimum z extent. More...
 
float m_larTPCMaxZ
 Global LArTPC volume maximum z extent. More...
 
PlaneVector m_larTPCPlanes
 Vector of all planes making up global LArTPC volume. More...
 
pandora::CartesianVector m_beamLArTPCIntersection
 Intersection of beam and global LArTPC volume. More...
 
pandora::CartesianVector m_beamDirection
 Beam direction. More...
 
float m_selectedFraction
 Fraction of hits to use in 3D cluster fits. More...
 
unsigned int m_nSelectedHits
 Minimum number of hits to use in 3D cluster fits. More...
 
float m_containmentLimit
 Limit applied in is contained definition. More...
 

Detailed Description

SliceFeatureParameters class.

Definition at line 87 of file BdtBeamParticleIdTool.h.

Constructor & Destructor Documentation

lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::SliceFeatureParameters ( )

Constructor.

Definition at line 388 of file BdtBeamParticleIdTool.cc.

388  :
389  m_larTPCMinX(std::numeric_limits<float>::max()),
390  m_larTPCMaxX(std::numeric_limits<float>::max()),
391  m_larTPCMinY(std::numeric_limits<float>::max()),
392  m_larTPCMaxY(std::numeric_limits<float>::max()),
393  m_larTPCMinZ(std::numeric_limits<float>::max()),
394  m_larTPCMaxZ(std::numeric_limits<float>::max()),
395  m_beamLArTPCIntersection(0.f, 0.f, 0.f),
396  m_beamDirection(0.f, 0.f, 0.f),
397  m_selectedFraction(10.f),
398  m_nSelectedHits(100),
399  m_containmentLimit(0.01f)
400 {
401 }
float m_larTPCMinY
Global LArTPC volume minimum y extent.
float m_larTPCMaxX
Global LArTPC volume maximum x extent.
unsigned int m_nSelectedHits
Minimum number of hits to use in 3D cluster fits.
float m_selectedFraction
Fraction of hits to use in 3D cluster fits.
float m_larTPCMaxY
Global LArTPC volume maximum y extent.
pandora::CartesianVector m_beamDirection
Beam direction.
float m_containmentLimit
Limit applied in is contained definition.
float m_larTPCMinX
Global LArTPC volume minimum x extent.
float m_larTPCMaxZ
Global LArTPC volume maximum z extent.
pandora::CartesianVector m_beamLArTPCIntersection
Intersection of beam and global LArTPC volume.
float m_larTPCMinZ
Global LArTPC volume minimum z extent.

Member Function Documentation

const pandora::CartesianVector & lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetBeamDirection ( ) const
inline

Get the beam direction.

Definition at line 496 of file BdtBeamParticleIdTool.h.

497 {
498  return m_beamDirection;
499 }
pandora::CartesianVector m_beamDirection
Beam direction.
const pandora::CartesianVector & lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetBeamLArTPCIntersection ( ) const
inline

Get the beam LArTPC intersection.

Definition at line 489 of file BdtBeamParticleIdTool.h.

490 {
492 }
pandora::CartesianVector m_beamLArTPCIntersection
Intersection of beam and global LArTPC volume.
float lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetContainmentLimit ( ) const
inline

Get m_containmentLimit.

Definition at line 517 of file BdtBeamParticleIdTool.h.

518 {
519  return m_containmentLimit;
520 }
float m_containmentLimit
Limit applied in is contained definition.
float lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetLArTPCMaxX ( ) const
inline

Get m_larTPCMaxX.

Definition at line 447 of file BdtBeamParticleIdTool.h.

448 {
449  return m_larTPCMaxX;
450 }
float m_larTPCMaxX
Global LArTPC volume maximum x extent.
float lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetLArTPCMaxY ( ) const
inline

Get m_larTPCMaxY.

Definition at line 461 of file BdtBeamParticleIdTool.h.

462 {
463  return m_larTPCMaxY;
464 }
float m_larTPCMaxY
Global LArTPC volume maximum y extent.
float lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetLArTPCMaxZ ( ) const
inline

Get m_larTPCMaxZ.

Definition at line 475 of file BdtBeamParticleIdTool.h.

476 {
477  return m_larTPCMaxZ;
478 }
float m_larTPCMaxZ
Global LArTPC volume maximum z extent.
float lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetLArTPCMinX ( ) const
inline

Get m_larTPCMinX.

Definition at line 440 of file BdtBeamParticleIdTool.h.

441 {
442  return m_larTPCMinX;
443 }
float m_larTPCMinX
Global LArTPC volume minimum x extent.
float lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetLArTPCMinY ( ) const
inline

Get m_larTPCMinY.

Definition at line 454 of file BdtBeamParticleIdTool.h.

455 {
456  return m_larTPCMinY;
457 }
float m_larTPCMinY
Global LArTPC volume minimum y extent.
float lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetLArTPCMinZ ( ) const
inline

Get m_larTPCMinZ.

Definition at line 468 of file BdtBeamParticleIdTool.h.

469 {
470  return m_larTPCMinZ;
471 }
float m_larTPCMinZ
Global LArTPC volume minimum z extent.
unsigned int lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetNSelectedHits ( ) const
inline

Get m_nSelectedHits.

Definition at line 510 of file BdtBeamParticleIdTool.h.

511 {
512  return m_nSelectedHits;
513 }
unsigned int m_nSelectedHits
Minimum number of hits to use in 3D cluster fits.
const BdtBeamParticleIdTool::PlaneVector & lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetPlanes ( ) const
inline

Get vector of planes.

Definition at line 482 of file BdtBeamParticleIdTool.h.

483 {
484  return m_larTPCPlanes;
485 }
PlaneVector m_larTPCPlanes
Vector of all planes making up global LArTPC volume.
float lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::GetSelectedFraction ( ) const
inline

Get m_selectedFraction.

Definition at line 503 of file BdtBeamParticleIdTool.h.

504 {
505  return m_selectedFraction;
506 }
float m_selectedFraction
Fraction of hits to use in 3D cluster fits.
void lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::Initialize ( const float  larTPCMinX,
const float  larTPCMaxX,
const float  larTPCMinY,
const float  larTPCMaxY,
const float  larTPCMinZ,
const float  larTPCMaxZ 
)

Set LArTPC geometry information.

Parameters
larTPCMinXthe global LArTPC volume minimum x extent
larTPCMaxXthe global LArTPC volume maximum x extent
larTPCMinYthe global LArTPC volume minimum y extent
larTPCMaxYthe global LArTPC volume maximum y extent
larTPCMinZthe global LArTPC volume minimum z extent
larTPCMaxZthe global LArTPC volume maximum z extent

Definition at line 405 of file BdtBeamParticleIdTool.cc.

407 {
408  m_larTPCMinX = larTPCMinX;
409  m_larTPCMaxX = larTPCMaxX;
410  m_larTPCMinY = larTPCMinY;
411  m_larTPCMaxY = larTPCMaxY;
412  m_larTPCMinZ = larTPCMinZ;
413  m_larTPCMaxZ = larTPCMaxZ;
414 
415  const CartesianVector normalTop(0.f, 0.f, 1.f), pointTop(0.f, 0.f, m_larTPCMaxZ);
416  const CartesianVector normalBottom(0.f, 0.f, -1.f), pointBottom(0.f, 0.f, m_larTPCMinZ);
417  const CartesianVector normalRight(1.f, 0.f, 0.f), pointRight(m_larTPCMaxX, 0.f, 0.f);
418  const CartesianVector normalLeft(-1.f, 0.f, 0.f), pointLeft(m_larTPCMinX, 0.f, 0.f);
419  const CartesianVector normalBack(0.f, 1.f, 0.f), pointBack(0.f, m_larTPCMaxY, 0.f);
420  const CartesianVector normalFront(0.f, -1.f, 0.f), pointFront(0.f, m_larTPCMinY, 0.f);
421 
422  m_larTPCPlanes.emplace_back(normalTop, pointTop);
423  m_larTPCPlanes.emplace_back(normalBottom, pointBottom);
424  m_larTPCPlanes.emplace_back(normalRight, pointRight);
425  m_larTPCPlanes.emplace_back(normalLeft, pointLeft);
426  m_larTPCPlanes.emplace_back(normalBack, pointBack);
427  m_larTPCPlanes.emplace_back(normalFront, pointFront);
428 }
float m_larTPCMinY
Global LArTPC volume minimum y extent.
float m_larTPCMaxX
Global LArTPC volume maximum x extent.
PlaneVector m_larTPCPlanes
Vector of all planes making up global LArTPC volume.
float m_larTPCMaxY
Global LArTPC volume maximum y extent.
float m_larTPCMinX
Global LArTPC volume minimum x extent.
float m_larTPCMaxZ
Global LArTPC volume maximum z extent.
float m_larTPCMinZ
Global LArTPC volume minimum z extent.
void lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::SetBeamDirection ( const pandora::CartesianVector &  beamDirection)
inline

Set m_beamDirection.

Parameters
beamDirectiondirection of beam

Definition at line 412 of file BdtBeamParticleIdTool.h.

413 {
414  m_beamDirection = beamDirection;
415 }
pandora::CartesianVector m_beamDirection
Beam direction.
void lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::SetBeamLArTPCIntersection ( const pandora::CartesianVector &  beamLArTPCIntersection)
inline

Set m_beamLArTPCIntersection.

Parameters
beamLArTPCIntersectionintersection of beam and TPC

Definition at line 405 of file BdtBeamParticleIdTool.h.

406 {
407  m_beamLArTPCIntersection = beamLArTPCIntersection;
408 }
pandora::CartesianVector m_beamLArTPCIntersection
Intersection of beam and global LArTPC volume.
void lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::SetContainmentLimit ( const float  containmentLimit)
inline

Set m_containmentLimit.

Parameters
containmentLimitlimit used in is contained definition

Definition at line 433 of file BdtBeamParticleIdTool.h.

434 {
435  m_containmentLimit = containmentLimit;
436 }
float m_containmentLimit
Limit applied in is contained definition.
void lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::SetNSelectedHits ( const unsigned int  nSelectedHits)
inline

Set m_nSelectedHits.

Parameters
nSelectedHitsminimum number of hits to use in 3D cluster fits

Definition at line 426 of file BdtBeamParticleIdTool.h.

427 {
428  m_nSelectedHits = nSelectedHits;
429 }
unsigned int m_nSelectedHits
Minimum number of hits to use in 3D cluster fits.
void lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::SetSelectedFraction ( const float  selectedFraction)
inline

Set m_selectedFraction.

Parameters
selectedFractionfraction of hits to use in 3D cluster fits

Definition at line 419 of file BdtBeamParticleIdTool.h.

420 {
421  m_selectedFraction = selectedFraction;
422 }
float m_selectedFraction
Fraction of hits to use in 3D cluster fits.

Member Data Documentation

pandora::CartesianVector lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::m_beamDirection
private

Beam direction.

Definition at line 212 of file BdtBeamParticleIdTool.h.

pandora::CartesianVector lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::m_beamLArTPCIntersection
private

Intersection of beam and global LArTPC volume.

Definition at line 211 of file BdtBeamParticleIdTool.h.

float lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::m_containmentLimit
private

Limit applied in is contained definition.

Definition at line 215 of file BdtBeamParticleIdTool.h.

float lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::m_larTPCMaxX
private

Global LArTPC volume maximum x extent.

Definition at line 205 of file BdtBeamParticleIdTool.h.

float lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::m_larTPCMaxY
private

Global LArTPC volume maximum y extent.

Definition at line 207 of file BdtBeamParticleIdTool.h.

float lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::m_larTPCMaxZ
private

Global LArTPC volume maximum z extent.

Definition at line 209 of file BdtBeamParticleIdTool.h.

float lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::m_larTPCMinX
private

Global LArTPC volume minimum x extent.

Definition at line 204 of file BdtBeamParticleIdTool.h.

float lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::m_larTPCMinY
private

Global LArTPC volume minimum y extent.

Definition at line 206 of file BdtBeamParticleIdTool.h.

float lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::m_larTPCMinZ
private

Global LArTPC volume minimum z extent.

Definition at line 208 of file BdtBeamParticleIdTool.h.

PlaneVector lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::m_larTPCPlanes
private

Vector of all planes making up global LArTPC volume.

Definition at line 210 of file BdtBeamParticleIdTool.h.

unsigned int lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::m_nSelectedHits
private

Minimum number of hits to use in 3D cluster fits.

Definition at line 214 of file BdtBeamParticleIdTool.h.

float lar_content::BdtBeamParticleIdTool::SliceFeatureParameters::m_selectedFraction
private

Fraction of hits to use in 3D cluster fits.

Definition at line 213 of file BdtBeamParticleIdTool.h.


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