1 #include <algo/inc/pereventipfitter.h>
4 #include <inc/vertex.h>
6 #include <util/inc/memorymanager.h>
7 #include <zvtop/include/candidatevertex.h>
8 #include <zvtop/include/vertexfunction.h>
9 #include <zvtop/include/VertexFitterKalman.h>
10 #include <zvtop/include/interactionpoint.h>
11 #include <inc/event.h>
12 #include <util/inc/string.h>
26 PerEventIPFitter::PerEventIPFitter()
28 _ProbThreshold = 0.01;
33 return "PerEventIPFitter";
38 std::vector<string> paramNames;
39 paramNames.push_back(
"ProbThreshold");
45 std::vector<string> paramValues;
46 paramValues.push_back(makeString(_ProbThreshold));
52 this->badParameter(Parameter);
57 if (Parameter ==
"ProbThreshold")
59 _ProbThreshold = Value;
61 else this->badParameter(Parameter);
66 this->badParameter(Parameter);
73 vector<TrackState*> TrackStates;
74 for (vector<Track*>::const_iterator iTrack = MyEvent->
tracks().begin(); iTrack != MyEvent->
tracks().end(); ++iTrack)
76 TrackStates.push_back((*iTrack)->makeState());
93 ResultVertex =
new Vertex(&CVertex,MyEvent);
97 ResultVertex =
new Vertex(MyEvent,
string name() const
Name.
void setDoubleParameter(const string &Parameter, const double Value)
Set Double Parameter.
Vertex * calculateFor(Event *MyEvent) const
Run the algorithm on an Event.
Interaction Point representation.
Vertex Function Interface.
bool isPrimary() const
Is this vertex primary.
A collection of TrackState objects with a fit and vertex function maximum.
const std::vector< Track * > & tracks() const
Get Tracks.
void setStringParameter(const string &Parameter, const string &Value)
Set String Parameter.
void setPointerParameter(const string &Parameter, void *Value)
Set Pointer Parameter.
int trimByProb(const double ProbThreshold)
Trim trackstates in order of decreasing chi squared until the vertex has a probabilty below that of t...
static MemoryManager< T > * Event()
Returns the Event duration singleton instance of the MemoryManager for type T.
const std::vector< TrackState * > & trackStateList() const
Return the TrackStates in this Vertex.
std::vector< string > parameterValues() const
Parameter Values.
const SymMatrix3x3 & interactionPointError() const
Interaction Point position error.
const Vector3 & interactionPoint() const
Interaction Point position.
std::vector< string > parameterNames() const
Parameter Names.