FairRoot/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 
12 #ifndef PNDMICROIDEALWRITER_H
13 #define PNDMICROIDEALWRITER_H 1
14 
15 
16 #include "FairTask.h"
17 #include "TH1F.h"
18 #include "TFile.h"
19 #include "TVector3.h"
20 #include "TLorentzVector.h"
21 #include <map>
22 #include <string>
23 
24 class TClonesArray;
25 class TObjectArray;
26 
27 
28 class PndHypMicroIdealWriter : public FairTask
29 {
30 
31  public:
32  typedef std::map<Int_t, Float_t> mapper;
33 
36 
37 
40 
41 
43  virtual InitStatus Init();
44 
45 
47  virtual void Exec(Option_t* opt);
48 
49  virtual void Finish();
50  //void CreateStructure();
51 
52  protected:
53 
54  void propagate(TLorentzVector &l, TVector3 &p, float charge);
55 
56  TLorentzVector track1;
57  TLorentzVector track2;
58 
61  private:
62  int evtcnt; //event counter for output
63 
65  TClonesArray* fTrArray;
66 
68  TClonesArray* fHitArray;
69 
71  TClonesArray* fMCTrack;
72 
73  // Output arrays Candidates
74  TClonesArray* fChargedCandidates;
75  TClonesArray* fNeutralCandidates;
76  TClonesArray* fMcCandidates;
77  TClonesArray* fMicroIdealCandidates;
78 
79  //output array EventInfo
80  TClonesArray* fEventInfo;
81 
84  bool fStoreMC;
85 
86  Int_t mvd_hitidx[1000];
87  Int_t stt_hitidx[1000];
88  Int_t tpc_hitidx[1000];
89 
90 
94  virtual void SetParContainers();
95 
96 
98 
99 };
100 
101 #endif
Double_t p
Definition: anasim.C:58
std::map< Int_t, Float_t > mapper
ClassDef(PndHypMicroIdealWriter, 1)
void propagate(TLorentzVector &l, TVector3 &p, float charge)
TClonesArray * fMicroIdealCandidates
virtual void Exec(Option_t *opt)