def submit(self, samples):
        self.normalize()

        crab_samples, condor_samples = [], []
        for s in samples:
            s.set_curr_dataset(self.common.dataset)
            if s.condor or self.override == 'condor':
                condor_samples.append(s)
            elif not s.condor or self.override == 'crab':
                crab_samples.append(s)

        if self.testing:
            print 'MetaSubmitter: crab samples ='
            for s in crab_samples:
                print s.name
            print 'MetaSubmitter: condor samples ='
            for s in condor_samples:
                print s.name

        if crab_samples:
            args = dict(self.common.__dict__)
            args.update(self.crab.__dict__)
            cs = CRABSubmitter(self.batch_name, **args)
            cs.submit_all(crab_samples)
        if condor_samples:
            args = dict(self.common.__dict__)
            args.update(self.condor.__dict__)
            cs = CondorSubmitter(self.batch_name, **args)
            cs.submit_all(condor_samples)
    def submit(self, samples):
        self.normalize()

        crab_samples, condor_samples = [], []
        for s in samples:
            s.set_curr_dataset(self.common.dataset)
            if s.condor or self.override == 'condor':
                condor_samples.append(s)
            elif not s.condor or self.override == 'crab':
                crab_samples.append(s)

        if self.testing:
            print 'MetaSubmitter: crab samples ='
            for s in crab_samples:
                print s.name
            print 'MetaSubmitter: condor samples ='
            for s in condor_samples:
                print s.name

        if crab_samples:
            args = dict(self.common.__dict__)
            args.update(self.crab.__dict__)
            cs = CRABSubmitter(self.batch_name, **args)
            cs.submit_all(crab_samples)
        if condor_samples:
            args = dict(self.common.__dict__)
            args.update(self.condor.__dict__)
            cs = CondorSubmitter(self.batch_name, **args)
            cs.submit_all(condor_samples)
Example #3
0
process.load('JMTucker.MFVNeutralino.WeightProducer_cfi')
process.p = cms.Path(process.mfvWeight)

process.mfvMovedTree = cms.EDAnalyzer('MFVMovedTracksTreer',
                                      event_src = cms.InputTag('mfvEvent'),
                                      weight_src = cms.InputTag('mfvWeight'),
                                      mover_src = cms.string(''),
                                      vertices_src = cms.InputTag('mfvVerticesAux'),
                                      max_dist2move = cms.double(-1),
                                      apply_presel = cms.bool(False),
                                      njets_req = cms.uint32(0),
                                      nbjets_req = cms.uint32(0),
                                      for_mctruth = cms.bool(True),
                                      )

process.p *= process.mfvMovedTree
file_event_from_argv(process)

if __name__ == '__main__' and hasattr(sys, 'argv') and 'submit' in sys.argv:
    from JMTucker.Tools.CRAB3Submitter import CRABSubmitter
    import JMTucker.Tools.Samples as Samples

    cs = CRABSubmitter('TrackMoverMCTruthV6p1_76X',
                       dataset = 'ntuplev6p1_76x_nstlays3',
                       job_control_from_sample = True,
                       max_threads = 3,
                       )

    samples = Samples.registry.from_argv(Samples.mfv_signal_samples)
    cs.submit_all(samples)
Example #4
0
    setattr(process, pname, path)
    process.out.SelectEvents.SelectEvents.append(pname)


a('myhtt', ht_cut=1000, myhtt_m_l1htt_cut=0.4)
a('myhttwbug', ht_cut=1000, myhttwbug_m_l1htt_cut=0.4)

if __name__ == '__main__' and hasattr(sys, 'argv') and 'submit' in sys.argv:
    import JMTucker.Tools.Samples as Samples
    samples = [
        s for s in Samples.auxiliary_data_samples
        if s.name.startswith('SingleMuon')
    ]

    for sample in samples:
        sample.json = '../jsons/ana_2015p6.json'

    from JMTucker.Tools.CRAB3Submitter import CRABSubmitter
    from JMTucker.Tools.MetaSubmitter import *
    batch_name = 'TrigSkimV1'
    cs = CRABSubmitter(
        batch_name,
        pset_modifier=chain_modifiers(H_modifier, repro_modifier),
        splitting='FileBased',
        units_per_job=10,
        total_units=-1,
        dataset='miniaod',
        publish_name=batch_name,
    )
    cs.submit_all(samples)
Example #5
0
#!/usr/bin/env python

import sys
from JMTucker.Tools.BasicAnalyzer_cfg import *
from JMTucker.Tools.MiniAOD_cfg import which_global_tag

process.TFileService.fileName = 'prescales.root'
global_tag(process, which_global_tag(is_mc=False))

process.source.fileNames = ['/store/data/Run2015D/JetHT/AOD/PromptReco-v4/000/260/627/00000/78D8E6A7-6484-E511-89B4-02163E0134F6.root']

from JMTucker.Tools.L1GtUtils_cff import l1GtUtilsTags
add_analyzer(process, 'MFVTriggerPrescales', l1GtUtilsTags)

process.maxEvents.input = -1

if __name__ == '__main__' and hasattr(sys, 'argv') and 'submit' in sys.argv:
    import JMTucker.Tools.Samples as Samples
    from JMTucker.Tools.CRAB3Submitter import CRABSubmitter
    cs = CRABSubmitter('TriggerPrescalesV0',
                       splitting = 'FileBased',
                       units_per_job = 20,
                       total_units = -1,
                       )
    cs.submit_all(Samples.data_samples)