Commit b19e4f8b authored by robbep's avatar robbep
Browse files

Fix names


git-svn-id: svn+ssh://svn.cern.ch/reps/lhcb/DBASE/trunk/Gen/DecFiles@142086 4525493e-7705-40b1-a816-d608a930855b
parent 0787926e
......@@ -13,13 +13,16 @@
# 060616 - fixes
#============================================================================
version = 'v2r0'
version = 'v2r1'
bkk_first = True
eventid_inbkk = []
sql_first = True
eventid_insql = []
list_of_obsoletes = []
exit_status = 0
list_of_wg = [ 'QCD' , 'EW' , 'Exotica' , 'Onia' , 'Charm' , 'RD' , 'B2Ch' ,
'B2OC' , 'BnoC' , 'B2SL' , 'Calo' , 'PID' , 'Tagging' ,
'Alignement' , 'Sim' ]
import os , re , string, logging , sys
import time , glob , mmap
......@@ -243,6 +246,19 @@ class EventType:
self.KeywordDictionary[ 'NickName' ] , self.DecayName() )
raise UserWarning
# check if the date format is correct
try:
thetime = time.strptime( self.Date() , "%Y%m%d" )
except ValueError:
logging.error( "In %s, the date format is not correct, it should be YYYYMMDD instead of %s.",
self.DecayFileName , self.Date() )
raise UserWarning
# check physics wg name
if self.PhysicsWG() not in list_of_wg:
logging.error( "In %s, the name of the WG is not correct: %s.",
self.DecayFileName , self.PhysicsWG() )
# check the event type does not start with 0
if self.EventTypeNumber()[0] == '0':
logging.error( "The EventType is not correct in %s." , self.DecayFileName )
......@@ -383,6 +399,10 @@ class EventType:
return self.KeywordDictionary[ 'MomentumRange' ].split()
def NickName( self ):
return self.KeywordDictionary[ 'NickName' ].replace( ' ' , '' )
def Date( self ):
return self.KeywordDictionary[ 'Date' ]
def PhysicsWG( self ):
return self.KeywordDictionary[ 'PhysicsWG' ]
def DecayName(self):
return os.path.splitext( os.path.split( self.DecayFileName )[ 1 ] )[ 0 ]
......
......@@ -9,11 +9,11 @@
# Documentation: B** Spectroscopy
# EndDocumentation
#
# PhysicsWG: Production and Spectroscopy
# PhysicsWG: Onia
# Tested: Yes
# Responsible: Marco Pappagallo
# Email: marco.pappagallo@cern.ch
# Date: 27 October 2011
# Date: 20111027
#
Define Hp 0.159
Define Hz 0.775
......
......@@ -9,11 +9,11 @@
# Documentation: B** Spectroscopy
# EndDocumentation
#
# PhysicsWG: Production and Spectroscopy
# PhysicsWG: Onia
# Tested: Yes
# Responsible: Marco Pappagallo
# Email: marco.pappagallo@cern.ch
# Date: 27 October 2011
# Date: 20111027
#
Define Hp 0.159
Define Hz 0.775
......
......@@ -9,11 +9,11 @@
# Documentation: B** Spectroscopy
# EndDocumentation
#
# PhysicsWG: Production and Spectroscopy
# PhysicsWG: Onia
# Tested: Yes
# Responsible: Marco Pappagallo
# Email: marco.pappagallo@cern.ch
# Date: 26 October 2011
# Date: 20111026
#
Alias MyBstar B*+
Alias MyantiBstar B*-
......
......@@ -9,11 +9,11 @@
# Documentation: B** Spectroscopy
# EndDocumentation
#
# PhysicsWG: Production and Spectroscopy
# PhysicsWG: Onia
# Tested: Yes
# Responsible: Marco Pappagallo
# Email: marco.pappagallo@cern.ch
# Date: 26 October 2011
# Date: 20111026
#
Alias MyBstar B*+
Alias MyantiBstar B*-
......
......@@ -9,11 +9,11 @@
# Documentation: B** Spectroscopy
# EndDocumentation
#
# PhysicsWG: Production and Spectroscopy
# PhysicsWG: Onia
# Tested: Yes
# Responsible: Marco Pappagallo
# Email: marco.pappagallo@cern.ch
# Date: 27 October 2011
# Date: 20111027
#
Define Hp 0.159
Define Hz 0.775
......
......@@ -9,11 +9,11 @@
# Documentation: B** Spectroscopy
# EndDocumentation
#
# PhysicsWG: Production and Spectroscopy
# PhysicsWG: Onia
# Tested: Yes
# Responsible: Marco Pappagallo
# Email: marco.pappagallo@cern.ch
# Date: 27 October 2011
# Date: 20111027
#
Define Hp 0.159
Define Hz 0.775
......
......@@ -9,11 +9,11 @@
# Documentation: B** Spectroscopy
# EndDocumentation
#
# PhysicsWG: Production and Spectroscopy
# PhysicsWG: Onia
# Tested: Yes
# Responsible: Marco Pappagallo
# Email: marco.pappagallo@cern.ch
# Date: 26 October 2011
# Date: 20111026
#
Alias MyBstar B*+
Alias MyantiBstar B*-
......
......@@ -9,11 +9,11 @@
# Documentation: B** Spectroscopy
# EndDocumentation
#
# PhysicsWG: Production and Spectroscopy
# PhysicsWG: Onia
# Tested: Yes
# Responsible: Marco Pappagallo
# Email: marco.pappagallo@cern.ch
# Date: 26 October 2011
# Date: 20111026
#
Alias MyBstar B*+
Alias MyantiBstar B*-
......
......@@ -13,11 +13,11 @@
# Documentation: Neutralinos from SUSY (mSUGRA) with Bilinear Rp violation in final states mu q q', m0=200GeV, m1/2=200GeV
# EndDocumentation
#
# PhysicsWG: Exotics
# PhysicsWG: Exotica
# Tested: Yes
# Responsible: Neal Gauvin
# Email: stephane.tourneur@epfl.ch
# Date: 3 august 2009
# Date: 20090803
#
End
#
......
......@@ -15,7 +15,7 @@
# Tested: Yes
# Responsible: Mark Whitehead
# Email: mwhitehe@cern.ch
# Date: 11/10/2011
# Date: 20111011
#
Alias MyB0 B0
Alias Myanti-B0 anti-B0
......
......@@ -15,7 +15,7 @@
# Tested: Yes
# Responsible: Mark Whitehead
# Email: mwhitehe@cern.ch
# Date: 11/10/2011
# Date: 20111011
#
Define Hp 0.159
Define Hz 0.775
......
......@@ -15,7 +15,7 @@
# Tested: Yes
# Responsible: Mark Whitehead
# Email: mwhitehe@cern.ch
# Date: 11/10/2011
# Date: 20111011
#
Alias MyB0 B0
Alias Myanti-B0 anti-B0
......
......@@ -15,7 +15,7 @@
# Tested: Yes
# Responsible: Mark Whitehead
# Email: mwhitehe@cern.ch
# Date: 11/10/2011
# Date: 20111011
#
Define Hp 0.159
Define Hz 0.775
......
......@@ -15,7 +15,7 @@
# Tested: Yes
# Responsible: Mark Whitehead
# Email: mwhitehe@cern.ch
# Date: 11/10/2011
# Date: 20111011
#
Alias MyB_s0 B_s0
Alias Myanti-B_s0 anti-B_s0
......
......@@ -15,7 +15,7 @@
# Tested: Yes
# Responsible: Mark Whitehead
# Email: mwhitehe@cern.ch
# Date: 11/10/2011
# Date: 20111011
#
Define Hp 0.49
Define Hz 0.775
......
......@@ -15,7 +15,7 @@
# Tested: Yes
# Responsible: Mark Whitehead
# Email: mwhitehe@cern.ch
# Date: 11/10/2011
# Date: 20111011
#
Alias MyB_s0 B_s0
Alias Myanti-B_s0 anti-B_s0
......
......@@ -15,7 +15,7 @@
# Tested: Yes
# Responsible: Mark Whitehead
# Email: mwhitehe@cern.ch
# Date: 11/10/2011
# Date: 20111011
#
Define Hp 0.49
Define Hz 0.775
......
......@@ -15,7 +15,7 @@
# Tested: Yes
# Responsible: Zhenwei Yang
# Email: yangzhw@tsinghua.edu.cn
# Date: 24/08/2011
# Date: 20110824
Alias MyBs B_s0
Alias Myanti-Bs anti-B_s0
......
......@@ -16,7 +16,7 @@
# Tested: Yes
# Responsible: Zhenwei Yang
# Email: yangzhw@tsinghua.edu.cn
# Date: 19/09/2011
# Date: 20110919
#
Define Hp 0.159
Define Hz 0.775
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment