LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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 88 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.
TFile f
Definition: plotHisto.C:6
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 497 of file BdtBeamParticleIdTool.h.

Referenced by Initialize().

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

Get the beam LArTPC intersection.

Definition at line 490 of file BdtBeamParticleIdTool.h.

Referenced by lar_content::BdtBeamParticleIdTool::SliceFeatures::GetLeadingCaloHits(), and Initialize().

491 {
493 }
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 518 of file BdtBeamParticleIdTool.h.

Referenced by lar_content::BdtBeamParticleIdTool::SliceFeatures::GetLArTPCIntercepts().

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

Get m_larTPCMaxX.

Definition at line 448 of file BdtBeamParticleIdTool.h.

Referenced by lar_content::BdtBeamParticleIdTool::SliceFeatures::IsContained().

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

Get m_larTPCMaxY.

Definition at line 462 of file BdtBeamParticleIdTool.h.

Referenced by lar_content::BdtBeamParticleIdTool::SliceFeatures::IsContained().

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

Get m_larTPCMaxZ.

Definition at line 476 of file BdtBeamParticleIdTool.h.

Referenced by lar_content::BdtBeamParticleIdTool::SliceFeatures::IsContained().

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

Get m_larTPCMinX.

Definition at line 441 of file BdtBeamParticleIdTool.h.

Referenced by lar_content::BdtBeamParticleIdTool::SliceFeatures::IsContained().

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

Get m_larTPCMinY.

Definition at line 455 of file BdtBeamParticleIdTool.h.

Referenced by lar_content::BdtBeamParticleIdTool::SliceFeatures::IsContained().

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

Get m_larTPCMinZ.

Definition at line 469 of file BdtBeamParticleIdTool.h.

Referenced by lar_content::BdtBeamParticleIdTool::SliceFeatures::IsContained().

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

Get m_nSelectedHits.

Definition at line 511 of file BdtBeamParticleIdTool.h.

Referenced by lar_content::BdtBeamParticleIdTool::SliceFeatures::GetLeadingCaloHits().

512 {
513  return m_nSelectedHits;
514 }
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 483 of file BdtBeamParticleIdTool.h.

Referenced by lar_content::BdtBeamParticleIdTool::SliceFeatures::GetLArTPCIntercepts().

484 {
485  return m_larTPCPlanes;
486 }
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 504 of file BdtBeamParticleIdTool.h.

Referenced by lar_content::BdtBeamParticleIdTool::SliceFeatures::GetLeadingCaloHits().

505 {
506  return m_selectedFraction;
507 }
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.

References f, lar_content::LArPfoHelper::GetAllConnectedPfos(), GetBeamDirection(), GetBeamLArTPCIntersection(), lar_content::LArPfoHelper::GetCaloHits(), m_larTPCMaxX, m_larTPCMaxY, m_larTPCMaxZ, m_larTPCMinX, m_larTPCMinY, m_larTPCMinZ, m_larTPCPlanes, lar_content::BdtBeamParticleIdTool::m_sliceFeatureParameters, lar_content::LArPcaHelper::RunPca(), and lar_content::BdtBeamParticleIdTool::SliceFeatures::SliceFeatures().

Referenced by lar_content::BdtBeamParticleIdTool::Initialize().

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.
TFile f
Definition: plotHisto.C:6
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 413 of file BdtBeamParticleIdTool.h.

Referenced by lar_content::BdtBeamParticleIdTool::ReadSettings().

414 {
415  m_beamDirection = beamDirection;
416 }
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 406 of file BdtBeamParticleIdTool.h.

Referenced by lar_content::BdtBeamParticleIdTool::ReadSettings().

407 {
408  m_beamLArTPCIntersection = beamLArTPCIntersection;
409 }
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 434 of file BdtBeamParticleIdTool.h.

Referenced by lar_content::BdtBeamParticleIdTool::ReadSettings().

435 {
436  m_containmentLimit = containmentLimit;
437 }
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 427 of file BdtBeamParticleIdTool.h.

Referenced by lar_content::BdtBeamParticleIdTool::ReadSettings().

428 {
429  m_nSelectedHits = nSelectedHits;
430 }
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 420 of file BdtBeamParticleIdTool.h.

Referenced by lar_content::BdtBeamParticleIdTool::ReadSettings().

421 {
422  m_selectedFraction = selectedFraction;
423 }
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 213 of file BdtBeamParticleIdTool.h.

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

Intersection of beam and global LArTPC volume.

Definition at line 212 of file BdtBeamParticleIdTool.h.

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

Limit applied in is contained definition.

Definition at line 216 of file BdtBeamParticleIdTool.h.

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

Global LArTPC volume maximum x extent.

Definition at line 206 of file BdtBeamParticleIdTool.h.

Referenced by Initialize().

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

Global LArTPC volume maximum y extent.

Definition at line 208 of file BdtBeamParticleIdTool.h.

Referenced by Initialize().

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

Global LArTPC volume maximum z extent.

Definition at line 210 of file BdtBeamParticleIdTool.h.

Referenced by Initialize().

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

Global LArTPC volume minimum x extent.

Definition at line 205 of file BdtBeamParticleIdTool.h.

Referenced by Initialize().

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

Global LArTPC volume minimum y extent.

Definition at line 207 of file BdtBeamParticleIdTool.h.

Referenced by Initialize().

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

Global LArTPC volume minimum z extent.

Definition at line 209 of file BdtBeamParticleIdTool.h.

Referenced by Initialize().

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

Vector of all planes making up global LArTPC volume.

Definition at line 211 of file BdtBeamParticleIdTool.h.

Referenced by Initialize().

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

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

Definition at line 215 of file BdtBeamParticleIdTool.h.

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

Fraction of hits to use in 3D cluster fits.

Definition at line 214 of file BdtBeamParticleIdTool.h.


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