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