PandaRoot
PndHypMicroIdealWriter.h
Go to the documentation of this file.
1 /******************************************************
2 Class PndHypMicroWriter
3 
4 Collects Micro infromation from Reconstruction and
5 writes out PndPidCandidates
6 
7 Author: K.Goetzen, GSI, 06/2008
8 
9 *******************************************************/
10 
11 #ifndef PNDMICROIDEALWRITER_H
12 #define PNDMICROIDEALWRITER_H 1
13 
14 #include "FairTask.h"
15 #include "TH1F.h"
16 #include "TFile.h"
17 #include "TVector3.h"
18 #include "TLorentzVector.h"
19 #include <map>
20 #include <string>
21 
22 class TClonesArray;
23 class TObjectArray;
24 
25 class PndHypMicroIdealWriter : public FairTask {
26 
27  public:
28  typedef std::map<Int_t, Float_t> mapper;
29 
32 
35 
37  virtual InitStatus Init();
38 
40  virtual void Exec(Option_t *opt);
41 
42  virtual void Finish();
43  // void CreateStructure();
44 
45  protected:
46  void propagate(TLorentzVector &l, TVector3 &p, float charge);
47 
48  TLorentzVector track1;
49  TLorentzVector track2;
50 
53  private:
54  int evtcnt; // event counter for output
55 
57  TClonesArray *fTrArray;
58 
60  TClonesArray *fHitArray;
61 
63  TClonesArray *fMCTrack;
64 
65  // Output arrays Candidates
66  TClonesArray *fChargedCandidates;
67  TClonesArray *fNeutralCandidates;
68  TClonesArray *fMcCandidates;
69  TClonesArray *fMicroIdealCandidates;
70 
71  // output array EventInfo
72  TClonesArray *fEventInfo;
73 
74  bool fStoreNeutral;
75  bool fStoreCharged;
76  bool fStoreMC;
77 
78  Int_t mvd_hitidx[1000];
79  Int_t stt_hitidx[1000];
80  Int_t tpc_hitidx[1000];
81 
85  virtual void SetParContainers();
86 
87  ClassDef(PndHypMicroIdealWriter, 1);
88 };
89 
90 #endif
virtual InitStatus Init()
virtual void Finish()
std::map< Int_t, Float_t > mapper
void propagate(TLorentzVector &l, TVector3 &p, float charge)
virtual void Exec(Option_t *opt)