source: HiSusy/trunk/Delphes/Delphes-3.0.9/classes/DelphesPileUpWriter.h @ 5

Last change on this file since 5 was 5, checked in by zerwas, 11 years ago

update to Delphes-3.0.9

File size: 819 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 01:53:09 +0100 (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.