11#include <framework/core/Module.h>
13#include <TMatrixFSym.h>
17#include <analysis/dataobjects/Btube.h>
18#include <analysis/dataobjects/Particle.h>
19#include <analysis/dataobjects/ParticleList.h>
20#include <analysis/DecayDescriptor/DecayDescriptor.h>
22#include <framework/datastore/StoreObjPtr.h>
47 virtual void event()
override;
For each MCParticle with hits in the CDC, this class stores some summarising information on those hit...
The DecayDescriptor stores information about a decay tree or parts of a decay tree.
Calculates distance between two vertices, distance of closest approach between a vertex and a track,...
TMatrixFSym m_distanceCovMatrix
covariance matrix of distance
virtual void initialize() override
declare data store elements
virtual void event() override
process event
std::string m_decayString
decay string
std::string m_listName
name of particle list
void getBtubeDistanceErrors(const Particle *p, const Btube *t)
returns the error on the distance between the btube and the object (depending on m_mode)
DistanceCalculatorModule()
Constructor: Sets the description, the properties and the parameters of the module.
void getDistanceErrors(const Particle *p1, const Particle *p2)
returns the error on the distance between tracks or vertex objects (depending on the m_mode)
Eigen::Vector3d m_distance
distance between two objects (track/vertex/Btube and vertex/track)
DecayDescriptor m_decayDescriptor
decay descriptor which specifies which particles are used to calculate the distance
virtual ~DistanceCalculatorModule()
Destructor.
void getDistance(const Particle *p1, const Particle *p2)
returns the distance between tracks or vertex objects (depending on the m_mode)
void getBtubeDistance(const Particle *p, const Btube *t)
returns the distance between the btube and the object (depending on m_mode)
StoreObjPtr< ParticleList > m_plist
input particle list
std::string m_mode
option string
Class to store reconstructed particles.
Type-safe access to single objects in the data store.
Abstract base class for different kinds of events.