PandaRoot
PndAnaTask.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 
13 #ifndef PNDANATASK_H
14 #define PNDANATASK_H 1
15 
16 #include <string>
17 #include <vector>
18 
19 #include "TString.h"
20 
21 #include "RhoCandList.h"
22 #include "FairRootManager.h"
23 #include "FairTask.h"
24 
25 class TClonesArray;
26 class TBranch;
27 
28 class PndPidListMaker;
29 class PndEventInfo;
30 
31 class PndAnaTask : public FairTask {
32  public:
33  PndAnaTask();
34  ~PndAnaTask();
35 
37  virtual InitStatus Init();
38 
40  virtual void Exec(Option_t *opt);
41 
42  virtual void Finish();
43 
44  protected:
45  void InitArrays();
46  int GetEvent();
47  bool FillList(RhoCandList &l, std::string listkey = "All");
48 
49  // TClonesArray *fEventInfo;
50  // PndEventInfo *fCurrentEventInfo;
51 
52  private:
53  TClonesArray *fChargedCands;
54  TClonesArray *fNeutralCands;
55  TClonesArray *fChargedProbability;
56  TClonesArray *fNeutralProbability;
57  TClonesArray *fMcCands;
58 
59  RhoCandList fLAllCands;
60  RhoCandList fLChargedCands;
61  RhoCandList fLNeutralCands;
62  RhoCandList fLMcCands;
63 
64  PndPidListMaker *fPidListMaker;
65  Bool_t fEventRead;
66  // void SetupBranchNames();
67 
68  // Private Member Variables
69 
70  ClassDef(PndAnaTask, 0);
71 };
72 
73 #endif
void InitArrays()
virtual void Exec(Option_t *opt)
int GetEvent()
virtual InitStatus Init()
virtual void Finish()
bool FillList(RhoCandList &l, std::string listkey="All")