You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding:
- downsampling of space-charge objects
- simulation of n-sectors only
- some helper functions
- weighted filling of charging-up of GEM frames for smoother potential
- set global distortions from function
inlinestaticint nMGCycle = 200; ///< number of multi grid cycle (V type)
56
57
inlinestaticint maxLoop = 7; ///< the number of tree-deep of multi grid
57
58
inlinestaticint gamma = 1; ///< number of iteration at coarsest level !TODO SET TO REASONABLE VALUE!
58
-
inlinestaticbool normalizeGridToOneSector = false; ///< the grid in phi direction is squashed from 2 Pi to (2 Pi / SECTORSPERSIDE). This can used to get the potential for phi symmetric sc density or boundary potentials
59
+
inlinestaticint normalizeGridToNSector = SECTORSPERSIDE;///< the grid in phi direction is squashed from 2 Pi to (2 Pi / SECTORSPERSIDE). This can used to get the potential for phi symmetric sc density or boundary potentials
Copy file name to clipboardExpand all lines: Detectors/TPC/spacecharge/include/TPCSpaceCharge/SpaceCharge.h
+42-16Lines changed: 42 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -204,10 +204,13 @@ class SpaceCharge
204
204
205
205
/// simulate only one sector instead of 18 per side. This makes currently only sense for the static distortions (ToDo: simplify usage)
206
206
/// phi max will be restricted to 2Pi/18 for this instance and for global instance of poisson solver
207
-
voidsetSimOneSector();
207
+
voidsetSimOneSector() { setSimNSector(1); }
208
+
209
+
/// simulate N sectors
210
+
voidsetSimNSector(constint nSectors);
208
211
209
212
/// unsetting simulation of one sector
210
-
staticvoidunsetSimOneSector();
213
+
staticvoidunsetSimNSector();
211
214
212
215
/// setting default potential (same potential for all GEM frames. The default value of 1000V are matched to distortions observed in laser data without X-Ray etc.
213
216
/// \param side side of the TPC where the potential will be set
@@ -308,10 +311,24 @@ class SpaceCharge
308
311
/// scaling the space-charge density for given stack
/// step 3: calculate the local distortions and corrections with an electric field
316
333
/// \param type calculate local corrections or local distortions: type = o2::tpc::SpaceCharge<>::Type::Distortions or o2::tpc::SpaceCharge<>::Type::Corrections
317
334
/// \param formulaStruct struct containing a method to evaluate the electric field Er, Ez, Ephi (analytical formula or by TriCubic interpolator)
0 commit comments