ant
A2 ant: class-based analysis framework
singlePi0.cc File Reference
+ Include dependency graph for singlePi0.cc:

Variables

auto reducedChi2
 
auto getPi0COMS
 
auto getTruePi0
 
auto getTrueProton
 
auto getTruePhotons
 
auto getTrueGammaThetas
 
auto getEgamma
 

Variable Documentation

◆ getEgamma

auto getEgamma
Initial value:
= [] (const TParticleTree_t& tree)
{
return tree->Get()->Ek();
}
Tree< TParticlePtr >::node_t TParticleTree_t
Definition: TParticle.h:22

◆ getPi0COMS

auto getPi0COMS
Initial value:
= [] (const double taggE, const LorentzVec& pi0)
{
TLorentzVector bt(0,0, taggE, taggE + ParticleTypeDatabase::Proton.Mass());
auto comsPi0 = pi0;
comsPi0.Boost(-bt.BoostVector());
return comsPi0;
}
A Lorentz vector (x,y,z,E), diag(-1,-1,-1, 1)
Definition: LorentzVec.h:12

◆ getTrueGammaThetas

auto getTrueGammaThetas
Initial value:
= [] (const TParticleTree_t& tree)
{
vector<double> thetas;
for (const auto& g: utils::ParticleTools::FindParticles(ParticleTypeDatabase::Photon,tree))
{
thetas.push_back(g->Theta());
}
return thetas;
}
Tree< TParticlePtr >::node_t TParticleTree_t
Definition: TParticle.h:22

◆ getTruePhotons

auto getTruePhotons
Initial value:
= [] (const TParticleTree_t& tree)
{
vector<LorentzVec> gammas;
for (const auto& g: utils::ParticleTools::FindParticles(ParticleTypeDatabase::Photon,tree))
{
gammas.emplace_back(*g);
}
return gammas;
}
Tree< TParticlePtr >::node_t TParticleTree_t
Definition: TParticle.h:22

◆ getTruePi0

auto getTruePi0
Initial value:
= [] (const TParticleTree_t& tree)
{
return LorentzVec(*utils::ParticleTools::FindParticle(ParticleTypeDatabase::Pi0,tree));
}
A Lorentz vector (x,y,z,E), diag(-1,-1,-1, 1)
Definition: LorentzVec.h:12
Tree< TParticlePtr >::node_t TParticleTree_t
Definition: TParticle.h:22

◆ getTrueProton

auto getTrueProton
Initial value:
= [] (const TParticleTree_t& tree)
{
return LorentzVec(*utils::ParticleTools::FindParticle(ParticleTypeDatabase::Proton,tree));
}
A Lorentz vector (x,y,z,E), diag(-1,-1,-1, 1)
Definition: LorentzVec.h:12
Tree< TParticlePtr >::node_t TParticleTree_t
Definition: TParticle.h:22

◆ reducedChi2

auto reducedChi2
Initial value:
= [](const APLCON::Result_t& ares)
{
return 1. * ares.ChiSquare / ares.NDoF;
}