Last change
on this file since 225 was 220, checked in by Xavier Rouby, 16 years ago |
include statements have been cleaned
|
File size:
1.6 KB
|
Rev | Line | |
---|
[2] | 1 | #ifndef _HEPEVTCONVERTER_H_
|
---|
| 2 | #define _HEPEVTCONVERTER_H_
|
---|
| 3 |
|
---|
| 4 | /*
|
---|
| 5 | ---- Delphes ----
|
---|
| 6 | A Fast Simulator for general purpose LHC detector
|
---|
| 7 | S. Ovyn ~~~~ severine.ovyn@uclouvain.be
|
---|
| 8 |
|
---|
| 9 | Center for Particle Physics and Phenomenology (CP3)
|
---|
| 10 | Universite Catholique de Louvain (UCL)
|
---|
| 11 | Louvain-la-Neuve, Belgium
|
---|
| 12 | */
|
---|
| 13 |
|
---|
| 14 | /// \file SmearUtil.h
|
---|
| 15 | /// \brief HEPEVTConverter class, and some generic definitions
|
---|
| 16 | #include <deque>
|
---|
| 17 |
|
---|
[220] | 18 | #include "BlockClasses.h"
|
---|
| 19 | #include "TSimpleArray.h"
|
---|
| 20 | #include "DataConverter.h"
|
---|
[2] | 21 | using namespace std;
|
---|
| 22 |
|
---|
| 23 | //------------------------------------------------------------------------------
|
---|
| 24 | //
|
---|
| 25 | struct HEPEvent
|
---|
| 26 | {
|
---|
| 27 | Int_t Nevhep;
|
---|
| 28 | Int_t Nhep;
|
---|
| 29 | Int_t *Idhep; //[Nhep]
|
---|
| 30 | Int_t *Jsmhep; //[Nhep]
|
---|
| 31 | Int_t *Jsdhep; //[Nhep]
|
---|
| 32 | Float_t *Phep; //[Nhep][5]
|
---|
| 33 | Float_t *Vhep; //[Nhep][4]
|
---|
| 34 | Int_t Irun;
|
---|
| 35 | Int_t Ievt;
|
---|
| 36 | Float_t Weight;
|
---|
| 37 | Float_t Xsecn;
|
---|
| 38 | Int_t Ifilter;
|
---|
| 39 | Int_t Nparam;
|
---|
| 40 | Float_t *Param; //[Nparam]
|
---|
| 41 | };
|
---|
| 42 | //
|
---|
| 43 |
|
---|
| 44 | //
|
---|
| 45 | class HEPTreeReader {
|
---|
| 46 |
|
---|
| 47 | public:
|
---|
| 48 |
|
---|
| 49 | HEPTreeReader(TTree *tree, HEPEvent *event);
|
---|
| 50 | ~HEPTreeReader();
|
---|
| 51 |
|
---|
| 52 | Long64_t GetEntries() const { return fChain ? static_cast<Long64_t>(fChain->GetEntries()) : 0; }
|
---|
| 53 | Bool_t ReadEntry(Long64_t element);
|
---|
| 54 |
|
---|
| 55 | private:
|
---|
| 56 |
|
---|
| 57 | void Notify();
|
---|
| 58 |
|
---|
| 59 | TTree *fChain; // pointer to the analyzed TTree or TChain
|
---|
| 60 | Int_t fCurrentTree; // current Tree number in a TChain
|
---|
| 61 | HEPEvent *fEvent;
|
---|
| 62 | deque< pair<TString, TBranch*> > fBranches;
|
---|
| 63 |
|
---|
| 64 | };
|
---|
| 65 |
|
---|
| 66 |
|
---|
| 67 | class HEPEVTConverter : public DataConverter {
|
---|
| 68 |
|
---|
| 69 | public:
|
---|
| 70 |
|
---|
| 71 | HEPEVTConverter(const string& inputFileList, const string& outputFileName);
|
---|
| 72 |
|
---|
| 73 | };
|
---|
| 74 |
|
---|
| 75 |
|
---|
| 76 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.