ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
mc.Sample Class Reference
Inheritance diagram for mc.Sample:
Collaboration diagram for mc.Sample:

Public Member Functions

def setupFlags (self, flags)
 
def setupProcess (self, flags)
 

Public Attributes

 description
 
 keywords
 
 contact
 
 nEventsPerJob
 

Detailed Description

Definition at line 7 of file mc.PG_single_nu_valid.py.

Member Function Documentation

◆ setupFlags()

def mc.Sample.setupFlags (   self,
  flags 
)

Definition at line 9 of file mc.PG_single_nu_valid.py.

9  def setupFlags(self, flags):
10  self.description = ["Single neutrinos with fixed eta and E: purely for pile-up/lumi testing"]
11  self.keywords = ["singleParticle", "neutrino"]
12  self.contact = ["dhirsch@mail.cern.ch"]
13  self.nEventsPerJob = 100
14  self.generators += ["ParticleGun"]
15 

◆ setupProcess()

def mc.Sample.setupProcess (   self,
  flags 
)

Definition at line 16 of file mc.PG_single_nu_valid.py.

16  def setupProcess(self, flags):
17  # TODO: update once we have a proper PG fragment
18  sampleConfig = ComponentAccumulator(EvgenSequenceFactory(EvgenSequence.Generator))
19 
20  import ParticleGun as PG
21  pg = PG.ParticleGun(randomStream="SINGLE", randomSeed=flags.Random.SeedOffset)
22  pg.sampler.pid = 12
23  pg.sampler.mom = PG.EEtaMPhiSampler(energy=50000, eta=0)
24 
25  sampleConfig.addEventAlgo(pg)
26 
27  return sampleConfig

Member Data Documentation

◆ contact

mc.Sample.contact

Definition at line 12 of file mc.PG_single_nu_valid.py.

◆ description

mc.Sample.description

Definition at line 10 of file mc.PG_single_nu_valid.py.

◆ keywords

mc.Sample.keywords

Definition at line 11 of file mc.PG_single_nu_valid.py.

◆ nEventsPerJob

mc.Sample.nEventsPerJob

Definition at line 13 of file mc.PG_single_nu_valid.py.


The documentation for this class was generated from the following file:
python.Sequences.EvgenSequenceFactory
def EvgenSequenceFactory(sequence)
Definition: Sequences.py:17
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302