test_MinimalLArTPC.fcl
Go to the documentation of this file.
1 #no experiment specific configurations because SingleGen is detector agnostic
2 
3 #include "simulationservices.fcl"
4 #include "spacecharge.fcl"
5 #include "larproperties.fcl"
6 ######include "detectorproperties.fcl"
7 #include "detectorclocks.fcl"
8 #include "larfft.fcl"
9 
10 standard_singlep:
11 {
12  module_type: "SingleGen"
13  ParticleSelectionMode: "all" # 0 = use full list, 1 = randomly select a single listed particle
14  PadOutVectors: false # false: require all vectors to be same length
15  # true: pad out if a vector is size one
16  PDG: [ 13 ] # list of pdg codes for particles to make
17  P0: [ 6. ] # central value of momentum for each particle
18  SigmaP: [ 0. ] # variation about the central value
19  PDist: "Gaussian" # 0 - uniform, 1 - gaussian distribution
20  X0: [ 0. ] # in cm in world coordinates, ie x = 0 is at the wire plane
21  # and increases away from the wire plane
22  Y0: [ 0. ] # in cm in world coordinates, ie y = 0 is at the center of the TPC
23  Z0: [ -130. ] # in cm in world coordinates, ie z = 0 is at the upstream edge of
24  # the TPC and increases with the beam direction
25  T0: [ 0. ] # starting time
26  SigmaX: [ 0. ] # variation in the starting x position
27  SigmaY: [ 0. ] # variation in the starting y position
28  SigmaZ: [ 0.0 ] # variation in the starting z position
29  SigmaT: [ 0.0 ] # variation in the starting time
30  PosDist: "uniform" # 0 - uniform, 1 - gaussian
31  TDist: "uniform" # 0 - uniform, 1 - gaussian
32  Theta0XZ: [ 0. ] #angle in XZ plane (degrees)
33  Theta0YZ: [ 0. ] #angle in YZ plane (degrees)
34  SigmaThetaXZ: [ 0. ] #in degrees
35  SigmaThetaYZ: [ 0. ] #in degrees
36  AngleDist: "Gaussian" # 0 - uniform, 1 - gaussian
37 }
38 
39 process_name:processA
40 
41 services:
42 {
43  message : {
44  debugModules : ["*"]
45  suppressInfo : []
46  destinations : {
47  LogToConsole : {
48  type : "cout"
49  threshold : "DEBUG"
50  categories : {
51  default : { limit : 50 }
52  }
53  }
54  }
55  }
56 
57  TFileService : { fileName: "testlarg4.root" }
58  RandomNumberGenerator: {}
59  NuRandomService:{
60  service_type: "NuRandomService"
61  endOfJobSummary: true
62  policy: "random"
63  }
64 
65  DetectorHolder: {}
66  ActionHolder: {}
67  PhysicsListHolder: {}
68  PhysicsList: {
69  PhysicsListName: "FTFP_BERT"
70  DumpList: false
71  enableCerenkov: false
72  enableScintillation: false
73  ScintillationByParticleType: false
74  enableAbsorption: false
75  enableRayleigh: false
76  enableMieHG: false
77  enableBoundary: false
78  enableWLS: false
79  }
80  LArG4Detector :
81  {
82  category: "world"
83  gdmlFileName_ : "MinimalLArTPCdetector_nowires.gdml"
84  }
85 
86  MCTruthEventAction: {service_type: "MCTruthEventActionService"}
87  ParticleListAction: {service_type: "ParticleListActionService"}
88 
89  Geometry: {
90  Name: "MinimalLArTPCdetector_g4"
91  GDML: "MinimalLArTPCdetector_g4.gdml"
92  ROOT: "MinimalLArTPCdetector_g4.gdml"
93  SurfaceY: 0
94  DisableWiresInG4: true
95  SortingParameters: {}
96  service_type: "Geometry"
97  }
98 
99  ExptGeoHelperInterface: {
100  service_provider : StandardGeometryHelper
101  service_type: "ExptGeoHelperInterface"
102  }
103 
104  GeometryConfigurationWriter: {}
105 
106  # -- in larsim
107  LArG4Parameters: @local::standard_largeantparameters
108  # -- in larevt
109  SpaceCharge: @local::standard_spacecharge
110  # -- following 3 are in lardataalg
111  LArPropertiesService: @local::standard_properties
112  DetectorPropertiesService: {
113  service_provider: "DetectorPropertiesServiceStandard"
114 
115  # Drift properties
116 
117  SternheimerA: 0.1956 # Ar Sternheimer parameter a.
118  SternheimerK: 3.0000 # Ar Sternheimer parameter k.
119  SternheimerX0: 0.2000 # Ar Sternheimer parameter x0.
120  SternheimerX1: 3.0000 # Ar Sternheimer parameter x0.
121  SternheimerCbar: 5.2146 # Ar Sternheimer parameter Cbar.
122 
123  DriftVelFudgeFactor: 1.
124 
125  ElectronsToADC: 1.208041e-3 # in ADC/e; 6241.5 electrons = 1fC = 7.54 ADC counts for ArgoNeuT
126  NumberTimeSamples: 2048 # ticks of the clock per readout frame
127  ReadOutWindowSize: 2048
128 
129  SimpleBoundaryProcess: true #enable opticalBoundaryProcessSimple instead of G4 default
130 
131 Temperature: 87 # in K
132 Electronlifetime: 3.0e3 # in us
133 Efield: [0.5,4.0,0.0] # in kV/cm
134 ElectronsToADC: 1.02534e-03 #
135 NumberTimeSamples: 1667
136 ReadOutWindowSize: 1667
137 #TimeOffsetX: 0.
138 TimeOffsetY: 0.
139 TimeOffsetZ: 0.
140 
141  }
142  DetectorClocksService: @local::standard_detectorclocks
143 
144  LArFFT: @local::standard_larfft
145 }
146 
147 source: {
148  module_type: EmptyEvent
149  maxEvents: 10
150 }
151 
152 physics:
153 {
154 
155  producers:
156  {
157  generator: @local::standard_singlep
158  larg4Main: {
159  module_type: larg4Main
160  enableVisualization: false
161  macroPath: ".:./macros"
162  visMacro: "vis.mac"
163  }
164  elecDrift: {
165  module_type: "SimDriftElectrons"
166  SimulationLabel: "larg4Main:LArG4DetectorServicevolTPCActive"
167  StoreDriftedElectronClusters: true
168  }
169  simWire: {
170  module_type: "SimWire"
171  DriftEModuleLabel: "elecDrift"
172  #NoiseFact: 0.0132 # Noise Scale
173  NoiseFact: 132. # Noise Scale
174  #NoiseWidth: 62.4 # Exponential Noise width (kHz)
175  NoiseWidth: 62.4 # Exponential Noise width (kHz)
176  LowCutoff: 7.5 # Low frequency filter cutoff (kHz)
177  FieldBins: 75
178  Col3DCorrection: 2.5
179  Ind3DCorrection: 1.5
180  ColFieldRespAmp: 0.0354
181  IndFieldRespAmp: 0.018
182  ShapeTimeConst: [ 3000., 900. ]
183  CompressionType: "none"
184  }
185  }
186  analyzers:
187  {
188  CheckSimEnergyDeposit: {
189  module_type: CheckSimEnergyDeposit
190  hist_dir: "HistoDir"
191  }
192  SimDriftedElectronClusterAna: {
193  module_type: SimDriftedElectronClusterAna
194  EDepModuleLabel: "elecDrift"
195  }
196  }
197 
198  path1: [ generator,larg4Main,elecDrift,simWire ]
199  stream1: [ out1,CheckSimEnergyDeposit,SimDriftedElectronClusterAna ]
200  trigger_paths: [ path1 ]
201  end_paths: [ stream1 ]
202 }
203 
204 outputs:
205 {
206  out1:
207  {
208  module_type: RootOutput
209  fileName: "Testingout.root"
210  }
211 }