Class MPGDTrapezoidConstants
java.lang.Object
org.jlab.detector.geant4.v2.MPGD.trapezoid.MPGDTrapezoidConstants
- Direct Known Subclasses:
MUVTConstants, URWTConstants
Generic constants for trapezoidal MPGD-like trackers loaded from CCDB.
Concrete detectors (e.g. URWT) should extend this class and provide: - CCDB
base path - global table name - material table name
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSimple container for material parameters associated to (layer, component). thickness : material thickness (mm) sensitivity: flag or ID for sensitivity (as defined in CCDB) -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringBase CCDB path (e.g.final StringShort detector name used in volume names (e.g.protected final Map<Integer, Map<Integer, MPGDTrapezoidConstants.LayerComponentInfo>> Material structure: outer key = layer index (from CCDB column "Layer") inner key = component index (from CCDB column "Component") value = material parameters (thickness, sensitivity)doubleprotected final StringName of the global geometry table (e.g.static final Loggerprotected final StringName of the material table (e.g.intintintdoubledoubledoubledoubledoubledoubledoubledoublestatic booleandoublestatic final doublestatic final doublestatic final double -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMPGDTrapezoidConstants(String ccdbPath, String globalTableName, String materialTableName, String detectorName) -
Method Summary
Modifier and TypeMethodDescriptionvoidReads the already-loaded CCDB tables from the provider and fills geometry and material parameters.This method assumes: - global table has at least one row - material table has at least one rowRead-only access to the material structure.Loads the relevant CCDB tables into the given provider and fills this object's fields.
-
Field Details
-
LOGGER
-
VERBOSE
public static boolean VERBOSE -
ccdbPath
Base CCDB path (e.g. "/test/urwt/"). -
globalTableName
Name of the global geometry table (e.g. "urwt_global"). -
materialTableName
Name of the material table (e.g. "urwt_material_geo"). -
detectorName
Short detector name used in volume names (e.g. "uRWT"). -
NSECTORS
public int NSECTORS -
NLAYERS
public int NLAYERS -
NCOMPONENTS
public int NCOMPONENTS -
THOPEN
public double THOPEN -
THTILT
public double THTILT -
THMIN
public double THMIN -
THMAX
public double THMAX -
TGTDET
public double TGTDET -
DZ
public double DZ -
TWIDTH
public double TWIDTH -
PITCH
public double PITCH -
WIDTH
public double WIDTH -
STEREOANGLE
public double STEREOANGLE -
XENLARGEMENT
public static final double XENLARGEMENT- See Also:
-
YENLARGEMENT
public static final double YENLARGEMENT- See Also:
-
ZENLARGEMENT
public static final double ZENLARGEMENT- See Also:
-
detectorStructure
protected final Map<Integer, Map<Integer, MPGDTrapezoidConstants.LayerComponentInfo>> detectorStructureMaterial structure: outer key = layer index (from CCDB column "Layer") inner key = component index (from CCDB column "Component") value = material parameters (thickness, sensitivity)
-
-
Constructor Details
-
MPGDTrapezoidConstants
protected MPGDTrapezoidConstants(String ccdbPath, String globalTableName, String materialTableName, String detectorName) - Parameters:
ccdbPath- base CCDB path (e.g. "/test/urwt/")globalTableName- name of the global table (e.g. "urwt_global")materialTableName- name of the material table (e.g. "urwt_material_geo")
-
-
Method Details
-
getDetectorStructure
Read-only access to the material structure.- Returns:
-
load
Loads the relevant CCDB tables into the given provider and fills this object's fields.- Parameters:
cp-- Returns:
-
getConstants
Reads the already-loaded CCDB tables from the provider and fills geometry and material parameters.This method assumes: - global table has at least one row - material table has at least one row- Parameters:
cp-
-