#include <PndMdtTrkFinder.h>
Definition at line 19 of file PndMdtTrkFinder.h.
PndMdtTrkFinder::PndMdtTrkFinder |
( |
| ) |
|
Default constructor
Definition at line 33 of file PndMdtTrkFinder.cxx.
34 FairTask(
" MDT Tracklet Finder") {
PndMdtTrkFinder::~PndMdtTrkFinder |
( |
| ) |
|
void PndMdtTrkFinder::Exec |
( |
Option_t * |
opt | ) |
|
|
virtual |
Virtual method Exec
Definition at line 97 of file PndMdtTrkFinder.cxx.
References Bool_t, fHitArray, fTrkArray, and nHits.
102 std::vector<PndMdtTrk*> fTrklets;
103 std::vector<PndMdtTrk*>::iterator tit = fTrklets.begin();
104 std::vector<PndMdtTrk*>::iterator tnd = fTrklets.end();
105 std::map<unsigned long, std::vector<PndMdtHit*> > fTrkHitMap;
109 for(Int_t ihit=0; ihit <
nHits; ++ ihit)
114 for( ; tit != tnd; ++tit){
121 unsigned long fPointer = (
unsigned long) aTrk;
122 fTrkHitMap[fPointer].push_back(aHit);
123 fTrklets.push_back(aTrk);
InitStatus PndMdtTrkFinder::Init |
( |
| ) |
|
|
virtual |
Virtual method Init
Definition at line 45 of file PndMdtTrkFinder.cxx.
References fHitArray, and fTrkArray.
46 cout <<
"-I- PndMdtTrkFinder::Init: "
47 <<
"INITIALIZATION *********************" << endl;
53 FairRootManager* ioman = FairRootManager::Instance();
55 cout <<
"-E- PndMdtTrkFinder::Init: "
56 <<
"RootManager not instantiated!" << endl;
60 fHitArray = (TClonesArray*) ioman->GetObject(
"MdtHit");
62 cout <<
"-W- PndMdtTrkFinder::Init: "
63 <<
"No MdtHit array!" << endl;
68 fTrkArray =
new TClonesArray(
"PndMdtTrk");
70 ioman->Register(
"MdtTrk",
"Mdt",
fTrkArray,kTRUE);
72 cout <<
"-I- PndMdtTrkFinder: Intialization successfull" << endl;
void PndMdtTrkFinder::SetParContainers |
( |
| ) |
|
|
virtual |
Definition at line 80 of file PndMdtTrkFinder.cxx.
References run.
83 FairRun*
run = FairRun::Instance();
84 if ( ! run ) Fatal(
"PndMdtTrkFinder:: SetParContainers",
"No analysis run");
86 FairRuntimeDb* db = run->GetRuntimeDb();
87 if ( ! db ) Fatal(
"PndMdtTrkFinder:: SetParContainers",
"No runtime database");
TClonesArray* PndMdtTrkFinder::fHitArray |
|
private |
TClonesArray* PndMdtTrkFinder::fTrkArray |
|
private |
The documentation for this class was generated from the following files: