|
| KLMStripEfficiencyCollectorModule () |
| Constructor.
|
|
| ~KLMStripEfficiencyCollectorModule () |
| Destructor.
|
|
void | prepare () override |
| Initializer.
|
|
void | finish () override |
| Finish data processing.
|
|
void | collect () override |
| This method is called for each event.
|
|
void | startRun () override |
| This method is called at the beginning of the run.
|
|
void | closeRun () override |
| This method is called at the end of run.
|
|
void | initialize () final |
| Set up a default RunRange object in datastore and call prepare()
|
|
void | event () final |
| Check current experiment and run and update if needed, fill into RunRange and collect()
|
|
void | beginRun () final |
| Reset the m_runCollectOnRun flag, if necessary, to begin collection again. More...
|
|
void | endRun () final |
| Write the current collector objects to a file and clear their memory.
|
|
void | terminate () final |
| Write the final objects to the file.
|
|
void | defineHisto () final |
| Runs due to HistoManager, allows us to discover the correct file.
|
|
template<class T > |
void | registerObject (std::string name, T *obj) |
| Register object with a name, takes ownership, do not access the pointer beyond prepare()
|
|
template<class T > |
T * | getObjectPtr (std::string name) |
| Calls the CalibObjManager to get the requested stored collector data.
|
|
virtual std::vector< std::string > | getFileNames (bool outputFiles) |
| Return a list of output filenames for this modules. More...
|
|
const std::string & | getName () const |
| Returns the name of the module. More...
|
|
const std::string & | getType () const |
| Returns the type of the module (i.e. More...
|
|
const std::string & | getPackage () const |
| Returns the package this module is in.
|
|
const std::string & | getDescription () const |
| Returns the description of the module.
|
|
void | setName (const std::string &name) |
| Set the name of the module. More...
|
|
void | setPropertyFlags (unsigned int propertyFlags) |
| Sets the flags for the module properties. More...
|
|
LogConfig & | getLogConfig () |
| Returns the log system configuration.
|
|
void | setLogConfig (const LogConfig &logConfig) |
| Set the log system configuration.
|
|
void | setLogLevel (int logLevel) |
| Configure the log level.
|
|
void | setDebugLevel (int debugLevel) |
| Configure the debug messaging level.
|
|
void | setAbortLevel (int abortLevel) |
| Configure the abort log level.
|
|
void | setLogInfo (int logLevel, unsigned int logInfo) |
| Configure the printed log information for the given level. More...
|
|
void | if_value (const std::string &expression, const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End) |
| Add a condition to the module. More...
|
|
void | if_false (const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End) |
| A simplified version to add a condition to the module. More...
|
|
void | if_true (const std::shared_ptr< Path > &path, EAfterConditionPath afterConditionPath=EAfterConditionPath::c_End) |
| A simplified version to set the condition of the module. More...
|
|
bool | hasCondition () const |
| Returns true if at least one condition was set for the module.
|
|
const ModuleCondition * | getCondition () const |
| Return a pointer to the first condition (or nullptr, if none was set)
|
|
const std::vector< ModuleCondition > & | getAllConditions () const |
| Return all set conditions for this module.
|
|
bool | evalCondition () const |
| If at least one condition was set, it is evaluated and true returned if at least one condition returns true. More...
|
|
std::shared_ptr< Path > | getConditionPath () const |
| Returns the path of the last true condition (if there is at least one, else reaturn a null pointer). More...
|
|
Module::EAfterConditionPath | getAfterConditionPath () const |
| What to do after the conditional path is finished. More...
|
|
std::vector< std::shared_ptr< Path > > | getAllConditionPaths () const |
| Return all condition paths currently set (no matter if the condition is true or not).
|
|
bool | hasProperties (unsigned int propertyFlags) const |
| Returns true if all specified property flags are available in this module. More...
|
|
bool | hasUnsetForcedParams () const |
| Returns true and prints error message if the module has unset parameters which the user has to set in the steering file.
|
|
const ModuleParamList & | getParamList () const |
| Return module param list.
|
|
template<typename T > |
ModuleParam< T > & | getParam (const std::string &name) const |
| Returns a reference to a parameter. More...
|
|
bool | hasReturnValue () const |
| Return true if this module has a valid return value set.
|
|
int | getReturnValue () const |
| Return the return value set by this module. More...
|
|
std::shared_ptr< PathElement > | clone () const override |
| Create an independent copy of this module. More...
|
|
std::shared_ptr< boost::python::list > | getParamInfoListPython () const |
| Returns a python list of all parameters. More...
|
|
|
virtual void | inDefineHisto () |
| Replacement for defineHisto(). Do anything you would normally do in defineHisto here.
|
|
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.
|
|
|
std::string | m_MuonListName |
| Muon list name.
|
|
double | m_AllowedDistance1D |
| Maximal distance in the units of strip number from ExtHit to matching KLMDigit.
|
|
int | m_MinimalMatchingDigits |
| Minimal number of matching digits.
|
|
int | m_MinimalMatchingDigitsOuterLayers |
| Minimal number of matching digits in outer layers.
|
|
double | m_MinimalMomentumNoOuterLayers |
| Minimal momentum in case there are no hits in outer layers.
|
|
bool | m_RemoveUnusedMuons |
| Whether to remove unused muons.
|
|
bool | m_IgnoreBackwardPropagation |
| Whether to ignore ExtHits with backward propagation.
|
|
DBObjPtr< KLMChannelStatus > | m_ChannelStatus |
| Channel status.
|
|
StoreArray< KLMDigit > | m_Digits |
| KLM digits.
|
|
StoreArray< Track > | m_tracks |
| Tracks.
|
|
StoreArray< ExtHit > | m_extHits |
| ExtHits.
|
|
StoreObjPtr< ParticleList > | m_MuonList |
| Muons.
|
|
const KLMElementNumbers * | m_ElementNumbers |
| Element numbers.
|
|
const EKLMElementNumbers * | m_eklmElementNumbers |
| EKLM element numbers.
|
|
const bklm::GeometryPar * | m_GeometryBKLM |
| BKLM geometry.
|
|
const KLMPlaneArrayIndex * | m_PlaneArrayIndex |
| Plane array index.
|
|
bool | m_Debug |
| Debug mode.
|
|
std::string | m_MatchingFileName |
| Matching data file name.
|
|
TFile * | m_MatchingFile |
| Matching data file.
|
|
TTree * | m_MatchingTree |
| Matching data tree.
|
|
struct HitData | m_MatchingHitData |
| Matching hit data.
|
|
int | m_MatchedStrip |
| Matched strip.
|
|
std::string | m_granularity |
| Granularity of data collection = run|all(= no granularity, exp,run=-1,-1)
|
|
int | m_maxEventsPerRun |
| Maximum number of events to be collected at the start of each run (-1 = no maximum)
|
|
float | m_preScale |
| Prescale module parameter, this fraction of events will have collect() run on them [0.0 -> 1.0].
|
|
StoreObjPtr< EventMetaData > | m_evtMetaData |
| Required input for EventMetaData.
|
|
bool | m_runCollectOnRun = true |
| Whether or not we will run the collect() at all this run, basically skips the event() function if false.
|
|
std::map< Calibration::ExpRun, int > | m_expRunEvents |
| How many events processed for each ExpRun so far, stops counting up once max is hit Only used/incremented if m_maxEventsPerRun > -1.
|
|
int * | m_eventsCollectedInRun |
| Will point at correct value in m_expRunEvents.
|
|
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.
|
|
Module KLMStripEfficiencyCollectorModule.
Module for collecting data for track matching efficiency.
Definition at line 49 of file KLMStripEfficiencyCollectorModule.h.
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.