28 #include "TClonesArray.h"
36 :
FairTask(name, iVerbose), fPersistence(kFALSE)
72 Error(
"PndRecoMultiKalmanTask::Init",
"RootManager not instantiated!");
80 Error(
"PndRecoMultiKalmanTask::Init",
"track-array not found!");
96 fSttParameters = (PndGeoSttPar*) rtdb->
getContainer(
"PndGeoSttPar");
102 if (
fVerbose>0) std::cout<<
"PndRecoMultiKalmanTask::Exec"<<std::endl;
113 if (
fVerbose>1) std::cout <<
" -I- PndRecoMultiKalmanTask: contains " << ntracks <<
" Tracks."<< std::endl;
118 std::cout<<
" -I- PndRecoMultiKalmanTask::Exec: ntracks=" << ntracks <<
" Evil Event! skipping" << std::endl;
123 for(Int_t itr=0;itr<ntracks;++itr)
125 if (
fVerbose>1) std::cout<<
"starting track"<<itr<<std::endl;
130 Int_t PDGCode = -11*fCharge;
132 fitTrack =
fFitter->
Fit(prefitTrack, PDGCode);
135 Int_t size = trkRef.GetEntriesFast();
141 Int_t PDGCode = -13*fCharge;
143 fitTrack =
fFitter->
Fit(prefitTrack, PDGCode);
146 Int_t size = trkRef.GetEntriesFast();
152 Int_t PDGCode = 211*fCharge;
154 fitTrack =
fFitter->
Fit(prefitTrack, PDGCode);
157 Int_t size = trkRef.GetEntriesFast();
163 Int_t PDGCode = 321*fCharge;
165 fitTrack =
fFitter->
Fit(prefitTrack, PDGCode);
168 Int_t size = trkRef.GetEntriesFast();
174 Int_t PDGCode = 2212*fCharge;
176 fitTrack =
fFitter->
Fit(prefitTrack, PDGCode);
179 Int_t size = trkRef.GetEntriesFast();
186 if (
fVerbose>0) std::cout<<
"Fitting done"<<std::endl;