SND@LHC Software
Loading...
Searching...
No Matches
GFRaveVertexFactory.h
Go to the documentation of this file.
1/* Copyright 2008-2010, Technische Universitaet Muenchen,
2 Authors: Christian Hoeppner & Sebastian Neubert & Johannes Rauch
3
4 This file is part of GENFIT.
5
6 GENFIT is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as published
8 by the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 GENFIT is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public License
17 along with GENFIT. If not, see <http://www.gnu.org/licenses/>.
18*/
19
30#ifndef GFRAVEVERTEXFACTORY_H
31#define GFRAVEVERTEXFACTORY_H
32
33#include "GFRaveVertex.h"
34#include "Track.h"
36
37#include <vector>
38
39
40namespace rave {
41 class VertexFactory;
42 class MagneticField;
43 class Propagator;
44}
45
46namespace genfit {
47
52 const Track* track_; // pointer to original track
53 MeasuredStateOnPlane* state_; // pointer to copy of fitted state; can be altered (extrapolated) during vertexing
54};
55
56
65 public:
66 // constructors, destructors
67 GFRaveVertexFactory(int verbosity = 0, bool useVacuumPropagator = false);
69
70 // functions
71 void findVertices ( std::vector < genfit::GFRaveVertex* > *, const std::vector < genfit::Track* > &, bool use_beamspot=false );
73 void findVertices ( std::vector < genfit::GFRaveVertex* > *, const std::vector < genfit::Track* > &, std::vector < genfit::MeasuredStateOnPlane* > &, bool use_beamspot=false );
74
75 void setBeamspot(const TVector3 & pos, const TMatrixDSym & cov);
76
81 void setMethod(const std::string & method);
82
83 private:
84
85 void clearMap();
86
87 // data members
88 std::map<int, genfit::trackAndState> IdGFTrackStateMap_; // map of copies of the cardinal MeasuredStateOnPlanes for the GFRavePropagator; ownership of MeasuredStateOnPlanes is HERE!!!
89 rave::VertexFactory* factory_; // Ownership
90 rave::MagneticField* magneticField_; // Ownership
91 rave::Propagator* propagator_; // Ownership
92
93};
94
95} /* End of namespace genfit */
98#endif // GFRAVEVERTEXFACTORY_H
Vertex factory for producing GFRaveVertex objects from Track objects.
rave::MagneticField * magneticField_
void findVertices(std::vector< genfit::GFRaveVertex * > *, const std::vector< genfit::Track * > &, bool use_beamspot=false)
rave::VertexFactory * factory_
void setMethod(const std::string &method)
std::map< int, genfit::trackAndState > IdGFTrackStateMap_
void setBeamspot(const TVector3 &pos, const TMatrixDSym &cov)
StateOnPlane with additional covariance matrix.
Collection of TrackPoint objects, AbsTrackRep objects and FitStatus objects.
Definition Track.h:71
Matrix inversion tools.
Definition AbsBField.h:29
Simple struct containing a Track pointer and a MeasuredStateOnPlane. Used in GFRave.
MeasuredStateOnPlane * state_