PandaRoot
PndMCTruthMatch.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
26 #pragma once
27 
28 // framework includes
29 #include "FairTask.h"
30 
31 #include "TClonesArray.h"
32 #include <math.h>
33 
34 
35 class PndMCTruthMatch : public FairTask {
36  public:
38  explicit PndMCTruthMatch(TString inBranchName);
39  virtual ~PndMCTruthMatch();
40 
41  virtual InitStatus Init();
42  virtual void SetInBranchName(TString name) { fInBranchName = name; }
43 
45  virtual void Exec(Option_t *opt);
46 
47  private:
48  TClonesArray *fMCTrack = nullptr;
49  TClonesArray *fInBranch = nullptr;
50 
51  TString fInBranchName = "";
52 
53  ClassDef(PndMCTruthMatch, 1);
54 };
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()