FairRoot/PandaRoot
PndKFParticleFinderQA.h
Go to the documentation of this file.
1 //-----------------------------------------------------------
2 //-----------------------------------------------------------
3 
4 #ifndef PndKFParticleFinderQA_HH
5 #define PndKFParticleFinderQA_HH
6 
7 #include "FairTask.h"
8 
9 #include "TString.h"
10 
11 #include <vector>
12 
13 class KFParticleTopoReconstructor;
14 class KFTopoPerformance;
15 class TClonesArray;
16 class TFile;
17 class TObject;
18 
19 class PndKFParticleFinderQA : public FairTask {
20  public:
21 
22  // Constructors/Destructors ---------
23  PndKFParticleFinderQA(const char* name = "PndKFParticleFinderQA", Int_t iVerbose = 0, KFParticleTopoReconstructor* tr=0,
24  TString outFileName="PndKFParticleFinderQA.root");
26 
31 
32  virtual InitStatus Init();
33  virtual void Exec(Option_t* opt);
34  virtual void Finish();
35 
36  void SetPrintEffFrequency(Int_t n);
37 
40 
41  private:
42 
45 
46  void FindClosestMCTrackToBump(const int trackId, int& closestTrack, float& drMin, const float* rReco,
47  const std::vector< std::vector<int> >& mcDaughters);
48  void FindEmcClusterMother(const int iDaughter, int& iMother);
49 
50  void WriteHistosCurFile( TObject *obj );
51 
52  //names of input branches
56 
57  //input branches
58  TClonesArray *fMCTrackArray; //mc tracks
59  TClonesArray *fChargedTrackArray;
60  TClonesArray *fNeutralTrackArray;
61  TClonesArray *fEmcBumps;
62  // output arrays of particles
63  TClonesArray* fRecParticles; // output array of KF Particles
64  TClonesArray* fMCParticles; // output array of MC Particles
65  TClonesArray* fMatchParticles; // output array of match objects
66 
69 
70  //output file with histograms
72  TFile* fOutFile;
74  //KF Particle QA
75  KFTopoPerformance* fTopoPerformance;
76 
78  Int_t fNEvents;
80 
82 };
83 
84 #endif
TTree * b
TString fChargedTrackBranchName
Name of the input TCA with MC tracks.
virtual void Exec(Option_t *opt)
PndKFParticleFinderQA(const char *name="PndKFParticleFinderQA", Int_t iVerbose=0, KFParticleTopoReconstructor *tr=0, TString outFileName="PndKFParticleFinderQA.root")
int n
void SetEffFileName(const TString &name)
const PndKFParticleFinderQA & operator=(const PndKFParticleFinderQA &)
Double_t
void SaveParticles(Bool_t b=1)
void SetChargedTrackBranchName(const TString &name)
TString name
void SetNeutralTrackBranchName(const TString &name)
KFTopoPerformance * fTopoPerformance
void SaveMCParticles(Bool_t b=1)
TClonesArray * fNeutralTrackArray
Int_t iVerbose
void FindClosestMCTrackToBump(const int trackId, int &closestTrack, float &drMin, const float *rReco, const std::vector< std::vector< int > > &mcDaughters)
TString fNeutralTrackBranchName
Name of the input TCA with charged tracks.
void SetMCTrackBranchName(const TString &name)
void WriteHistosCurFile(TObject *obj)
TClonesArray * fMCTrackArray
Name of the input TCA with neutral tracks.
ClassDef(PndKFParticleFinderQA, 1)
virtual InitStatus Init()
TClonesArray * fChargedTrackArray
void FindEmcClusterMother(const int iDaughter, int &iMother)