27 const IInterface* p) :
37 declareProperty(
"HypothesisName" ,
m_hypoName =
"A");
41 declareProperty(
"MassMax" ,
m_massMax = 6000);
42 declareProperty(
"MassMin" ,
m_massMin = 2000);
43 declareProperty(
"Chi2Max" ,
m_chi2Max = 200);
45 declareProperty(
"LxyMin" ,
m_lxyMin = std::numeric_limits<double>::lowest());
46 declareProperty(
"Do3d" ,
m_do3d =
false);
61 return StatusCode::SUCCESS;
68 constexpr float errConst = -9999999;
142 for(; oniaItr!=oniaContainer->end(); ++oniaItr) {
145 if((*oniaItr)->nTrackParticles() !=
m_trkMasses.size())
195 onia_nc->lockDecoration (auxid);
199 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
#define BPHYS_CHECK(EXP)
Useful CHECK macro.
: B-physics xAOD helpers.
#define CHECK(...)
Evaluate an expression and check for errors.
A number of constexpr particle constants to avoid hardcoding them directly in various places.
Define macros for attributes used to control the static checker.
#define ATLAS_THREAD_SAFE
DataModel_detail::const_iterator< DataVector > const_iterator
SG::ReadHandleKey< xAOD::VertexContainer > m_inputVtxContainerName
name of the input container name
virtual StatusCode addBranches(const EventContext &ctx) const override
: augmentation and selection Retrieved vertices are augmented with usual information.
StatusCode initialize() override
inirialization and finalization
Select_onia2mumu(const std::string &t, const std::string &n, const IInterface *p)
std::string m_hypoName
job options
double m_massMin
invariant mass range
int m_DoVertexType
Allows user to skip certain vertexes - bitwise test 7==all(111)
ToolHandle< Trk::V0Tools > m_v0Tools
tools
double m_chi2Max
max chi2 cut
std::vector< double > m_trkMasses
track mass hypotheses
double m_massHypo
vertex mass hypothesis
double m_massMax
invariant mass range
double m_lxyMin
min lxy cut
void ProcessVertex(xAOD::BPhysHypoHelper &, xAOD::BPhysHelper::pv_type) const
const_pointer_type cptr()
Dereference the pointer.
A set of aux data identifiers.
float lxy(const pv_type vertexType=BPhysHelper::PV_MIN_A0)
Get the transverse decay distance and its error measured between the refitted primary vertex of type ...
const xAOD::Vertex * vtx() const
Getter method for the cached xAOD::Vertex.
const xAOD::Vertex * pv(const pv_type vertexType=BPhysHelper::PV_MIN_A0)
Get the refitted collision vertex of type pv_type.
pv_type
: Enum type of the PV
bool setTau3d(const float val, const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
proper decay time
bool setTau3dErr(const float val, const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
proper decay time error
float mass() const
Get invariant mass and its error.
bool setMass(const float val)
Set given invariant mass and its error.
bool setPass(bool passVal)
get the pass flag for this hypothesis
bool setTau(const float val, const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
: Set the proper decay time and error.
bool setMassErr(const float val)
invariant mass error
bool setTauErr(const float val, const pv_type vertexType=BPhysHelper::PV_MIN_A0, const tau_type tauType=BPhysHypoHelper::TAU_CONST_MASS)
proper decay time error
float chiSquared() const
Returns the of the vertex fit as float.
constexpr double muonMassInMeV
the mass of the muon (in MeV)
constexpr double JpsiMassInMeV
size_t auxid_t
Identifier for a particular aux data item.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Vertex_v1 Vertex
Define the latest version of the vertex class.