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