Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-07 22:32:55

0001 #!/usr/bin/env python3
0002 """
0003 _cosmics_
0004 
0005 Scenario supporting cosmic data taking
0006 
0007 """
0008 
0009 import os
0010 import sys
0011 
0012 from Configuration.DataProcessing.Reco import Reco
0013 
0014 class cosmics(Reco):
0015     def __init__(self):
0016         Reco.__init__(self)
0017         self.recoSeq=''
0018         self.cbSc='cosmics'
0019     """
0020     _cosmics_
0021 
0022     Implement configuration building for data processing for cosmic
0023     data taking
0024 
0025     """
0026 
0027 
0028     def promptReco(self, globalTag, **args):
0029         """
0030         _promptReco_
0031 
0032         Cosmic data taking prompt reco
0033 
0034         """
0035         if not 'skims' in args:
0036             args['skims']= ['@allForPromptCosmics']
0037         if not 'customs' in args:
0038             args['customs']=['Configuration/DataProcessing/RecoTLR.customiseCosmicData']
0039         else:
0040             args['customs'].append('Configuration/DataProcessing/RecoTLR.customiseCosmicData')
0041         process = Reco.promptReco(self,globalTag, **args)
0042 
0043         return process
0044 
0045 
0046     def expressProcessing(self, globalTag, **args):
0047         """
0048         _expressProcessing_
0049 
0050         Cosmic data taking express processing
0051 
0052         """
0053 
0054         if not 'skims' in args:
0055             args['skims']= ['@allForExpressCosmics']
0056         if not 'customs' in args:
0057             args['customs']=['Configuration/DataProcessing/RecoTLR.customiseCosmicData']
0058         else:
0059             args['customs'].append('Configuration/DataProcessing/RecoTLR.customiseCosmicData')
0060         process = Reco.expressProcessing(self,globalTag, **args)
0061 
0062         return process
0063 
0064     def visualizationProcessing(self, globalTag, **args):
0065         """
0066         _visualizationProcessing_
0067 
0068         Cosmic data taking visualization processing
0069 
0070         """
0071 
0072         if not 'customs' in args:
0073             args['customs']=['Configuration/DataProcessing/RecoTLR.customiseCosmicData']
0074         else:
0075             args['customs'].append('Configuration/DataProcessing/RecoTLR.customiseCosmicData')
0076         process = Reco.visualizationProcessing(self,globalTag, **args)
0077 
0078         return process
0079 
0080     def alcaHarvesting(self, globalTag, datasetName, **args):
0081         """
0082         _alcaHarvesting_
0083 
0084         Proton collisions data taking AlCa Harvesting
0085 
0086         """
0087 
0088         if not 'skims' in args and not 'alcapromptdataset' in args:
0089             args['skims']=['SiStripQuality']
0090             
0091         return Reco.alcaHarvesting(self, globalTag, datasetName, **args)