ATLAS Offline Software
Functions
TrackRecordGeneratorConfig Namespace Reference

Functions

def Input_TrackRecordGeneratorCfg (ConfigFlags, name="TrackRecordGenerator", **kwargs)
 Input: Reading Particles from TrackRecord Input File ###############. More...
 

Function Documentation

◆ Input_TrackRecordGeneratorCfg()

def TrackRecordGeneratorConfig.Input_TrackRecordGeneratorCfg (   ConfigFlags,
  name = "TrackRecordGenerator",
**  kwargs 
)

Input: Reading Particles from TrackRecord Input File ###############.

Configuring the Athena application for a 'track record' job

Definition at line 4 of file TrackRecordGeneratorConfig.py.

4 def Input_TrackRecordGeneratorCfg(ConfigFlags,name="TrackRecordGenerator", **kwargs):
5  """Configuring the Athena application for a 'track record' job"""
6  from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
8 
9  # import G4AtlasApps.AtlasCosmicTrackRecordJob #todo make this new style
10 
11  from AthenaConfiguration.ComponentFactory import CompFactory
12  TrackRecordGenerator=CompFactory.TrackRecordGenerator
13 
14  kwargs = {}
15  from SimulationConfig.SimEnums import CavernBackground
16  if ConfigFlags.Sim.CavernBackground is CavernBackground.Read:
17  kwargs.setdefault('TRSmearing', -1) #in millimeters, e.g. 10
18  kwargs.setdefault('TRPSmearing', -1) #in radians, e.g. 0.01
19  kwargs.setdefault('TRCollection', "NeutronBG")
20  else:
21  kwargs.setdefault('TRCollection','CosmicRecord') # Collection name
22  kwargs.setdefault("TRSmearing", -1 ) #in millimeters, e.g. 10
23  kwargs.setdefault("TRPSmearing", -1 ) #in radians, e.g. 0.01
24  kwargs.setdefault('StopParticles', False) # Stop the particles or not
25  kwargs.setdefault('stopped_tminus', -25.) # in ns, lower bound
26  kwargs.setdefault('stopped_tplus', 25.) # in ns, upper bound
27  from RngComps.RngCompsConfig import AthRNGSvcCfg
28  kwargs.setdefault('RndmSvc', acc.getPrimaryAndMerge(AthRNGSvcCfg(ConfigFlags)).name)
29  #kwargs.setdefault('OutputLevel', DEBUG) # for turning up output during testing
30  acc.addEventAlgo(TrackRecordGenerator(name,**kwargs))
31  return acc
32 
33 # def getTrackRecordCosmicGenerator(name="TrackRecordCosmicGenerator", **kwargs):
34 # return getInput_TrackRecordGenerator(name, **kwargs)
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TrackRecordGeneratorConfig.Input_TrackRecordGeneratorCfg
def Input_TrackRecordGeneratorCfg(ConfigFlags, name="TrackRecordGenerator", **kwargs)
Input: Reading Particles from TrackRecord Input File ###############.
Definition: TrackRecordGeneratorConfig.py:4
TrackRecordGenerator
Track Record Generator. The class takes input simulation track records and uses them as generator rec...
Definition: TrackRecordGenerator.h:27
RngCompsConfig.AthRNGSvcCfg
def AthRNGSvcCfg(flags, name="AthRNGSvc")
Definition: RngCompsConfig.py:51