#include <PndMcListConverter.h>
Definition at line 12 of file PndMcListConverter.h.
PndMcListConverter::PndMcListConverter |
( |
| ) |
|
Default constructor
Definition at line 33 of file PndMcListConverter.cxx.
34 FairTask(
"Panda MCTracks to RhoCandidates Converter")
PndMcListConverter::~PndMcListConverter |
( |
| ) |
|
void PndMcListConverter::Exec |
( |
Option_t * |
opt | ) |
|
|
virtual |
Virtual method Exec
Definition at line 102 of file PndMcListConverter.cxx.
References fabs(), fMcCandidates, fMcTracks, fVerbose, PndMCTrack::Get4Momentum(), PndMCTrack::GetMotherID(), PndMCTrack::GetPdgCode(), PndMCTrack::GetStartVertex(), i, RhoCandidate::SetMcTruth(), RhoCandidate::SetP4(), RhoCandidate::SetPos(), and RhoCandidate::SetType().
105 if(
fVerbose) { cout <<
"-I- Start PndMcListConverter. "<<endl; }
106 if(
fVerbose) { cout <<
"-I- PndMcListConverter: nMcTracks="<<
fMcTracks->GetEntriesFast()<<endl; }
116 TParticlePDG* ppdg = TDatabasePDG::Instance()->GetParticle(part->
GetPdgCode());
120 if (ppdg) { charge=ppdg->Charge(); }
121 else if (
fVerbose) { cout <<
"-W- PndMcListConverter: strange PDG code:"<<part->
GetPdgCode()<<endl; }
122 if (
fabs(charge)>2) { charge/=3.; }
125 Int_t size = ref.GetEntriesFast();
135 if(
fVerbose) { cout <<
"-I- PndMcListConverter: found primaries="<<
fMcCandidates->GetEntriesFast()<<endl; }
void SetPos(const TVector3 &pos)
TLorentzVector Get4Momentum() const
TClonesArray * fMcCandidates
void SetType(const TParticlePDG *pdt)
void SetP4(Double_t mass, const TVector3 &p3)
friend F32vec4 fabs(const F32vec4 &a)
void SetMcTruth(RhoCandidate *mct)
TVector3 GetStartVertex() const
Int_t GetMotherID() const
void PndMcListConverter::FinishEvent |
( |
| ) |
|
|
virtual |
InitStatus PndMcListConverter::Init |
( |
| ) |
|
|
virtual |
Virtual method Init
Definition at line 49 of file PndMcListConverter.cxx.
References fMcCandidates, and fMcTracks.
59 FairRootManager* ioman = FairRootManager::Instance();
61 cout <<
"-E- PndMcListConverter::Init: "
62 <<
"RootManager not instantiated!" << endl;
67 fMcTracks = (TClonesArray*) ioman->GetObject(
"MCTrack");
71 cout <<
"-W- PndMcListConverter::Init: "
72 <<
"No MCTracks array!" << endl;
77 ioman->Register(
"PndMcTracks",
"PndMcTracks",
fMcCandidates, kTRUE);
80 cout <<
"-I- PndMcListConverter: Intialization successfull" << endl;
TClonesArray * fMcCandidates
void PndMcListConverter::SetParContainers |
( |
| ) |
|
|
privatevirtual |
Geo file to use Get parameter containers
Definition at line 86 of file PndMcListConverter.cxx.
References run.
90 FairRun*
run = FairRun::Instance();
91 if ( ! run ) { Fatal(
"SetParContainers",
"No analysis run"); }
void PndMcListConverter::SetVerbose |
( |
Bool_t |
verb | ) |
|
|
inline |
TClonesArray* PndMcListConverter::fMcCandidates |
|
private |
TClonesArray* PndMcListConverter::fMcTracks |
|
private |
The documentation for this class was generated from the following files: