ImprovedOutputFile
Timing
dual_readout
llp
3.1.1
Last change
on this file since 7047bc4 was d7d2da3, checked in by pavel <pavel@…>, 12 years ago |
move branches/ModularDelphes to trunk
|
-
Property mode
set to
100644
|
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$
|
---|
10 | * $Revision$
|
---|
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.