Fork me on GitHub

source: svn/trunk/interface/LHCOConverter.h@ 291

Last change on this file since 291 was 288, checked in by Xavier Rouby, 15 years ago

charge added

File size: 3.0 KB
Line 
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
37#include <sstream>
38#include <string>
39using namespace std;
40
41class TClonesArray;
42
43enum {lhcoPhotonID=0, lhcoElectronID, lhcoMuonID, lhcoTauJetID, lhcoJetID, lhcoETmisID=6};
44
45class LHCOConverter {
46public:
47
48 explicit LHCOConverter(const string& inputroot, const string& inputlog);
49 ~LHCOConverter() {};
50
51 void CopyRunLogFile();
52 void ConvertExRootAnalysisToLHCO();
53
54private:
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;
57 const string inputfilename_;
58 string inputlogname_;
59 string outputfilename_;
60 bool valid_;
61};
62
63#endif
Note: See TracBrowser for help on using the repository browser.