#include <PndJPsiExample.h>
Definition at line 17 of file PndJPsiExample.h.
PndJPsiExample::PndJPsiExample |
( |
| ) |
|
PndJPsiExample::~PndJPsiExample |
( |
| ) |
|
void PndJPsiExample::Exec |
( |
Option_t * |
opt | ) |
|
|
virtual |
Virtual method Exec
Definition at line 81 of file PndJPsiExample.cxx.
References fInvMass, fTrArray, track1, and track2.
84 Int_t nTracks =
fTrArray->GetEntriesFast();
88 for (Int_t i1=0; i1<nTracks; i1++){
91 PndLheCandidate *tr1 = (PndLheCandidate*)
fTrArray->At(i1);
92 track1.SetXYZM(tr1->GetPx(), tr1->GetPy(), tr1->GetPz(), 0.000511);
94 for (Int_t i2=0; i2<nTracks; i2++){
95 PndLheCandidate *tr2 = (PndLheCandidate*)
fTrArray->At(i2);
97 track2.SetXYZM(tr2->GetPx(), tr2->GetPy(), tr2->GetPz(), 0.000511);
void PndJPsiExample::Finish |
( |
| ) |
|
|
virtual |
InitStatus PndJPsiExample::Init |
( |
| ) |
|
|
virtual |
Virtual method Init
Definition at line 34 of file PndJPsiExample.cxx.
References fInvMass, and fTrArray.
36 cout <<
" Inside the Init function****" << endl;
43 FairRootManager* ioman = FairRootManager::Instance();
45 cout <<
"-E- PndEmcHitProducer::Init: "
46 <<
"RootManager not instantiated!" << endl;
50 fTrArray = (TClonesArray*) ioman->GetObject(
"LheCandidate");
52 cout <<
"-W- PndJPsiExample::Init: "
53 <<
"No TpcTrack array!" << endl;
58 cout <<
"-I- PndJPsiExample: Intialization successfull" << endl;
60 fInvMass =
new TH1D(
"invmass",
"",100,0.0,4.0);
void PndJPsiExample::SetParContainers |
( |
| ) |
|
|
privatevirtual |
Geo file to use Get parameter containers
Definition at line 66 of file PndJPsiExample.cxx.
References run.
69 FairRunAna*
run = FairRunAna::Instance();
70 if ( ! run ) Fatal(
"SetParContainers",
"No analysis run");
72 FairRuntimeDb* db = run->GetRuntimeDb();
73 if ( ! db ) Fatal(
"SetParContainers",
"No runtime database");
TH1D* PndJPsiExample::fInvMass |
|
protected |
TClonesArray* PndJPsiExample::fTrArray |
|
private |
TLorentzVector PndJPsiExample::track1 |
|
protected |
TLorentzVector PndJPsiExample::track2 |
|
protected |
The documentation for this class was generated from the following files: