SND@LHC Software
Loading...
Searching...
No Matches
TrackInfo.cxx
Go to the documentation of this file.
1#include "TrackInfo.h"
2#include "KalmanFitterInfo.h"
3#include "AbsMeasurement.h"
4#include <stdio.h>
5
6// ----- Default constructor -------------------------------------------
8 : TObject()
9{
10}
11
12// ----- Standard constructor ------------------------------------------
14{
15 for (int i = 0; i<tr->getNumPointsWithMeasurement(); i+=1) {
17 genfit::AbsMeasurement* rawM = tp->getRawMeasurement();
18 genfit::KalmanFitterInfo* info = static_cast<genfit::KalmanFitterInfo*>(tp->getFitterInfo());
19 fDetIDs.push_back(rawM->getDetId());
20 if (info){
21 fWL.push_back(info->getWeights()[0]);
22 fWR.push_back(info->getWeights()[1]);
23 } else {
24 // std::cout << "no info"<<std::endl;
25 fWL.push_back( 0 );
26 fWR.push_back( 0 );
27 }
28 // std::cout << "weights " << ((fWL)[i])<<" "<<((fWR)[i])<<" "<<((fDetIDs)[i])<<std::endl;
29 }
30}
31
32// ----- Copy constructor ----------------------------------------------
34 : TObject(ti),
35 fDetIDs(ti.fDetIDs),
36 fWL(ti.fWL),
37 fWR(ti.fWR)
38{
39}
40// ----- Destructor ----------------------------------------------------
42// -------------------------------------------------------------------------
43
44
std::vector< float > fWR
Definition TrackInfo.h:56
virtual ~TrackInfo()
Definition TrackInfo.cxx:41
std::vector< float > fWL
Definition TrackInfo.h:55
std::vector< unsigned int > fDetIDs
array of measurements
Definition TrackInfo.h:54
Contains the measurement and covariance in raw detector coordinates.
Collects information needed and produced by a AbsKalmanFitter implementations and is specific to one ...
Object containing AbsMeasurement and AbsFitterInfo objects.
Definition TrackPoint.h:50
Collection of TrackPoint objects, AbsTrackRep objects and FitStatus objects.
Definition Track.h:71
TrackPoint * getPointWithMeasurement(int id) const
Definition Track.cc:209
unsigned int getNumPointsWithMeasurement() const
Definition Track.h:112
ClassImp(ecalContFact) ecalContFact