28 const IInterface* p) :
38 declareProperty(
"HypothesisName" ,
m_hypoName =
"A");
42 declareProperty(
"MassMax" ,
m_massMax = 6000);
43 declareProperty(
"MassMin" ,
m_massMin = 2000);
44 declareProperty(
"Chi2Max" ,
m_chi2Max = 200);
46 declareProperty(
"LxyMin" ,
m_lxyMin = std::numeric_limits<double>::lowest());
47 declareProperty(
"Do3d" ,
m_do3d =
false);
64 return StatusCode::SUCCESS;
71 constexpr float errConst = -9999999;
146 for(; oniaItr!=oniaContainer->end(); ++oniaItr) {
149 if((*oniaItr)->nTrackParticles() !=
m_trkMasses.size())
189 passflag(**oniaItr) = pass;
197 onia_nc->lockDecoration (auxid);
201 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.
Handle class for adding a decoration to an object.
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
SG::WriteDecorHandleKey< xAOD::VertexContainer > m_passKey
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.
Handle class for adding a decoration to an object.
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 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.