#include <PndLmdLineTask.h>
Definition at line 29 of file PndLmdLineTask.h.
PndLmdLineTask::PndLmdLineTask |
( |
TString |
hitBranch = "LMDHitsStrip" | ) |
|
PndLmdLineTask::~PndLmdLineTask |
( |
| ) |
|
|
virtual |
Definition at line 65 of file PndLmdLineTask.cxx.
66 cout <<
"PndLmdLineTask::~PndLmdLineTask()" << endl;
void PndLmdLineTask::Exec |
( |
Option_t * |
opt | ) |
|
|
virtual |
Obtain first approximation
Definition at line 100 of file PndLmdLineTask.cxx.
References fRecoArray, fTCandArray, fTrackArray, fVerbose, PndTrackCandHit::GetHitId(), PndTrackCand::GetNHits(), PndSdsHit::GetPosition(), PndTrackCand::GetSortedHit(), and track.
101 std::cout <<
"PndLmdLineTask::Exec" << std::endl;
103 if (
fTrackArray == 0) Fatal(
"PndLmdLineTask::Exec",
"No TrackArray");
110 std::cout <<
" -I- PndLmdLineTask: contains " << ntcand <<
" RhoCandidates"
113 std::cout <<
" Detailed Debug info on the candidates:" << std::endl;
116 for (Int_t itr = 0; itr < ntcand; ++itr) {
118 std::cout <<
"TrackCand no. " << itr <<
" has " << trcnd->
GetNHits()
119 <<
" hits." << std::endl;
120 std::cout <<
"Point: \t Index: " << std::endl;
121 for (
unsigned int ihit = 0; ihit < trcnd->
GetNHits();
126 std::cout << ihit <<
"\t" << index << std::endl;
140 std::cout <<
" -I- PndLmdLineTask: start Fitting " << std::endl;
144 const int numPts = trcnd->
GetNHits();
155 TVector3 dirSeed = pos2 - posSeed;
156 dirSeed *= 1. / dirSeed.Mag();
160 std::cout <<
"Track: " <<
track <<
" Points: " << numPts << std::endl;
164 Int_t firstHit = -1, lastHit = -1;
165 for (
int ihit = 0; ihit < numPts; ihit++) {
174 else if (ihit == numPts - 1)
201 "Lumi", posSeed.X(), dirSeed.X(), posSeed.Y(), dirSeed.Y(), posSeed.Z(),
202 posSeed.Z(), 0, firstHit, lastHit,
track);
207 new ((*fTrackArray)[rec_tkr])
PndLinTrack(*(trackfit));
227 std::cout <<
"Fitting done" << std::endl;
TVector3 GetPosition() const
PndTrackCandHit GetSortedHit(UInt_t i)
TClonesArray * fTrackArray
TClonesArray * fRecoArray
TClonesArray * fTCandArray
InitStatus PndLmdLineTask::Init |
( |
| ) |
|
|
virtual |
Definition at line 69 of file PndLmdLineTask.cxx.
References fRecoArray, fRecoBranchName, fTCandArray, fTCandBranchName, and fTrackArray.
71 FairRootManager* ioman = FairRootManager::Instance();
74 Error(
"PndLmdLineTask::Init",
"RootManager not instantiated!");
82 Error(
"PndLmdLineTask::Init",
"trackcand-array not found!");
89 Error(
"PndLmdLineTask::Init",
"reco-array not found!");
94 ioman->Register(
"LMDTrack",
"PndLmd",
fTrackArray, kTRUE);
96 std::cout <<
"-I- PndLmdLineTask: Initialisation successfull" << std::endl;
TClonesArray * fTrackArray
TClonesArray * fRecoArray
TClonesArray * fTCandArray
double PndLmdLineTask::line3Dfit |
( |
Int_t |
nd, |
|
|
TGraph2DErrors * |
gr, |
|
|
Double_t * |
fitpar, |
|
|
Double_t * |
fitparErr |
|
) |
| |
|
protected |
double PndLmdLineTask::line3Dfit |
( |
Int_t |
nd, |
|
|
TGraph2DErrors * |
gr, |
|
|
TVector3 |
posSeed, |
|
|
TVector3 |
dirSeed, |
|
|
Double_t * |
fitpar, |
|
|
TMatrixDSym * |
covmatrix |
|
) |
| |
|
protected |
Int_t PndLmdLineTask::fEvent |
|
protected |
TClonesArray* PndLmdLineTask::fRecoArray |
|
protected |
TString PndLmdLineTask::fRecoBranchName |
|
protected |
TClonesArray* PndLmdLineTask::fTCandArray |
|
protected |
TString PndLmdLineTask::fTCandBranchName |
|
protected |
TClonesArray* PndLmdLineTask::fTrackArray |
|
protected |
Int_t PndLmdLineTask::fTrackcount |
|
protected |
TClonesArray* PndLmdLineTask::fTruePointArray |
|
protected |
TString PndLmdLineTask::fTruePointBranch |
|
protected |
The documentation for this class was generated from the following files: