ant
A2 ant: class-based analysis framework
ant::analysis::utils::NoProtonFitter Class Reference

#include <NoProtonFitter.h>

+ Inheritance diagram for ant::analysis::utils::NoProtonFitter:
+ Collaboration diagram for ant::analysis::utils::NoProtonFitter:

Classes

struct  BeamE_t
 
struct  Exception
 
struct  FitProtonUnMeas
 
struct  Target_t
 

Public Member Functions

 NoProtonFitter (UncertaintyModelPtr uncertainty_model=nullptr, bool fit_Z_vertex=false, const APLCON::Fit_Settings_t &settings=DefaultSettings)
 NoProtonFitter applies energy-momentum constraint to proton/photons where proton is set as unmeasured, STILL NOT COMPLETELY TESTED. More...
 
void SetZVertexSigma (double sigma)
 
bool IsZVertexFitEnabled () const noexcept
 
bool IsZVertexUnmeasured () const
 
void SetTarget (double length, double center=0.)
 
LorentzVec GetFittedProton () const
 
TParticleList GetFittedPhotons () const
 
double GetFittedBeamE () const
 
TParticlePtr GetFittedBeamParticle () const
 
double GetFittedZVertex () const
 
double GetBeamEPull () const
 
double GetZVertexPull () const
 
std::vector< FitParticleGetFitParticles () const
 
APLCON::Result_t DoFit (double ebeam, const TParticleList &photons)
 
void SetUncertaintyModel (const UncertaintyModelPtr &uncertainty_model)
 

Protected Types

using Photons_t = std::vector< FitParticle >
 
using Proton_t = FitProtonUnMeas
 

Protected Member Functions

void PrepareFit (double ebeam, const TParticleList &photons)
 
- Protected Member Functions inherited from ant::analysis::utils::Fitter
 Fitter ()=default
 

Static Protected Member Functions

static std::array< double, 4 > constraintEnergyMomentum (const BeamE_t &beam, const Proton_t &proton, const Photons_t &photons, const Z_Vertex_t &)
 

Protected Attributes

BeamE_t BeamE
 
Proton_t Proton
 
Photons_t Photons
 
Z_Vertex_t Z_Vertex
 
Target_t Target
 
APLCON::Fitter< BeamE_t, Proton_t, Photons_t, Z_Vertex_taplcon
 

Additional Inherited Members

- Static Public Attributes inherited from ant::analysis::utils::Fitter
static const APLCON::Fit_Settings_t DefaultSettings
 

Member Typedef Documentation

◆ Photons_t

using ant::analysis::utils::NoProtonFitter::Photons_t = std::vector<FitParticle>
protected

◆ Proton_t

Constructor & Destructor Documentation

◆ NoProtonFitter()

NoProtonFitter::NoProtonFitter ( UncertaintyModelPtr  uncertainty_model = nullptr,
bool  fit_Z_vertex = false,
const APLCON::Fit_Settings_t &  settings = DefaultSettings 
)
explicit

NoProtonFitter applies energy-momentum constraint to proton/photons where proton is set as unmeasured, STILL NOT COMPLETELY TESTED.

Parameters
uncertainty_modelmodel to obtain uncertainties
settingstune the underlying APLCON fitter

Member Function Documentation

◆ constraintEnergyMomentum()

std::array< double, 4 > NoProtonFitter::constraintEnergyMomentum ( const BeamE_t beam,
const Proton_t proton,
const Photons_t photons,
const Z_Vertex_t z_vertex 
)
staticprotected

◆ DoFit()

APLCON::Result_t NoProtonFitter::DoFit ( double  ebeam,
const TParticleList photons 
)

◆ GetBeamEPull()

double NoProtonFitter::GetBeamEPull ( ) const

◆ GetFitParticles()

std::vector< Fitter::FitParticle > NoProtonFitter::GetFitParticles ( ) const

◆ GetFittedBeamE()

double NoProtonFitter::GetFittedBeamE ( ) const

◆ GetFittedBeamParticle()

TParticlePtr NoProtonFitter::GetFittedBeamParticle ( ) const

◆ GetFittedPhotons()

TParticleList NoProtonFitter::GetFittedPhotons ( ) const

◆ GetFittedProton()

LorentzVec NoProtonFitter::GetFittedProton ( ) const

◆ GetFittedZVertex()

double NoProtonFitter::GetFittedZVertex ( ) const

◆ GetZVertexPull()

double NoProtonFitter::GetZVertexPull ( ) const

◆ IsZVertexFitEnabled()

bool NoProtonFitter::IsZVertexFitEnabled ( ) const
noexcept

◆ IsZVertexUnmeasured()

bool NoProtonFitter::IsZVertexUnmeasured ( ) const

◆ PrepareFit()

void NoProtonFitter::PrepareFit ( double  ebeam,
const TParticleList photons 
)
protected

◆ SetTarget()

void NoProtonFitter::SetTarget ( double  length,
double  center = 0. 
)

◆ SetUncertaintyModel()

void ant::analysis::utils::NoProtonFitter::SetUncertaintyModel ( const UncertaintyModelPtr uncertainty_model)
inline

◆ SetZVertexSigma()

void NoProtonFitter::SetZVertexSigma ( double  sigma)

Member Data Documentation

◆ aplcon

APLCON::Fitter<BeamE_t, Proton_t, Photons_t, Z_Vertex_t> ant::analysis::utils::NoProtonFitter::aplcon
protected

◆ BeamE

BeamE_t ant::analysis::utils::NoProtonFitter::BeamE
protected

◆ Photons

Photons_t ant::analysis::utils::NoProtonFitter::Photons
protected

◆ Proton

Proton_t ant::analysis::utils::NoProtonFitter::Proton
protected

◆ Target

Target_t ant::analysis::utils::NoProtonFitter::Target
protected

◆ Z_Vertex

Z_Vertex_t ant::analysis::utils::NoProtonFitter::Z_Vertex
protected

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