Validates positions from the MUX module based on specified ranges. More...
#include <TMUXPositionValidator.h>
Public Member Functions | |
| TMUXPositionValidator () | |
| Constructor. | |
| ~TMUXPositionValidator () override | |
| Destructor. | |
| void | Init (TEventCollection *col) override |
| Initializes the validator by setting up input and output collections. | |
| void | Process () override |
| Processes input data, validates positions, and stores the results. | |
Private Member Functions | |
| TMUXPositionValidator (const TMUXPositionValidator &rhs)=delete | |
| ClassDefOverride (TMUXPositionValidator, 2) | |
| ROOT class definition macro. | |
| TMUXPositionValidator & | operator= (const TMUXPositionValidator &rhs)=delete |
Private Attributes | |
| TClonesArray ** | fInData |
| ! Pointer to the input data collection. | |
| TString | fInputColName |
| Name of the input collection. | |
| TClonesArray * | fOutData |
| ! Pointer to the output data collection. | |
| TString | fOutputColName |
| Name of the output collection. | |
| std::vector< Double_t > | fValidPositionRange |
| Range of valid positions for validation. | |
Validates positions from the MUX module based on specified ranges.
This class is designed to work with the TMUX module in a daisy-chain configuration, separating data from different modules based on position information.
Definition at line 40 of file TMUXPositionValidator.h.
| art::crib::TMUXPositionValidator::TMUXPositionValidator | ( | ) |
Constructor.
The constructor initializes member variables and registers input/output collections as well as the ValidPositionRange parameter. The default position range is set to [0.0, 0.0], which effectively disables validation unless explicitly configured.
Definition at line 27 of file TMUXPositionValidator.cc.
|
override |
Destructor.
The destructor releases any allocated resources, specifically deallocating the fOutData collection to prevent memory leaks.
Definition at line 45 of file TMUXPositionValidator.cc.
|
privatedelete |
|
private |
ROOT class definition macro.
|
override |
Initializes the validator by setting up input and output collections.
| col | A pointer to the TEventCollection used for data management. |
This method initializes the processor by:
col).fValidPositionRange).If the position range parameter is invalid (e.g., incorrect size or min > max), the processor enters an error state and halts further processing.
Definition at line 60 of file TMUXPositionValidator.cc.
|
privatedelete |
|
override |
Processes input data, validates positions, and stores the results.
The Process method validates each entry in the input collection against the configured position range. Entries with positions (P1) within the range are copied to the output collection, while others are ignored.
Processing steps:
P1) of each entry against the range.Any invalid or missing data is skipped without affecting the remaining entries.
Definition at line 104 of file TMUXPositionValidator.cc.
|
private |
! Pointer to the input data collection.
Definition at line 66 of file TMUXPositionValidator.h.
|
private |
Name of the input collection.
Definition at line 64 of file TMUXPositionValidator.h.
|
private |
! Pointer to the output data collection.
Definition at line 67 of file TMUXPositionValidator.h.
|
private |
Name of the output collection.
Definition at line 65 of file TMUXPositionValidator.h.
|
private |
Range of valid positions for validation.
Definition at line 69 of file TMUXPositionValidator.h.