Changes in / [a1f329b:b1e03e5] in git
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
README
ra1f329b rb1e03e5 1 2 3 1 Quick start with Delphes 4 2 ======================== -
python/DelphesAnalysis/Delphes.py
ra1f329b rb1e03e5 12 12 return theString 13 13 14 if hasattr(_root,"MakeRootClass"): 15 _root.MakeRootClass( "Event" ).__str__ = _Event__str__ 16 else: 17 _root.CreateScopeProxy( "Event" ).__str__ = _Event__str__ 14 _root.MakeRootClass( "Event" ).__str__ = _Event__str__ 18 15 19 16 def _LHCOEvent__str__( self ): … … 21 18 return theString 22 19 23 if hasattr(_root,"MakeRootClass"): 24 _root.MakeRootClass( "LHCOEvent" ).__str__ = _LHCOEvent__str__ 25 else: 26 _root.CreateScopeProxy( "LHCOEvent" ).__str__ = _LHCOEvent__str__ 20 _root.MakeRootClass( "LHCOEvent" ).__str__ = _LHCOEvent__str__ 27 21 28 22 def _LHEFEvent__str__( self ): … … 34 28 return hepmcstr 35 29 36 if hasattr(_root,"MakeRootClass"): 37 _root.MakeRootClass( "LHEFEvent" ).__str__ = _LHEFEvent__str__ 38 else: 39 _root.CreateScopeProxy( "LHEFEvent" ).__str__ = _LHEFEvent__str__ 30 _root.MakeRootClass( "LHEFEvent" ).__str__ = _LHEFEvent__str__ 40 31 41 32 def _HepMCEvent__str__( self ): … … 52 43 return hepmcstr 53 44 54 if hasattr(_root,"MakeRootClass"): 55 _root.MakeRootClass( "HepMCEvent" ).__str__ = _HepMCEvent__str__ 56 else: 57 _root.CreateScopeProxy( "HepMCEvent" ).__str__ = _HepMCEvent__str__ 58 45 _root.MakeRootClass( "HepMCEvent" ).__str__ = _HepMCEvent__str__ 59 46 60 47 def _GenParticle__str__( self ): … … 74 61 return thestring 75 62 76 if hasattr(_root,"MakeRootClass"): 77 _root.MakeRootClass( "GenParticle" ).__str__ = _GenParticle__str__ 78 else: 79 _root.CreateScopeProxy( "GenParticle" ).__str__ = _GenParticle__str__ 63 _root.MakeRootClass( "GenParticle" ).__str__ = _GenParticle__str__ 80 64 81 65 def _GenParticle_printDecay( self, db, particles, pre="" ): … … 87 71 return thestring 88 72 89 if hasattr(_root,"MakeRootClass"): 90 _root.MakeRootClass( "GenParticle" ).printDecay = _GenParticle_printDecay 91 else: 92 _root.CreateScopeProxy( "GenParticle" ).printDecay = _GenParticle_printDecay 73 _root.MakeRootClass( "GenParticle" ).printDecay = _GenParticle_printDecay 93 74 94 75 def _MissingET__str__( self ): … … 96 77 thestring += "Mising energy azimuthal angle: %f\n" % self.Phi 97 78 return thestring 98 99 if hasattr(_root,"MakeRootClass"): 100 _root.MakeRootClass( "MissingET" ).__str__ = _MissingET__str__ 101 else: 102 _root.CreateScopeProxy( "MissingET" ).__str__ = _MissingET__str__ 79 80 _root.MakeRootClass( "MissingET" ).__str__ = _MissingET__str__ 103 81 104 82 def _ScalarHT__str__( self ): 105 83 thestring = "Scalar sum of transverse momenta: %f\n" %self.HT 106 84 107 if hasattr(_root,"MakeRootClass"): 108 _root.MakeRootClass( "ScalarHT" ).__str__ = _ScalarHT__str__ 109 else: 110 _root.CreateScopeProxy( "ScalarHT" ).__str__ = _ScalarHT__str__ 85 _root.MakeRootClass( "ScalarHT" ).__str__ = _ScalarHT__str__ 111 86 112 87 def _Photon__str__( self ): … … 114 89 return thestring 115 90 116 if hasattr(_root,"MakeRootClass"): 117 _root.MakeRootClass( "Photon" ).__str__ = _Photon__str__ 118 else: 119 _root.CreateScopeProxy( "Photon" ).__str__ = _Photon__str__ 91 _root.MakeRootClass( "Photon" ).__str__ = _Photon__str__ 120 92 121 93 def _Electron__str__( self ): … … 124 96 return thestring 125 97 126 if hasattr(_root,"MakeRootClass"): 127 _root.MakeRootClass( "Electron" ).__str__ = _Electron__str__ 128 else: 129 _root.CreateScopeProxy( "Electron" ).__str__ = _Electron__str__ 98 _root.MakeRootClass( "Electron" ).__str__ = _Electron__str__ 130 99 131 100 def _Muon__str__( self ): … … 134 103 return thestring 135 104 136 if hasattr(_root,"MakeRootClass"): 137 _root.MakeRootClass( "Muon" ).__str__ = _Muon__str__ 138 else: 139 _root.CreateScopeProxy( "Muon" ).__str__ = _Muon__str__ 140 105 _root.MakeRootClass( "Muon" ).__str__ = _Muon__str__ 141 106 142 107 def _Jet__str__( self ): … … 161 126 return thestring 162 127 163 if hasattr(_root,"MakeRootClass"): 164 _root.MakeRootClass( "Jet" ).__str__ = _Jet__str__ 165 else: 166 _root.CreateScopeProxy( "Jet" ).__str__ = _Jet__str__ 128 _root.MakeRootClass( "Jet" ).__str__ = _Jet__str__ 167 129 168 130 def _Track__str__( self ): … … 175 137 return thestring 176 138 177 if hasattr(_root,"MakeRootClass"): 178 _root.MakeRootClass( "Track" ).__str__ = _Track__str__ 179 else: 180 _root.CreateScopeProxy( "Track" ).__str__ = _Track__str__ 139 _root.MakeRootClass( "Track" ).__str__ = _Track__str__ 181 140 182 141 def _Tower__str__( self): … … 186 145 return thestring 187 146 188 if hasattr(_root,"MakeRootClass"): 189 _root.MakeRootClass( "Tower" ).__str__ = _Tower__str__ 190 else: 191 _root.CreateScopeProxy( "Tower" ).__str__ = _Tower__str__ 147 _root.MakeRootClass( "Tower" ).__str__ = _Tower__str__ 192 148 193 149 ##################################################### … … 200 156 return theString 201 157 202 if hasattr(_root,"MakeRootClass"): 203 _root.MakeRootClass( "TLorentzVector" ).__str__ = _lorentzVector__str__ 204 else: 205 _root.CreateScopeProxy( "TLorentzVector" ).__str__ = _lorentzVector__str__ 158 _root.MakeRootClass( "TLorentzVector" ).__str__ = _lorentzVector__str__ 206 159 207 160
Note:
See TracChangeset
for help on using the changeset viewer.