Fork me on GitHub

Changes in / [a1f329b:b1e03e5] in git


Ignore:
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • README

    ra1f329b rb1e03e5  
    1 
    2 
    31Quick start with Delphes
    42========================
  • python/DelphesAnalysis/Delphes.py

    ra1f329b rb1e03e5  
    1212  return theString
    1313
    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__
    1815
    1916def _LHCOEvent__str__( self ):
     
    2118  return theString
    2219
    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__
    2721
    2822def _LHEFEvent__str__( self ):
     
    3428  return hepmcstr
    3529
    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__
    4031
    4132def _HepMCEvent__str__( self ):
     
    5243  return hepmcstr
    5344
    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__
    5946
    6047def _GenParticle__str__( self ):
     
    7461  return thestring
    7562
    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__
    8064
    8165def _GenParticle_printDecay( self, db, particles, pre="" ):
     
    8771  return thestring
    8872
    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
    9374
    9475def _MissingET__str__( self ):
     
    9677  thestring += "Mising energy azimuthal angle: %f\n" % self.Phi
    9778  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__
    10381
    10482def _ScalarHT__str__( self ):
    10583  thestring = "Scalar sum of transverse momenta: %f\n" %self.HT
    10684
    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__
    11186
    11287def _Photon__str__( self ):
     
    11489  return thestring
    11590
    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__
    12092
    12193def _Electron__str__( self ):
     
    12496  return thestring
    12597
    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__
    13099
    131100def _Muon__str__( self ):
     
    134103  return thestring
    135104
    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__
    141106
    142107def _Jet__str__( self ):
     
    161126  return thestring
    162127
    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__
    167129
    168130def _Track__str__( self ):
     
    175137  return thestring
    176138
    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__
    181140
    182141def _Tower__str__( self):
     
    186145  return thestring
    187146
    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__
    192148
    193149#####################################################
     
    200156  return theString
    201157
    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__
    206159
    207160
Note: See TracChangeset for help on using the changeset viewer.