|
virtual void | def_initialize () |
| Wrappers to make the methods without "def_" prefix callable from Python. More...
|
|
virtual void | def_beginRun () |
| Wrapper method for the virtual function beginRun() that has the implementation to be used in a call from Python.
|
|
virtual void | def_event () |
| Wrapper method for the virtual function event() that has the implementation to be used in a call from Python.
|
|
virtual void | def_endRun () |
| This method can receive that the current run ends as a call from the Python side. More...
|
|
virtual void | def_terminate () |
| Wrapper method for the virtual function terminate() that has the implementation to be used in a call from Python.
|
|
void | setDescription (const std::string &description) |
| Sets the description of the module. More...
|
|
void | setType (const std::string &type) |
| Set the module type. More...
|
|
template<typename T > |
void | addParam (const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue) |
| Adds a new parameter to the module. More...
|
|
template<typename T > |
void | addParam (const std::string &name, T ¶mVariable, const std::string &description) |
| Adds a new enforced parameter to the module. More...
|
|
void | setReturnValue (int value) |
| Sets the return value for this module as integer. More...
|
|
void | setReturnValue (bool value) |
| Sets the return value for this module as bool. More...
|
|
void | setParamList (const ModuleParamList ¶ms) |
| Replace existing parameter list.
|
|
|
const PXD::SensorInfo & | getInfo (VxdID sensorID) const |
| This is a shortcut to getting PXD::SensorInfo from the GeoCache. More...
|
|
double | getSensorThickness (VxdID sensorID) const |
| Return thickness of the sensor with the given sensor ID.
|
|
double | getSensorMass (VxdID sensorID) const |
| Return mass of the sensor with the given sensor ID.
|
|
double | getSensorArea (VxdID sensorID) const |
| Return area of the sensor with the given sensor ID.
|
|
const ROOT::Math::XYZVector & | pointToGlobal (VxdID sensorID, const ROOT::Math::XYZVector &local) |
| Convert local sensor coordinates to global.
|
|
const ROOT::Math::XYZVector & | vectorToGlobal (VxdID sensorID, const ROOT::Math::XYZVector &local) |
| Convert local vector coordinates to global.
|
|
int | getNumSensors (int layerNum) |
| Get number of sensors in a layer.
|
|
int | getTotalSensors () |
| Get total number of sensors.
|
|
std::list< ModulePtr > | getModules () const override |
| no submodules, return empty list
|
|
std::string | getPathString () const override |
| return the module name.
|
|
void | setParamPython (const std::string &name, const boost::python::object &pyObj) |
| Implements a method for setting boost::python objects. More...
|
|
void | setParamPythonDict (const boost::python::dict &dictionary) |
| Implements a method for reading the parameter values from a boost::python dictionary. More...
|
|
|
const double | c_densitySi = 2.3290 * Unit::g_cm3 |
| Density of crystalline Silicon.
|
|
const double | c_smy = 1.0e7 * Unit::s |
| Seconds in snowmass year.
|
|
const std::string | c_niel_neutronFile = "/vxd/data/neutrons.csv" |
| NIEL-correction file for neutrons.
|
|
const std::string | c_niel_protonFile = "/vxd/data/protons.csv" |
| NIEL-correction file for protons.
|
|
const std::string | c_niel_pionFile = "/vxd/data/pions.csv" |
| NIEL-correction file for pions.
|
|
const std::string | c_niel_electronFile = "/vxd/data/electrons.csv" |
| NIEL-correction file for electrons.
|
|
std::string | m_outputDirectoryName |
| Path to directory where output data will be stored.
|
|
std::string | m_storeFileMetaDataName |
| Name of the persistent FileMetaData object.
|
|
std::string | m_storeBgMetaDataName |
| Name of the persistent BackgroundMetaDta object.
|
|
std::string | m_storeMCParticlesName |
| MCParticles StoreArray name.
|
|
std::string | m_storeSimHitsName |
| PXDSimHits StoreArray name.
|
|
std::string | m_storeTrueHitsName |
| PXDTrueHits StoreArray name.
|
|
std::string | m_relParticlesTrueHitsName |
| MCParticlesToPXDTrueHits RelationArray name.
|
|
std::string | m_storeDigitsName |
| PXDDigits StoreArray name.
|
|
std::string | m_relDigitsMCParticlesName |
| StoreArray name of PXDDigits to MCParticles relation.
|
|
std::string | m_relDigitsTrueHitsName |
| StoreArray name of PXDDigits to PXDTrueHits relation.
|
|
std::string | m_storeClustersName |
| PXDClusters StoreArray name.
|
|
std::string | m_relClusterDigitName |
| PXDClustersToPXDDigits RelationArray name.
|
|
std::string | m_relTrueHitsSimHitsName |
| PXDTrueHitsToPXDSimHits RelationArray name.
|
|
std::string | m_storeEnergyDepositsName |
| PXDEnergyDepositEvents StoreArray name.
|
|
std::string | m_storeNeutronFluxesName |
| PXDNeutronFluxEvents StoreArray name.
|
|
std::string | m_storeOccupancyEventsName |
| PXDOccupancyEvents StoreArray name.
|
|
unsigned short | m_doseReportingLevel |
| 0 - no data, 1 - summary only, 2 - ntuple
|
|
unsigned short | m_nfluxReportingLevel |
| 0 - no data, 1 - summary only, 2 - ntuple
|
|
unsigned short | m_occupancyReportingLevel |
| 0 - no data, 1 - summary only, 2 - ntuple
|
|
std::string | m_componentName |
| Name of the current bg component.
|
|
double | m_componentTime |
| Time of current component.
|
|
double | m_integrationTime |
| Integration time of PXD.
|
|
std::map< VxdID, SensorData > | m_sensorData |
| Struct to hold sensor-wise background data.
|
|
std::unique_ptr< TNiel > | m_nielNeutrons |
| Pointer to Niel table for neutrons.
|
|
std::unique_ptr< TNiel > | m_nielProtons |
| Pointer to Niel table for protons.
|
|
std::unique_ptr< TNiel > | m_nielPions |
| Pointer to Niel table for pions.
|
|
std::unique_ptr< TNiel > | m_nielElectrons |
| Pointer to Niel table for electrons.
|
|
std::string | m_name |
| The name of the module, saved as a string (user-modifiable)
|
|
std::string | m_type |
| The type of the module, saved as a string.
|
|
std::string | m_package |
| Package this module is found in (may be empty).
|
|
std::string | m_description |
| The description of the module.
|
|
unsigned int | m_propertyFlags |
| The properties of the module as bitwise or (with |) of EModulePropFlags.
|
|
LogConfig | m_logConfig |
| The log system configuration of the module.
|
|
ModuleParamList | m_moduleParamList |
| List storing and managing all parameter of the module.
|
|
bool | m_hasReturnValue |
| True, if the return value is set.
|
|
int | m_returnValue |
| The return value.
|
|
std::vector< ModuleCondition > | m_conditions |
| Module condition, only non-null if set.
|
|
PXD Background module.
This module collects data from Belle II background simulation and produces a report on:
- PXD radiation exposure: Deposited energy per unit mass of material.
- PXD neutron flux: flux of non-ionizing damage normalized to 1 MeV neutron in perpendicular direction.
- Occupancy:
- total : pixels fired per unit area and time
- occupancy distribution.
For each item, we tabulate depending on background source and layer.
Definition at line 45 of file PXDBackgroundModule.h.
bool evalCondition |
( |
| ) |
const |
|
inherited |
If at least one condition was set, it is evaluated and true returned if at least one condition returns true.
If no condition or result value was defined, the method returns false. Otherwise, the condition is evaluated and true returned, if at least one condition returns true. To speed up the evaluation, the condition strings were already parsed in the method if_value().
- Returns
- True if at least one condition and return value exists and at least one condition expression was evaluated to true.
Definition at line 96 of file Module.cc.
virtual std::vector<std::string> getFileNames |
( |
bool |
outputFiles | ) |
|
|
inlinevirtualinherited |
Return a list of output filenames for this modules.
This will be called when basf2 is run with "--dry-run" if the module has set either the c_Input or c_Output properties.
If the parameter outputFiles
is false (for modules with c_Input) the list of input filenames should be returned (if any). If outputFiles
is true (for modules with c_Output) the list of output files should be returned (if any).
If a module has sat both properties this member is called twice, once for each property.
The module should return the actual list of requested input or produced output filenames (including handling of input/output overrides) so that the grid system can handle input/output files correctly.
This function should return the same value when called multiple times. This is especially important when taking the input/output overrides from Environment as they get consumed when obtained so the finalized list of output files should be stored for subsequent calls.
Reimplemented in RootOutputModule, StorageRootOutputModule, and RootInputModule.
Definition at line 134 of file Module.h.
A simplified version to add a condition to the module.
Please note that successive calls of this function will add more than one condition to the module. If more than one condition results in true, only the last of them will be used.
Please be careful: Avoid creating cyclic paths, e.g. by linking a condition to a path which is processed before the path where this module is located in.
It is equivalent to the if_value() method, using the expression "<1". This method is meant to be used together with the setReturnValue(bool value) method.
- Parameters
-
path | Shared pointer to the Path which will be executed if the return value is false. |
afterConditionPath | What to do after executing 'path'. |
Definition at line 85 of file Module.cc.
A simplified version to set the condition of the module.
Please note that successive calls of this function will add more than one condition to the module. If more than one condition results in true, only the last of them will be used.
Please be careful: Avoid creating cyclic paths, e.g. by linking a condition to a path which is processed before the path where this module is located in.
It is equivalent to the if_value() method, using the expression ">=1". This method is meant to be used together with the setReturnValue(bool value) method.
- Parameters
-
path | Shared pointer to the Path which will be executed if the return value is true. |
afterConditionPath | What to do after executing 'path'. |
Definition at line 90 of file Module.cc.