LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 86 of file BdtBeamParticleIdTool.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 382 of file BdtBeamParticleIdTool.cc.

382  :
389  m_beamLArTPCIntersection(0.f, 0.f, 0.f),
390  m_beamDirection(0.f, 0.f, 0.f),
391  m_selectedFraction(10.f),
392  m_nSelectedHits(100),
393  m_containmentLimit(0.01f)
394 {
395 }
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
Int_t max
Definition: plot.C:27
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 498 of file BdtBeamParticleIdTool.h.

Referenced by Initialize().

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

Get the beam LArTPC intersection.

Definition at line 491 of file BdtBeamParticleIdTool.h.

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

492 {
494 }
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 519 of file BdtBeamParticleIdTool.h.

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

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

Get m_larTPCMaxX.

Definition at line 449 of file BdtBeamParticleIdTool.h.

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

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

Get m_larTPCMaxY.

Definition at line 463 of file BdtBeamParticleIdTool.h.

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

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

Get m_larTPCMaxZ.

Definition at line 477 of file BdtBeamParticleIdTool.h.

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

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

Get m_larTPCMinX.

Definition at line 442 of file BdtBeamParticleIdTool.h.

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

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

Get m_larTPCMinY.

Definition at line 456 of file BdtBeamParticleIdTool.h.

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

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

Get m_larTPCMinZ.

Definition at line 470 of file BdtBeamParticleIdTool.h.

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

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

Get m_nSelectedHits.

Definition at line 512 of file BdtBeamParticleIdTool.h.

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

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

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

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

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

506 {
507  return m_selectedFraction;
508 }
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 399 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, max, min, lar_content::LArPcaHelper::RunPca(), and lar_content::BdtBeamParticleIdTool::SliceFeatures::SliceFeatures().

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

400 {
401  m_larTPCMinX = larTPCMinX;
402  m_larTPCMaxX = larTPCMaxX;
403  m_larTPCMinY = larTPCMinY;
404  m_larTPCMaxY = larTPCMaxY;
405  m_larTPCMinZ = larTPCMinZ;
406  m_larTPCMaxZ = larTPCMaxZ;
407 
408  const CartesianVector normalTop(0.f, 0.f, 1.f), pointTop(0.f, 0.f, m_larTPCMaxZ);
409  const CartesianVector normalBottom(0.f, 0.f, -1.f), pointBottom(0.f, 0.f, m_larTPCMinZ);
410  const CartesianVector normalRight(1.f, 0.f, 0.f), pointRight(m_larTPCMaxX, 0.f, 0.f);
411  const CartesianVector normalLeft(-1.f, 0.f, 0.f), pointLeft(m_larTPCMinX, 0.f, 0.f);
412  const CartesianVector normalBack(0.f, 1.f, 0.f), pointBack(0.f, m_larTPCMaxY, 0.f);
413  const CartesianVector normalFront(0.f, -1.f, 0.f), pointFront(0.f, m_larTPCMinY, 0.f);
414 
415  m_larTPCPlanes.emplace_back(normalTop, pointTop);
416  m_larTPCPlanes.emplace_back(normalBottom, pointBottom);
417  m_larTPCPlanes.emplace_back(normalRight, pointRight);
418  m_larTPCPlanes.emplace_back(normalLeft, pointLeft);
419  m_larTPCPlanes.emplace_back(normalBack, pointBack);
420  m_larTPCPlanes.emplace_back(normalFront, pointFront);
421 }
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 414 of file BdtBeamParticleIdTool.h.

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

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

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

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

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

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

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

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

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

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

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

Intersection of beam and global LArTPC volume.

Definition at line 209 of file BdtBeamParticleIdTool.h.

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

Limit applied in is contained definition.

Definition at line 213 of file BdtBeamParticleIdTool.h.

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

Global LArTPC volume maximum x extent.

Definition at line 203 of file BdtBeamParticleIdTool.h.

Referenced by Initialize().

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

Global LArTPC volume maximum y extent.

Definition at line 205 of file BdtBeamParticleIdTool.h.

Referenced by Initialize().

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

Global LArTPC volume maximum z extent.

Definition at line 207 of file BdtBeamParticleIdTool.h.

Referenced by Initialize().

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

Global LArTPC volume minimum x extent.

Definition at line 202 of file BdtBeamParticleIdTool.h.

Referenced by Initialize().

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

Global LArTPC volume minimum y extent.

Definition at line 204 of file BdtBeamParticleIdTool.h.

Referenced by Initialize().

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

Global LArTPC volume minimum z extent.

Definition at line 206 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 208 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 212 of file BdtBeamParticleIdTool.h.

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

Fraction of hits to use in 3D cluster fits.

Definition at line 211 of file BdtBeamParticleIdTool.h.


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