source: trunk/MagicSoft/Mars/mreflector/MRflEvtData.h@ 4875

Last change on this file since 4875 was 2958, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 947 bytes
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 MRflSinglePhoton;
17
18class MRflEvtData : public MParContainer, public MCamEvent
19{
20 TClonesArray fList;
21 Int_t fPos;
22
23public:
24 MRflEvtData(const char *name=NULL, const char *title=NULL);
25
26 void Reset() { fPos = 0; }
27
28 Int_t GetNumPhotons() const { return fList.GetEntriesFast(); }
29
30 MRflSinglePhoton &GetNewPhoton();
31 void FixSize();
32
33 const MRflSinglePhoton &GetPhoton(Int_t i) const;
34
35 void Print(Option_t *o="") const;
36 void Paint(Option_t *o="");
37
38 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
39 void DrawPixelContent(Int_t num) const;
40
41 ClassDef(MRflEvtData, 0) // All Photons of a event from the reflector program
42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.