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

Last change on this file since 2134 was 2134, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 680 bytes
Line 
1#ifndef MARS_MRflEvtData
2#define MARS_MRflEvtData
3
4#ifndef MARS_MRflSinglePhoton
5#include "MRflSinglePhoton.h"
6#endif
7
8#ifndef ROOT_TClonesArray
9#include <TClonesArray.h>
10#endif
11
12class MRflEvtData : public MParContainer
13{
14 TClonesArray fList;
15 Int_t fPos;
16
17public:
18 MRflEvtData(const char *name=NULL, const char *title=NULL);
19
20 void Reset() { fPos = 0; }
21
22 Int_t GetNumPhotons() const { return fList.GetEntriesFast(); }
23
24 MRflSinglePhoton &GetNewPhoton();
25 void FixSize();
26
27 const MRflSinglePhoton &GetPhoton(Int_t i) const { return (MRflSinglePhoton&)*fList.UncheckedAt(i); }
28
29 void Print(Option_t *o="") const;
30 ClassDef(MRflEvtData, 0)
31};
32
33#endif
Note: See TracBrowser for help on using the repository browser.