Fork me on GitHub

source: svn/trunk/classes/DelphesPileUpWriter.h@ 1224

Last change on this file since 1224 was 1054, checked in by Pavel Demin, 12 years ago

add DelphesPileUpWriter and stdhep2pileup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision Date
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: 2013-03-10 00:53:09 +0000 (Sun, 10 Mar 2013) $
10 * $Revision: 1054 $
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
21class DelphesPileUpWriter
22{
23public:
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
37private:
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.