#include <PndHypGeIdealTrackFinderTask.h>
| PndHypGeIdealTrackFinderTask::PndHypGeIdealTrackFinderTask |
( |
| ) |
|
| PndHypGeIdealTrackFinderTask::~PndHypGeIdealTrackFinderTask |
( |
| ) |
|
|
virtual |
| void PndHypGeIdealTrackFinderTask::Exec |
( |
Option_t * |
opt | ) |
|
|
virtual |
Virtual method Exec
Definition at line 109 of file PndHypGeIdealTrackFinderTask.cxx.
References Double_t, fEventNr, fMcArray, fTrackArray, PndMCTrack::GetMotherID(), PndMCTrack::GetPdgCode(), PndHypGePoint::GetTrackID(), hismom, i, map, mcHitMap, mom, and PndHypGePoint::Momentum().
119 for (
int i = 0;
i <
fMcArray->GetEntriesFast();
i++){
132 std::cout <<
"------------Event " <<
fEventNr <<
"-------------" << std::endl;
134 std::cout<<
" size map "<<
mcHitMap.size()<<std::endl;
138 for (
std::map<
int, std::vector<int> >::const_iterator it =
mcHitMap.begin();
142 if(myTrack==0)
continue;
144 std::vector<int> MChits = it->second;
147 if (MChits.size() >0){
150 if(startPoint==0)
continue;
157 Int_t MothId, Mothpdg;
171 hismom->Fill(180/3.1416*momst.Theta());
TClonesArray * fTrackArray
void Momentum(TVector3 &mom)
Int_t GetMotherID() const
std::map< int, std::vector< int > > mcHitMap
| InitStatus PndHypGeIdealTrackFinderTask::Init |
( |
| ) |
|
|
virtual |
Definition at line 69 of file PndHypGeIdealTrackFinderTask.cxx.
References fMcArray, fMcBranch, fTrackArray, fTrackBranch, and hismom.
72 FairRootManager* ioman = FairRootManager::Instance();
76 std::cout <<
"-E- PndHypGeIdealTrackFinderTask::Init: "
77 <<
"RootManager not instantiated!" << std::endl;
86 std::cout <<
"-W- PndHypGeIdealTrackFinderTask::Init: " <<
"No mcArray!" << std::endl;
92 std::cout <<
"-W- PndHypGeIdealTrackFinderTask::Init: " <<
"No trackArray!" << std::endl;
96 hismom =
new TH1F(
"hismom",
"HYPGe MC Points, momentum",100,0.,180.);
97 hismom->SetTitle(
"Kinetic energy GeV");
101 std::cout <<
"-I- PndHypGeIdealTrackFinderTask: Initialisation successfull" << std::endl;
TClonesArray * fTrackArray
| InitStatus PndHypGeIdealTrackFinderTask::ReInit |
( |
| ) |
|
|
virtual |
| void PndHypGeIdealTrackFinderTask::SetParContainers |
( |
| ) |
|
|
virtual |
| void PndHypGeIdealTrackFinderTask::WriteHistograms |
( |
| ) |
|
| int PndHypGeIdealTrackFinderTask::fEventNr |
|
private |
| TClonesArray* PndHypGeIdealTrackFinderTask::fMcArray |
|
private |
| TString PndHypGeIdealTrackFinderTask::fMcBranch |
|
private |
| TClonesArray* PndHypGeIdealTrackFinderTask::fTrackArray |
|
private |
| TString PndHypGeIdealTrackFinderTask::fTrackBranch |
|
private |
| Int_t PndHypGeIdealTrackFinderTask::fVerbose |
|
private |
| TH1F* PndHypGeIdealTrackFinderTask::hismom |
|
private |
| std::map<int, std::vector<int> > PndHypGeIdealTrackFinderTask::mcHitMap |
|
private |
The documentation for this class was generated from the following files: