source:
svn/trunk/classes/DelphesPileUpReader.h@
1381
Last change on this file since 1381 was 1046, checked in by , 12 years ago | |
---|---|
|
|
File size: 809 bytes |
Line | |
---|---|
1 | #ifndef DelphesPileUpReader_h |
2 | #define DelphesPileUpReader_h |
3 | |
4 | /** \class DelphesPileUpReader |
5 | * |
6 | * Reads pile-up binary file |
7 | * |
8 | * |
9 | * $Date: 2013-03-08 08:25:30 +0000 (Fri, 08 Mar 2013) $ |
10 | * $Revision: 1046 $ |
11 | * |
12 | * |
13 | * \author P. Demin - UCL, Louvain-la-Neuve |
14 | * |
15 | */ |
16 | |
17 | #include <stdio.h> |
18 | #include <rpc/types.h> |
19 | #include <rpc/xdr.h> |
20 | |
21 | class DelphesPileUpReader |
22 | { |
23 | public: |
24 | |
25 | DelphesPileUpReader(const char *fileName); |
26 | |
27 | ~DelphesPileUpReader(); |
28 | |
29 | bool ReadParticle(int &pid, |
30 | float &x, float &y, float &z, float &t, |
31 | float &px, float &py, float &pz, float &e); |
32 | |
33 | bool ReadEntry(quad_t entry); |
34 | |
35 | quad_t GetEntries() const { return fEntries; } |
36 | |
37 | private: |
38 | |
39 | quad_t fEntries; |
40 | |
41 | int fEntrySize; |
42 | int fCounter; |
43 | |
44 | FILE *fPileUpFile; |
45 | char *fIndex; |
46 | char *fBuffer; |
47 | |
48 | XDR *fInputXDR; |
49 | XDR *fIndexXDR; |
50 | XDR *fBufferXDR; |
51 | }; |
52 | |
53 | #endif // DelphesPileUpReader_h |
54 | |
55 |
Note:
See TracBrowser
for help on using the repository browser.