def run(self): if lambdas == 'None': kali = firstPass( ##-- cuts and filters PtGamma=250 * MeV, ## selection cuts ## event multiplicity filter Filter= "(650. > CONTAINS('Raw/Spd/Digits')) & ( CONTAINS('Rec/Vertex/Primary') > 0.) & ( CONTAINS('Rec/Vertex/Primary') < 5.)", ##-- output NTupleProduce=True, # produce NTuples NTuple=self.__dsname + '.root', # NTuple name Histograms=False, # do not produce Histograms FemtoDST=self.__dsname + '.fmDST', # output fmDST name ##-- general (configuring DaVinci) DataType='2015', # data type EvtMax=self.__nevt, # number of events to run OutputLevel=ERROR) else: kali = secondPass( ## DestroyTES=False, ## ``Physics'' PtGamma=250 * MeV, Pi0Cut="PT > 550 * MeV", ## IO NTupleProduce=True, # produce NTuples NTuple=self.__dsname + '.root', # NTuple name Histograms=False, # do not produce Histograms FemtoDST="", ## Calibration KaliDB={ 'name': lambdas, 'ecal': 'ecal' }, ## general DataType='2015', EvtMax=self.__nevt, OutputLevel=ERROR) from Configurables import CondDB CondDB().Simulation = False CondDB().UseDBSnapshot = True CondDB().DBSnapshotDirectory = "/group/online/hlt/conditions" CondDB().EnableRunChangeHandler = True CondDB().Tags["ONLINE"] = 'fake' CondDB().setProp("IgnoreHeartBeat", True) CondDB().Online = True try: import AllHlt1 except ImportError: rd = '/group/online/hlt/conditions/RunChangeHandler' sys.path.append(rd) import AllHlt1 import AllHlt1 CondDB().RunChangeHandlerConditions = AllHlt1.ConditionMap Online = importOnline() ## ======== input data type - 'SDST' ============ from Configurables import DaVinci DaVinci().InputType = 'DST' # use SDSTs as an input DaVinci().CondDBtag = Online.CondDBTag DaVinci().DDDBtag = Online.DDDBTag from GaudiConf import IOHelper IOHelper('ROOT').inputFiles(self.__inputs) from GaudiPython.Bindings import AppMgr gaudi = AppMgr() gaudi.initialize() gaudi.run(self.__nevt) gaudi.stop() gaudi.finalize() gaudi.exit()
## ## IO ## NTuple = "KaliPi0_Tuples_2k+10.root" , ## FemtoDST = "KaliPi0_2k+10.fmDST" , ## ## general ## DataType = '2010', ## PrintFreq = 5000 , ## EvtMax = -1 ## ) kali = secondPass( ## DestroyTES=False, ## ``Physics'' PtGamma=250 * MeV, Pi0Cut="PT > 550 * MeV", ## IO NTuple="KaliPi0_Tuples_2k+11.root", FemtoDST="KaliPi0_2k+11.fmDST", ## general DataType='2010', PrintFreq=1000, EvtMax=-1) from Configurables import CondDB CondDB(UseLatestTags=['2012']) # ============================================================================= ## the actual job steering if '__main__' == __name__: ## make printout of the own documentations
##-- general (configuring DaVinci) DataType='2015', # data type EvtMax=-1, # number of events to run OutputLevel=ERROR) else: kali = secondPass( ## DestroyTES=False, ## ``Physics'' PtGamma=250 * MeV, Pi0Cut="PT > 550 * MeV", ## IO NTupleProduce=True, # produce NTuples NTuple=tup_file, # NTuple name Histograms=False, # do not produce Histograms FemtoDST="", ## Calibration KaliDB={ 'name': lambdas, 'ecal': 'ecal' }, ## general DataType='2015', EvtMax=-1, OutputLevel=ERROR) ## ======== input data type - 'SDST' ============ from Configurables import DaVinci DaVinci().InputType = 'DST' # use SDSTs as an input DaVinci().CondDBtag = 'cond-20150828'
""" # ============================================================================= __author__ = " Vanya BELYAEV [email protected] " __date__ = " 2010-03-28 " __version__ = " CVS Tag $Name: not supported by cvs2svn $, version $Revision$" # ============================================================================= ## the basic import from Gaudi.Configuration import * from GaudiKernel.SystemOfUnits import MeV from KaliCalo.Configuration import secondPass kali = secondPass( ## IO NTuple="KaliPi0_SP.root", FemtoDST="KaliPi0_SP.fmDST", ## general DataType='MC09', Simulation=True, PrintFreq=10000, EvtMax=-1) # ============================================================================= ## the actual job steering if '__main__' == __name__: ## make printout of the own documentations print '*' * 120 print __doc__ print ' Author : %s ' % __author__ print ' Version : %s ' % __version__ print ' Date : %s ' % __date__