EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PrimSelector.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PrimSelector.h
1 //-----------------------------------------------------------
2 // File and Version Information:
3 // $Id$
4 //
5 // Description:
6 // Task to select charged particles from the primary vertex (pion hypotheses)
7 //
8 //
9 // Environment:
10 // Software developed for the PANDA Detector at FAIR.
11 //
12 // Author List:
13 // Sebastian Neubert TUM (original author)
14 //
15 //
16 //-----------------------------------------------------------
17 
18 #ifndef PRIMSELECTOR_HH
19 #define PRIMSELECTOR_HH
20 
21 // Base Class Headers ----------------
22 #include "FairTask.h"
23 
24 // Collaborating Class Headers -------
25 
26 
27 // Collaborating Class Declarations --
28 class TClonesArray;
29 
30 
31 class PrimSelector : public FairTask {
32 public:
33 
34  // Constructors/Destructors ---------
35  PrimSelector();
36  virtual ~PrimSelector();
37 
38 
39  // Accessors -----------------------
40 
41 
42  // Modifiers -----------------------
43  void SetTrackBranchName(const TString& name) {_trackBranchName=name;}
44  void SetPersistence(Bool_t flag=kTRUE) {_persistence=flag;}
45  void SetNExpectedTracks(unsigned int n){fNExpectedTracks=n;}
46 
47  // Operations ----------------------
48  virtual InitStatus Init();
49 
50  virtual void Exec(Option_t* opt);
51 
52  virtual void FinishTask();
53 
54 private:
55 
56  // Private Data Members ------------
58  Bool_t _persistence;
59  unsigned int fEventCounter;
60  unsigned int fNExpectedTracks;
61  unsigned int fNFullEvents;
62  unsigned int fNPhysTracks;
63  unsigned int fNBkgTracks;
64 
65 
66  TClonesArray* _trackArray;
67  TClonesArray* _pocaArray;
68 TClonesArray* _chargeArray;
69 TClonesArray* _primArray;
70  // Private Methods -----------------
71 
72 public:
74 };
75 
76 #endif
77 
78 //--------------------------------------------------------------
79 // $Log$
80 //--------------------------------------------------------------