ImprovedOutputFile
Timing
dual_readout
llp
Last change
on this file since 12b11f9 was d7d2da3, checked in by pavel <pavel@…>, 12 years ago |
move branches/ModularDelphes to trunk
|
-
Property mode
set to
100644
|
File size:
765 bytes
|
Line | |
---|
1 | #ifndef DelphesPileUpWriter_h
|
---|
2 | #define DelphesPileUpWriter_h
|
---|
3 |
|
---|
4 | /** \class DelphesPileUpWriter
|
---|
5 | *
|
---|
6 | * Writes 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 DelphesPileUpWriter
|
---|
22 | {
|
---|
23 | public:
|
---|
24 |
|
---|
25 | DelphesPileUpWriter(const char *fileName);
|
---|
26 |
|
---|
27 | ~DelphesPileUpWriter();
|
---|
28 |
|
---|
29 | void WriteParticle(int pid,
|
---|
30 | float x, float y, float z, float t,
|
---|
31 | float px, float py, float pz, float e);
|
---|
32 |
|
---|
33 | void WriteEntry();
|
---|
34 |
|
---|
35 | void WriteIndex();
|
---|
36 |
|
---|
37 | private:
|
---|
38 |
|
---|
39 | quad_t fEntries;
|
---|
40 | int fEntrySize;
|
---|
41 | quad_t fOffset;
|
---|
42 |
|
---|
43 | FILE *fPileUpFile;
|
---|
44 | char *fIndex;
|
---|
45 | char *fBuffer;
|
---|
46 |
|
---|
47 | XDR *fOutputXDR;
|
---|
48 | XDR *fIndexXDR;
|
---|
49 | XDR *fBufferXDR;
|
---|
50 | };
|
---|
51 |
|
---|
52 | #endif // DelphesPileUpWriter_h
|
---|
53 |
|
---|
54 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.