|
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.
|
|
|
double | m_threshold |
| Local maximum threshold after splitting.
|
|
double | m_expConstant |
| Constant a from exp(-a*dist/RM), 1.5 to 2.5.
|
|
int | m_maxIterations |
| Maximum number of iterations.
|
|
double | m_shiftTolerance |
| Tolerance level for centroid shifts.
|
|
double | m_minimumSharedEnergy |
| Minimum shared energy.
|
|
int | m_maxSplits |
| Maximum number of splits.
|
|
const double | c_molierRadius |
| Constant RM (Molier Radius) from exp(-a*dist/RM), http://pdg.lbl.gov/2009/AtomicNuclearProperties/HTML_PAGES/141.html. More...
|
|
double | m_cutDigitEnergyForEnergy |
| Minimum digit energy to be included in the shower energy calculation.
|
|
double | m_cutDigitTimeResidualForEnergy |
| Maximum time residual to be included in the shower energy calculation.
|
|
int | m_useOptimalNumberOfDigitsForEnergy |
| Optimize the number of neighbours for energy calculations.
|
|
DBObjPtr< ECLnOptimal > | m_eclNOptimal |
| nOptimal payload
|
|
TH2F | m_nOptimal2D |
| 2D hist of nOptimal for Ebin vs groupID
|
|
std::vector< int > | m_groupNumber |
| group number for each crystal
|
|
const int | m_nLeakReg = 3 |
| 3 ECL regions: 0 = forward, 1 = barrel, 2 = backward
|
|
int | m_nEnergyBins = 0 |
| number of energies bins in nOptimal payload
|
|
std::vector< std::vector< float > > | m_eBoundaries |
| energy boundaries each region
|
|
std::string | m_positionMethod |
| Position calculation: lilo or linear.
|
|
double | m_liloParameterA |
| lin-log parameter A
|
|
double | m_liloParameterB |
| lin-log parameter B
|
|
double | m_liloParameterC |
| lin-log parameter C
|
|
std::vector< double > | m_liloParameters |
| lin-log parameters A, B, and C
|
|
int | m_fullBkgdCount |
| Number of expected background digits at full background, FIXME: move to database.
|
|
std::vector< int > | m_StoreArrPosition |
| vector (ECLElementNumbers::c_NCrystals + 1 entries) with cell id to store array positions
|
|
std::vector< int > | m_StoreArrPositionLM |
| vector (ECLElementNumbers::c_NCrystals + 1 entries) with cell id to store array positions for LM
|
|
std::vector< int > | m_cellIdInCR |
| list with all cellid of this connected region
|
|
ECL::ECLNeighbours * | m_NeighbourMap9 {nullptr} |
| Neighbour maps. More...
|
|
ECL::ECLNeighbours * | m_NeighbourMap21 {nullptr} |
| 5x5 neighbours excluding corners = 21
|
|
StoreArray< ECLCalDigit > | m_eclCalDigits |
| Store array: ECLCalDigit.
|
|
StoreArray< ECLConnectedRegion > | m_eclConnectedRegions |
| Store array: ECLConnectedRegion.
|
|
StoreArray< ECLShower > | m_eclShowers |
| Store array: ECLShower.
|
|
StoreArray< ECLLocalMaximum > | m_eclLocalMaximums |
| Store array: ECLLocalMaximum.
|
|
StoreObjPtr< EventLevelClusteringInfo > | m_eventLevelClusteringInfo |
| Store object pointer: EventLevelClusteringInfo.
|
|
ECL::ECLGeometryPar * | m_geom {nullptr} |
| Geometry.
|
|
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.
|
|
Class to perform the shower correction.
Definition at line 45 of file ECLSplitterN1Module.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.
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.
See https://confluence.desy.de/display/BI/Software+ModCondTut or ModuleCondition for a description of the syntax.
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.
- Parameters
-
expression | The expression of the condition. |
path | Shared pointer to the Path which will be executed if the condition is evaluated to true. |
afterConditionPath | What to do after executing 'path'. |
Definition at line 79 of file Module.cc.
void setParamPython |
( |
const std::string & |
name, |
|
|
const boost::python::object & |
pyObj |
|
) |
| |
|
privateinherited |
Implements a method for setting boost::python objects.
The method supports the following types: list, dict, int, double, string, bool The conversion of the python object to the C++ type and the final storage of the parameter value is done in the ModuleParam class.
- Parameters
-
name | The unique name of the parameter. |
pyObj | The object which should be converted and stored as the parameter value. |
Definition at line 234 of file Module.cc.