Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GFRaveVertexFactory.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file GFRaveVertexFactory.h
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"
35 #include "MeasuredStateOnPlane.h"
36 
37 #include <vector>
38 
39 
40 namespace rave {
41  class VertexFactory;
42  class MagneticField;
43  class Propagator;
44 }
45 
46 namespace genfit {
47 
51 struct trackAndState {
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
92 
93 };
94 
95 } /* End of namespace genfit */
98 #endif // GFRAVEVERTEXFACTORY_H