testlarg4.fcl
Go to the documentation of this file.
1 #include "LArG4.fcl"
2 //#include "seedservice.fcl"
3 #no experiment specific configurations because SingleGen is detector agnostic
4 
5 standard_singlep:
6 {
7  module_type: "SingleGen"
8  ParticleSelectionMode: "all" # 0 = use full list, 1 = randomly select a single listed particle
9  PadOutVectors: false # false: require all vectors to be same length
10  # true: pad out if a vector is size one
11  PDG: [ 13 ] # list of pdg codes for particles to make
12  P0: [ 6. ] # central value of momentum for each particle
13  SigmaP: [ 0. ] # variation about the central value
14  PDist: "Gaussian" # 0 - uniform, 1 - gaussian distribution
15  X0: [ 0. ] # in cm in world coordinates, ie x = 0 is at the wire plane
16  # and increases away from the wire plane
17  Y0: [ 0. ] # in cm in world coordinates, ie y = 0 is at the center of the TPC
18  Z0: [ -130. ] # in cm in world coordinates, ie z = 0 is at the upstream edge of
19  # the TPC and increases with the beam direction
20  T0: [ 0. ] # starting time
21  SigmaX: [ 0. ] # variation in the starting x position
22  SigmaY: [ 0. ] # variation in the starting y position
23  SigmaZ: [ 0.0 ] # variation in the starting z position
24  SigmaT: [ 0.0 ] # variation in the starting time
25  PosDist: "uniform" # 0 - uniform, 1 - gaussian
26  TDist: "uniform" # 0 - uniform, 1 - gaussian
27  Theta0XZ: [ 0. ] #angle in XZ plane (degrees)
28  Theta0YZ: [ 0. ] #angle in YZ plane (degrees)
29  SigmaThetaXZ: [ 0. ] #in degrees
30  SigmaThetaYZ: [ 0. ] #in degrees
31  AngleDist: "Gaussian" # 0 - uniform, 1 - gaussian
32 }
33 
34 process_name:processA
35 source: {
36  module_type: EmptyEvent
37  maxEvents: 1000
38 }
39 services: {
40  message : {
41  debugModules : ["*"]
42  suppressInfo : []
43  destinations : {
44  LogToConsole : {
45  type : "cout"
46  threshold : "DEBUG"
47  categories : {
48  default : { limit : 50 }
49  }
50  }
51  }
52  }
53  TFileService :
54  {
55  fileName : "testlarg4.root"
56  }
57 
58  DetectorHolder: {}
59  ActionHolder: {}
60  RandomNumberGenerator: {}
61  NuRandomService:{service_type: "NuRandomService"
62  endOfJobSummary: true
63  policy: "random"
64 }
65 
66  PhysicsListHolder: {}
67  PhysicsList: {
68  PhysicsListName: "FTFP_BERT"
69  DumpList: false
70  enableCerenkov: false
71  enableScintillation: false
72  ScintillationByParticleType: false
73  enableAbsorption: false
74  enableRayleigh: false
75  enableMieHG: false
76  enableBoundary: false
77  enableWLS: false
78 }
79 
80  // Detector(s) for the simulation
81  LArG4Detector :
82  {
83  category: "world"
84  gdmlFileName_ : "lArDet_split.gdml"
85  }
86 
87 // writeGdml: {
88 // name: "writeGdml"
89 // gdmlFileName:"output.gdml"
90 // }
91 
92  ExampleGeneralAction: {
93  name: "exampleGeneral"
94  }
95 MCTruthEventAction: {service_type: "MCTruthEventActionService"}
96 ParticleListAction: {service_type: "ParticleListActionService"}
97 }
98 
99 outputs: {
100 out1: {
101  module_type: RootOutput
102  fileName: "Testingout.root"
103  }
104 }
105 
106 physics: {
107  producers: {
108  generator: @local::standard_singlep
109  larg4Main: @local::standard_larg4
110  }
111  analyzers: {
112  CheckSimEnergyDeposit: { module_type: CheckSimEnergyDeposit
113  hist_dir: "HistoDir"
114  }
115  CheckMCParticle: { module_type: CheckMCParticle
116  hist_dir: "HistoDir2"
117  }
118  CheckAuxDetHit: { module_type: CheckAuxDetHit
119  hist_dir: "HistoDir3"
120  }
121 
122 }
123 
124  path1: [ generator,larg4Main ]
125  stream1: [ out1,CheckSimEnergyDeposit,CheckMCParticle,CheckAuxDetHit]
126 
127  trigger_paths: [ path1 ]
128  end_paths: [ stream1 ]
129 }