PandaRoot
PndMCTruthMatch.h
Go to the documentation of this file.
1 
14 #pragma once
15 
16 // framework includes
17 #include "FairTask.h"
18 
19 #include "TClonesArray.h"
20 #include <math.h>
21 
22 
23 class PndMCTruthMatch : public FairTask {
24  public:
26  explicit PndMCTruthMatch(TString inBranchName);
27  virtual ~PndMCTruthMatch();
28 
29  virtual InitStatus Init();
30  virtual void SetInBranchName(TString name) { fInBranchName = name; }
31 
33  virtual void Exec(Option_t *opt);
34 
35  private:
36  TClonesArray *fMCTrack = nullptr;
37  TClonesArray *fInBranch = nullptr;
38 
39  TString fInBranchName = "";
40 
41  ClassDef(PndMCTruthMatch, 1);
42 };
virtual InitStatus Init()
virtual void SetInBranchName(TString name)
virtual void Exec(Option_t *opt)
Prints the MCTrack info for all data objects in a branch.
virtual ~PndMCTruthMatch()