11 #include <framework/core/Module.h>
14 #include <Math/Vector4D.h>
17 #include <framework/database/DBObjPtr.h>
18 #include <framework/datastore/StoreArray.h>
19 #include <framework/datastore/StoreObjPtr.h>
21 #include <framework/geometry/B2Vector3.h>
24 #include <mdst/dbobjects/BeamSpot.h>
25 #include <analysis/dataobjects/ParticleList.h>
26 #include <analysis/dataobjects/Btube.h>
29 #include <analysis/VertexFitting/RaveInterface/RaveSetup.h>
30 #include <analysis/VertexFitting/RaveInterface/RaveVertexFitter.h>
31 #include <analysis/VertexFitting/RaveInterface/RaveKinematicVertexFitter.h>
33 #include <analysis/DecayDescriptor/DecayDescriptor.h>
57 virtual void event()
override;
79 ROOT::Math::PxPyPzEVector TLV);
Create a B particle from a Bbar particle.
TMatrixDSym m_beamSpotCov
Beam spot covariance matrix.
virtual void initialize() override
declare data store elements
StoreArray< Btube > m_tubeArray
the (output) array of Btube objects
virtual void event() override
process event
std::string m_decayString
specifies which daughter particles will be used as reference to create Btube
std::string m_listName
name of particle list
B2Vector3D m_BeamSpotCenter
Beam spot position.
BtubeCreatorModule()
Constructor: Sets the description, the properties and the parameters of the module.
DBObjPtr< BeamSpot > m_beamSpotDB
Beam spot database object.
bool doVertexFit(Particle *p)
Main steering routine.
double m_confidenceLevel
required fit confidence level
DecayDescriptor m_decaydescriptor
Decay descriptor of decays to look for.
void addextrainfos(Particle *daughter, Particle *copy, TMatrix mat, ROOT::Math::PxPyPzEVector TLV)
fills extrainfos to the particle
double m_Bfield
magnetic field from data base
StoreObjPtr< ParticleList > m_plist
the input particle list
bool m_verbose
run fit with a lot of B2INFOs for debugging
bool m_associateBtubeToBselected
whether to associate the Btube with the selected B
Class for accessing objects in the database.
The DecayDescriptor stores information about a decay tree or parts of a decay tree.
Class to store reconstructed particles.
Accessor to arrays stored in the data store.
Type-safe access to single objects in the data store.
Abstract base class for different kinds of events.