LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lar_content::LayerInterpolation Class Reference

LayerInterpolation class. More...

#include "LArTwoDSlidingFitObjects.h"

Public Member Functions

 LayerInterpolation ()
 Default constructor. More...
 
 LayerInterpolation (const LayerFitResultMap::const_iterator &firstLayerIter, const LayerFitResultMap::const_iterator &secondLayerIter, const double firstWeight, const double secondWeight)
 Constructor. More...
 
bool IsInitialized () const
 Whether the object is initialized. More...
 
LayerFitResultMap::const_iterator GetStartLayerIter () const
 Get the start layer iterator. More...
 
LayerFitResultMap::const_iterator GetEndLayerIter () const
 Get the end layer iterator. More...
 
double GetStartLayerWeight () const
 Get the start layer weight. More...
 
double GetEndLayerWeight () const
 Get the end layer weight. More...
 

Private Attributes

bool m_isInitialized
 Whether the object is initialized. More...
 
LayerFitResultMap::const_iterator m_startLayerIter
 The start layer iterator. More...
 
LayerFitResultMap::const_iterator m_endLayerIter
 The end layer iterator. More...
 
double m_startLayerWeight
 The start layer weight. More...
 
double m_endLayerWeight
 The end layer weight. More...
 

Detailed Description

LayerInterpolation class.

Definition at line 165 of file LArTwoDSlidingFitObjects.h.

Constructor & Destructor Documentation

lar_content::LayerInterpolation::LayerInterpolation ( )
inline

Default constructor.

Definition at line 404 of file LArTwoDSlidingFitObjects.h.

404  :
405  m_isInitialized(false),
408 {
409 }
TFile f
Definition: plotHisto.C:6
bool m_isInitialized
Whether the object is initialized.
double m_startLayerWeight
The start layer weight.
double m_endLayerWeight
The end layer weight.
lar_content::LayerInterpolation::LayerInterpolation ( const LayerFitResultMap::const_iterator firstLayerIter,
const LayerFitResultMap::const_iterator secondLayerIter,
const double  firstWeight,
const double  secondWeight 
)
inline

Constructor.

Parameters
firstayerIterthe iterator for the upstream layer
secondLayerIterthe iterator for the downstream layer
firstWeightthe weight to be applied to the upstream layer
secondWeightthe weight to be applied to the downstream layer

Definition at line 413 of file LArTwoDSlidingFitObjects.h.

414  :
415  m_isInitialized(true),
416  m_startLayerIter(startLayerIter),
417  m_endLayerIter(endLayerIter),
418  m_startLayerWeight(startLayerWeight),
419  m_endLayerWeight(endLayerWeight)
420 {
421 }
LayerFitResultMap::const_iterator m_startLayerIter
The start layer iterator.
bool m_isInitialized
Whether the object is initialized.
double m_startLayerWeight
The start layer weight.
LayerFitResultMap::const_iterator m_endLayerIter
The end layer iterator.
double m_endLayerWeight
The end layer weight.

Member Function Documentation

LayerFitResultMap::const_iterator lar_content::LayerInterpolation::GetEndLayerIter ( ) const
inline

Get the end layer iterator.

Returns
the iterator for the end layer

Definition at line 442 of file LArTwoDSlidingFitObjects.h.

References m_endLayerIter, and m_isInitialized.

Referenced by lar_content::TwoDSlidingFitResult::GetFitRms(), lar_content::TwoDSlidingFitResult::GetGlobalFitDirection(), and lar_content::TwoDSlidingFitResult::GetGlobalFitPosition().

443 {
444  if (!m_isInitialized)
445  throw pandora::StatusCodeException(pandora::STATUS_CODE_NOT_INITIALIZED);
446 
447  return m_endLayerIter;
448 }
bool m_isInitialized
Whether the object is initialized.
LayerFitResultMap::const_iterator m_endLayerIter
The end layer iterator.
double lar_content::LayerInterpolation::GetEndLayerWeight ( ) const
inline

Get the end layer weight.

Returns
the weight for the end layer

Definition at line 462 of file LArTwoDSlidingFitObjects.h.

References m_endLayerWeight, and m_isInitialized.

Referenced by lar_content::TwoDSlidingFitResult::GetFitRms(), lar_content::TwoDSlidingFitResult::GetGlobalFitDirection(), and lar_content::TwoDSlidingFitResult::GetGlobalFitPosition().

463 {
464  if (!m_isInitialized)
465  throw pandora::StatusCodeException(pandora::STATUS_CODE_NOT_INITIALIZED);
466 
467  return m_endLayerWeight;
468 }
bool m_isInitialized
Whether the object is initialized.
double m_endLayerWeight
The end layer weight.
LayerFitResultMap::const_iterator lar_content::LayerInterpolation::GetStartLayerIter ( ) const
inline

Get the start layer iterator.

Returns
the iterator for the start layer

Definition at line 432 of file LArTwoDSlidingFitObjects.h.

References m_isInitialized, and m_startLayerIter.

Referenced by lar_content::TwoDSlidingFitResult::GetFitRms(), lar_content::TwoDSlidingFitResult::GetGlobalFitDirection(), and lar_content::TwoDSlidingFitResult::GetGlobalFitPosition().

433 {
434  if (!m_isInitialized)
435  throw pandora::StatusCodeException(pandora::STATUS_CODE_NOT_INITIALIZED);
436 
437  return m_startLayerIter;
438 }
LayerFitResultMap::const_iterator m_startLayerIter
The start layer iterator.
bool m_isInitialized
Whether the object is initialized.
double lar_content::LayerInterpolation::GetStartLayerWeight ( ) const
inline

Get the start layer weight.

Returns
the weight for the start layer

Definition at line 452 of file LArTwoDSlidingFitObjects.h.

References m_isInitialized, and m_startLayerWeight.

Referenced by lar_content::TwoDSlidingFitResult::GetFitRms(), lar_content::TwoDSlidingFitResult::GetGlobalFitDirection(), and lar_content::TwoDSlidingFitResult::GetGlobalFitPosition().

453 {
454  if (!m_isInitialized)
455  throw pandora::StatusCodeException(pandora::STATUS_CODE_NOT_INITIALIZED);
456 
457  return m_startLayerWeight;
458 }
bool m_isInitialized
Whether the object is initialized.
double m_startLayerWeight
The start layer weight.
bool lar_content::LayerInterpolation::IsInitialized ( ) const
inline

Whether the object is initialized.

Returns
boolean

Definition at line 425 of file LArTwoDSlidingFitObjects.h.

References m_isInitialized.

426 {
427  return m_isInitialized;
428 }
bool m_isInitialized
Whether the object is initialized.

Member Data Documentation

LayerFitResultMap::const_iterator lar_content::LayerInterpolation::m_endLayerIter
private

The end layer iterator.

Definition at line 222 of file LArTwoDSlidingFitObjects.h.

Referenced by GetEndLayerIter().

double lar_content::LayerInterpolation::m_endLayerWeight
private

The end layer weight.

Definition at line 224 of file LArTwoDSlidingFitObjects.h.

Referenced by GetEndLayerWeight().

bool lar_content::LayerInterpolation::m_isInitialized
private

Whether the object is initialized.

Definition at line 220 of file LArTwoDSlidingFitObjects.h.

Referenced by GetEndLayerIter(), GetEndLayerWeight(), GetStartLayerIter(), GetStartLayerWeight(), and IsInitialized().

LayerFitResultMap::const_iterator lar_content::LayerInterpolation::m_startLayerIter
private

The start layer iterator.

Definition at line 221 of file LArTwoDSlidingFitObjects.h.

Referenced by GetStartLayerIter().

double lar_content::LayerInterpolation::m_startLayerWeight
private

The start layer weight.

Definition at line 223 of file LArTwoDSlidingFitObjects.h.

Referenced by GetStartLayerWeight().


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