Exemplo n.º 1
0
 def run(self):
     with self.localize_output("w") as outp:
         with self.localize_input("r") as inp:
             cms_run_and_publish(self, "$HGC_BASE/hgc/files/ntup_cfg.py", dict(
                 inputFiles=[inp["reco"]["reco"].path],
                 outputFile=outp.path,
             ))
Exemplo n.º 2
0
    def run(self):
        inp = self.input()
        outp = self.output()

        cms_run_and_publish(self, "$HGC_BASE/hgc/files/ntup_cfg.py", dict(
            inputFiles=[inp["reco"]["reco"].path],
            outputFile=outp.path,
        ))
Exemplo n.º 3
0
    def run(self):
        inp = self.input()
        outp = self.output()

        cms_run_and_publish(self, "$HGC_BASE/hgc/files/reco_cfg.py", dict(
            inputFiles=[inp["gsd"].path],
            outputFile=outp["reco"].path,
            outputFileDQM=outp["dqm"].path,
        ))
Exemplo n.º 4
0
 def run(self):
     with self.localize_input("r") as inp, self.localize_output(
             "w") as outp:
         cms_run_and_publish(
             self, self.ntup_cfg,
             dict(
                 inputFiles=[inp["reco"]["reco"].uri()],
                 outputFile=outp.uri(),
             ))
Exemplo n.º 5
0
 def run(self):
     with self.localize_input("r") as inp, self.localize_output(
             "w") as outp:
         cms_run_and_publish(
             self, self.reco_cfg,
             dict(
                 inputFiles=[inp["gsd"].uri()],
                 outputFile=outp["reco"].uri(),
                 outputFileDQM=outp["dqm"].uri(),
             ))
Exemplo n.º 6
0
    def run(self):
      inp = self.input()
      outp = self.output()
      outp["harvesting"].parent.touch()

      cms_run_and_publish(self, "$HGC_BASE/hgc/files/harvesting_cfg.py", dict(
            inputFiles=inp["dqm"].path,
            outputDir=outp["harvesting"].parent.path,
            nThreads=self.n_threads,
            maxEvents=self.n_events,
      ))
Exemplo n.º 7
0
    def run(self):
        inp = self.input()
        outp = self.output()

        cms_run_and_publish(self, "$HGC_BASE/hgc/files/reco_for_validation_cfg.py", dict(
            inputFiles=[inp.path],
            outputFile=outp["reco"].path,
            outputFileDQM=outp["dqm"].path,
            nThreads=self.n_threads,
            maxEvents=self.n_events,
        ))
Exemplo n.º 8
0
 def run(self):
     with self.localize_output("w") as outp:
         cms_run_and_publish(
             self, self.gsd_cfg,
             dict(
                 outputFile=outp.uri(),
                 maxEvents=self.n_events,
                 generator=self.generator,
                 pileup=self.pileup,
                 seed=self.seed + self.branch,
             ))
Exemplo n.º 9
0
 def run(self):
     # run the command using a helper that publishes the current progress to the scheduler
     cms_run_and_publish(self, "$HGC_BASE/hgc/files/gsd_cfg.py", dict(
         outputFile=self.output().path,
         maxEvents=self.n_events,
         gunType=self.gun_type,
         gunMin=self.gun_min,
         gunMax=self.gun_max,
         particleIds=self.particle_ids,
         deltaR=self.delta_r,
         nParticles=self.n_particles,
         exactShoot=self.exact_shoot,
         randomShoot=self.random_shoot,
         seed=self.seed + self.branch,
     ))
Exemplo n.º 10
0
 def run(self):
     # localize the output file
     # (i.e. create a temporary local representation and move it to the destination on success)
     with self.output().localize("w") as outp:
         # run the command using a helper that publishes the current progress to the scheduler
         cms_run_and_publish(self, "$HGC_BASE/hgc/files/gsd_cfg.py", dict(
             outputFile=outp.path,
             maxEvents=self.n_events,
             gunType=self.gun_type,
             gunMin=self.gun_min,
             gunMax=self.gun_max,
             particleIds=self.particle_ids,
             deltaR=self.delta_r,
             nParticles=self.n_particles,
             exactShoot=self.exact_shoot,
             randomShoot=self.random_shoot,
             seed=self.seed + self.branch,
         ))