StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
digevent.h
1 #ifndef MAPS_DIGEVENT_H
2 #define MAPS_DIGEVENT_H
3 
4 #include <TNamed.h>
5 #include <TList.h>
6 #include <TGraph.h>
7 #include "Riostream.h"
8 #include "vector"
9 
10 // ROOT classes
11 #include "TString.h"
12 #include "TObject.h"
13 #include "TVector.h"
14 #include "TFile.h"
15 #include "TSystem.h"
16 #include "TRandom.h"
17 #include "TH1.h"
18 #include "TH2.h"
19 #include "TObjArray.h"
20 #include "TTree.h"
21 #include "TBranch.h"
22 #include "TClonesArray.h"
23 
24 #include "digparticle.h"
25 #include "digcluster.h"
26 #include "digreadoutmap.h"
27 #include "digplane.h"
28 
29 
30 using namespace std;
31 
32 class DIGInitialize;
33 class DIGPlane;
34 class DIGADC;
35 class DIGBeam;
36 class DIGTransport;
37 class DIGParticle;
38 class DIGCluster;
39 class DIGAction;
40 class DIGMAPS;
41 
42 //==============================================================================
43 class DIGEvent : public TObject {
44  public:
45  DIGEvent();
46  DIGEvent(DIGEvent & adigevent);
47  // DIGEvent(Float_t EntryX, Float_t EntryY, Float_t ExitX, Float_t ExitY, Float_t Energy_deposited);
48  virtual ~DIGEvent();
49  void Clear(const Option_t * /*option*/ = "");
50  //void Clear(const Option_t *);
51  void PrintInfo();
52  TClonesArray *GetParticle(){return fDIGParticleArray;}
53  TClonesArray *GetCluster(){return fDIGClusterArray;}
54  Int_t GetNParticles(){return fNParticles;}
55  Int_t GetNClusters(){return fNClusters;}
56  Int_t GetConfigurationNumber(){return fConfigurationNumber;}
57 
58  DIGReadoutmap *GetReadoutmap(){return fDIGReadoutmap;}
59 
60  void SetNParticles(Int_t Nparticles);
61  void SetNClusters(Int_t NClusters);
62  void SetConfigurationNumber(Int_t ConfigurationNumber);
63 
64  void AddParticle(DIGParticle& particle);
65  void AddCluster(DIGCluster& cluster);
66  void BuildTrueClusters(DIGPlane *myDIGPlane);
67 
68 
69  protected:
70  Int_t fConfigurationNumber;
71  Int_t fNParticles;
72  Int_t fNClusters;
73  TClonesArray *fDIGParticleArray;
74  TClonesArray *fDIGClusterArray;
75  DIGReadoutmap *fDIGReadoutmap;
76 
77 
78 
79 
80  ClassDef(DIGEvent,1);
81 };
82 
83 //==============================================================================
84 
85 
86 #endif
Definition: digadc.h:36