Skip to content

Minimal working version of CA skeleton for evgen

Spyros Argyropoulos requested to merge sargyrop/athena:skeletonCA into main

Adding a minimal working version (producing a filled EVNT.root file from a ParticleGun jO).


  • Add new EvgenConfig class in EvgenJobTransforms.EvgenCAConfig module
  • Added necessary changes to CA-based skeleton in order to run a minimal jO and save the output in a root file
  • checkJOConsistency function added in GenConfig.GenConfigHelpers module

Layout of sequences


JobOption content

# Translation of 950555/ into CA mode

from EvgenJobTransforms.EvgenCAConfig import EvgenConfig
from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator

class Sample(EvgenConfig):

    def setupFlags(self, runArgs, flags):
        self.description = ["Single neutrinos with fixed eta and E: purely for pile-up/lumi testing"]
        self.keywords = ["singleParticle", "neutrino"] = [""]
        self.nEventsPerJob = 100
        self.generators += ["ParticleGun"]

    def setupProcess(self, flags):
        sampleConfig = ComponentAccumulator()

        import ParticleGun as PG
        pg = PG.ParticleGun(randomStream = "SINGLE", randomSeed = flags.Random.SeedOffset) = 12 = PG.EEtaMPhiSampler(energy=50000, eta=0)


        return sampleConfig

How to run --CA --outputEVNTFile="EVNT.root" --jobConfig=./950555 --maxEvents=10

cc @tadej @ewelina

Edited by Spyros Argyropoulos

Merge request reports