8#include <tracking/v0Finding/fitter/V0Fitter.h>
10#include <framework/gearbox/Const.h>
12#include <genfit/FieldManager.h>
13#include <genfit/MaterialEffects.h>
14#include <genfit/ConstField.h>
15#include <genfit/TGeoMaterialInterface.h>
19#include <gtest/gtest.h>
36 genfit::MaterialEffects::getInstance()->init(
new genfit::TGeoMaterialInterface());
37 genfit::FieldManager::getInstance()->init(
new genfit::ConstField(0., 0., 1.5));
60 genfit::MaterialEffects::getInstance()->init(
new genfit::TGeoMaterialInterface());
61 genfit::FieldManager::getInstance()->init(
new genfit::ConstField(0., 0., 1.5));
63 v0Fitter.
initializeCuts(1.0, 10000., {0.425, 0.575}, {1.09, 1.14}, {0, 0.1});
static const ParticleType Lambda
Lambda particle.
static const ChargedStable pion
charged pion particle
static const ParticleType antiLambda
Anti-Lambda particle.
static const ChargedStable proton
proton particle
static const ParticleType Kshort
K^0_S particle.
static const ParticleType photon
photon particle
static const ChargedStable electron
electron particle
Set up a few arrays and objects in the datastore.
V0Fitter class to create V0 mdst's from reconstructed tracks.
void initializeCuts(double beamPipeRadius, double vertexChi2CutOutside, std::tuple< double, double > invMassRangeKshort, std::tuple< double, double > invMassRangeLambda, std::tuple< double, double > invMassRangePhoton)
Initialize the cuts which will be applied during the fit and store process.
std::pair< Const::ParticleType, Const::ParticleType > getTrackHypotheses(const Const::ParticleType &v0Hypothesis) const
Get track hypotheses for a given v0 hypothesis.
double m_beamPipeRadius
Radius where inside/outside beampipe is defined.
std::tuple< double, double > m_invMassRangePhoton
invariant mass cut for Photon.
double m_vertexChi2CutOutside
Chi2 cut outside beampipe.
std::tuple< double, double > m_invMassRangeKshort
invariant mass cut for Kshort.
std::tuple< double, double > m_invMassRangeLambda
invariant mass cut for Lambda.
Abstract base class for different kinds of events.