[271] | 1 | #ifndef _LHCOCONVERTER_H_
|
---|
| 2 | #define _LHCOCONVERTER_H_
|
---|
| 3 |
|
---|
| 4 | /***********************************************************************
|
---|
| 5 | ** **
|
---|
| 6 | ** /----------------------------------------------\ **
|
---|
| 7 | ** | Delphes, a framework for the fast simulation | **
|
---|
| 8 | ** | of a generic collider experiment | **
|
---|
| 9 | ** \----------------------------------------------/ **
|
---|
| 10 | ** **
|
---|
| 11 | ** **
|
---|
| 12 | ** This package uses: **
|
---|
| 13 | ** ------------------ **
|
---|
| 14 | ** FastJet algorithm: Phys. Lett. B641 (2006) [hep-ph/0512210] **
|
---|
| 15 | ** Hector: JINST 2:P09005 (2007) [physics.acc-ph:0707.1198v2] **
|
---|
| 16 | ** FROG: [hep-ex/0901.2718v1] **
|
---|
| 17 | ** **
|
---|
| 18 | ** ------------------------------------------------------------------ **
|
---|
| 19 | ** **
|
---|
| 20 | ** Main authors: **
|
---|
| 21 | ** ------------- **
|
---|
| 22 | ** **
|
---|
| 23 | ** Severine Ovyn Xavier Rouby **
|
---|
| 24 | ** severine.ovyn@uclouvain.be xavier.rouby@cern **
|
---|
| 25 | ** **
|
---|
| 26 | ** Center for Particle Physics and Phenomenology (CP3) **
|
---|
| 27 | ** Universite catholique de Louvain (UCL) **
|
---|
| 28 | ** Louvain-la-Neuve, Belgium **
|
---|
| 29 | ** **
|
---|
| 30 | ** Copyright (C) 2008-2009, **
|
---|
| 31 | ** All rights reserved. **
|
---|
| 32 | ** **
|
---|
| 33 | ***********************************************************************/
|
---|
| 34 |
|
---|
| 35 | /// \file LHCOConverter
|
---|
| 36 | /// \brief Converter from ExRootAnalysis to LHCO files
|
---|
[288] | 37 | #include <sstream>
|
---|
[271] | 38 | #include <string>
|
---|
| 39 | using namespace std;
|
---|
| 40 |
|
---|
[275] | 41 | class TClonesArray;
|
---|
| 42 |
|
---|
| 43 | enum {lhcoPhotonID=0, lhcoElectronID, lhcoMuonID, lhcoTauJetID, lhcoJetID, lhcoETmisID=6};
|
---|
| 44 |
|
---|
[271] | 45 | class LHCOConverter {
|
---|
| 46 | public:
|
---|
| 47 |
|
---|
| 48 | explicit LHCOConverter(const string& inputroot, const string& inputlog);
|
---|
| 49 | ~LHCOConverter() {};
|
---|
| 50 |
|
---|
| 51 | void CopyRunLogFile();
|
---|
| 52 | void ConvertExRootAnalysisToLHCO();
|
---|
| 53 |
|
---|
| 54 | private:
|
---|
[288] | 55 | //ostringstream BranchReader(const TClonesArray*, unsigned int&, unsigned short int ) const; // put it as a operator<<
|
---|
| 56 | void BranchReader(const TClonesArray*, unsigned int&, unsigned short int ) const;
|
---|
[313] | 57 | void BranchReaderETmis(const TClonesArray* branch, unsigned int& line) const;
|
---|
[271] | 58 | const string inputfilename_;
|
---|
| 59 | string inputlogname_;
|
---|
| 60 | string outputfilename_;
|
---|
| 61 | bool valid_;
|
---|
| 62 | };
|
---|
| 63 |
|
---|
| 64 | #endif
|
---|