source: trunk/Mars/mreflector/MRflEvtData.h

Last change on this file was 8289, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MRflEvtData
2#define MARS_MRflEvtData
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef MARS_MCamEvent
9#include "MCamEvent.h"
10#endif
11
12#ifndef ROOT_TClonesArray
13#include <TClonesArray.h>
14#endif
15
16class TH1;
17class TH2;
18class TH3;
19
20class MRflSinglePhoton;
21
22class MRflEvtData : public MParContainer, public MCamEvent
23{
24 TClonesArray fList;
25 Int_t fPos;
26
27public:
28 MRflEvtData(const char *name=NULL, const char *title=NULL);
29 MRflEvtData(const MRflEvtData &dat);
30
31 TObject *Clone(Option_t *) const;
32
33 void Reset() { fPos = 0; }
34
35 Int_t GetNumPhotons() const { return fList.GetEntriesFast(); }
36
37 MRflSinglePhoton &GetNewPhoton();
38 void FixSize();
39
40 const MRflSinglePhoton &GetPhoton(Int_t i) const;
41
42 void FillRad(TH1 &hist, Float_t scale=1) const;
43 void FillRad(TH2 &hist, Double_t x, Float_t scale=1) const;
44 void Fill(TH2 &hist, Float_t scale=1) const;
45 void Fill(TH3 &hist, Double_t z, Float_t scale=1) const;
46
47 void Print(Option_t *o="") const;
48 void Paint(Option_t *o="");
49
50 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
51 void DrawPixelContent(Int_t num) const;
52
53 ClassDef(MRflEvtData, 0) // All Photons of a event from the reflector program
54};
55
56#endif
Note: See TracBrowser for help on using the repository browser.