|
LDMX Software
|
Fits a pulse shape to each RawSiStripHit and produces FittedSiStripHits. More...
#include <StripFitProcessor.h>
Public Member Functions | |
| StripFitProcessor (const std::string &name, framework::Process &process) | |
| void | configure (framework::config::Parameters ¶meters) override |
| Callback for the EventProcessor to configure itself from the given set of parameters. | |
| void | onProcessStart () override |
| Callback for the EventProcessor to take any necessary action when the processing of events starts, such as creating histograms. | |
| void | produce (framework::Event &event) override |
| Process the event and put new data products into it. | |
Public Member Functions inherited from framework::Producer | |
| Producer (const std::string &name, Process &process) | |
| Class constructor. | |
| virtual void | process (Event &event) final |
| Processing an event for a Producer is calling produce. | |
Public Member Functions inherited from framework::EventProcessor | |
| DECLARE_FACTORY (EventProcessor, EventProcessor *, const std::string &, Process &) | |
| declare that we have a factory for this class | |
| EventProcessor (const std::string &name, Process &process) | |
| Class constructor. | |
| virtual | ~EventProcessor ()=default |
| Class destructor. | |
| virtual void | beforeNewRun (ldmx::RunHeader &run_header) |
| Callback for Producers to add parameters to the run header before conditions are initialized. | |
| virtual void | onNewRun (const ldmx::RunHeader &run_header) |
| Callback for the EventProcessor to take any necessary action when the run being processed changes. | |
| virtual void | onFileOpen (EventFile &event_file) |
| Callback for the EventProcessor to take any necessary action when a new event input ROOT file is opened. | |
| virtual void | onFileClose (EventFile &event_file) |
| Callback for the EventProcessor to take any necessary action when a event input ROOT file is closed. | |
| virtual void | onProcessEnd () |
| Callback for the EventProcessor to take any necessary action when the processing of events finishes, such as calculating job-summary quantities. | |
| template<class T > | |
| const T & | getCondition (const std::string &condition_name) |
| Access a conditions object for the current event. | |
| TDirectory * | getHistoDirectory () |
| Access/create a directory in the histogram file for this event processor to create histograms and analysis tuples. | |
| void | setStorageHint (framework::StorageControl::Hint hint) |
| Mark the current event as having the given storage control hint from this module_. | |
| void | setStorageHint (framework::StorageControl::Hint hint, const std::string &purposeString) |
| Mark the current event as having the given storage control hint from this module and the given purpose string. | |
| int | getLogFrequency () const |
| Get the current logging frequency from the process. | |
| int | getRunNumber () const |
| Get the run number from the process. | |
| std::string | getName () const |
| Get the processor name. | |
| void | createHistograms (const std::vector< framework::config::Parameters > &histos) |
| Internal function which is used to create histograms passed from the python configuration @parma histos vector of Parameters that configure histograms to create. | |
Private Attributes | |
| std::string | in_collection_ {"RawSiStripHits"} |
| std::string | in_pass_ {""} |
| std::string | out_collection_ {"FittedSiStripHits"} |
| double | t_scan_min_ns_ {-50.0} |
| double | t_scan_max_ns_ {150.0} |
| double | t_scan_step_ns_ {1.0} |
| double | max_chi2_ndf_ {-1.0} |
| std::unique_ptr< tracking::digitization::PulseShape > | pulse_shape_ |
| std::unique_ptr< tracking::digitization::StripPulseFitter > | fitter_ |
Additional Inherited Members | |
Protected Member Functions inherited from framework::EventProcessor | |
| void | abortEvent () |
| Abort the event immediately. | |
Protected Attributes inherited from framework::EventProcessor | |
| HistogramPool | histograms_ |
| helper object for making and filling histograms | |
| NtupleManager & | ntuple_ {NtupleManager::getInstance()} |
| Manager for any ntuples. | |
| logging::logger | the_log_ |
| The logger for this EventProcessor. | |
Fits a pulse shape to each RawSiStripHit and produces FittedSiStripHits.
This processor is intended to run on both real and simulated data; it requires only the RawSiStripHit collection and knowledge of the readout pulse shape.
Input : collection of ldmx::RawSiStripHit Output : collection of ldmx::FittedSiStripHit
in_collection Name of the RawSiStripHit input collection. in_pass Pass name for the input collection. out_collection Name of the FittedSiStripHit output collection. pulse_shape "CRRC" (default) or "FourPole". tp Peaking time tp [ns] (default 45). tp2 Second time constant [ns] for FourPole (default 10). t0_offset_ns Time of sample 0 relative to the hit frame [ns] (default 0). sampling_interval_ns Sample spacing [ns] (default 25). pedestal_adc Per-sample pedestal [ADC counts] (default 0). noise_sigma_adc Per-sample noise RMS [ADC counts] used for χ² (default 5). t_scan_min_ns Lower bound of the hit-time scan [ns] (default −50). t_scan_max_ns Upper bound of the hit-time scan [ns] (default 150). t_scan_step_ns Step size of the coarse scan [ns] (default 1). max_chi2_ndf If > 0, discard fits with χ²/ndf above this value (default −1 = off).
Definition at line 43 of file StripFitProcessor.h.
| tracking::reco::StripFitProcessor::StripFitProcessor | ( | const std::string & | name, |
| framework::Process & | process ) |
Definition at line 10 of file StripFitProcessor.cxx.
|
overridevirtual |
Callback for the EventProcessor to configure itself from the given set of parameters.
The parameters a processor has access to are the member variables of the python class in the sequence that has class_name equal to the EventProcessor class name.
For an example, look at MyProcessor.
| parameters | Parameters for configuration. |
Reimplemented from framework::EventProcessor.
Definition at line 14 of file StripFitProcessor.cxx.
References framework::config::Parameters::get().
|
overridevirtual |
Callback for the EventProcessor to take any necessary action when the processing of events starts, such as creating histograms.
Reimplemented from framework::EventProcessor.
Definition at line 28 of file StripFitProcessor.cxx.
|
overridevirtual |
Process the event and put new data products into it.
| event | The Event to process. |
Implements framework::Producer.
Definition at line 47 of file StripFitProcessor.cxx.
|
private |
Definition at line 70 of file StripFitProcessor.h.
|
private |
Definition at line 56 of file StripFitProcessor.h.
|
private |
Definition at line 57 of file StripFitProcessor.h.
|
private |
Definition at line 66 of file StripFitProcessor.h.
|
private |
Definition at line 58 of file StripFitProcessor.h.
|
private |
Definition at line 69 of file StripFitProcessor.h.
|
private |
Definition at line 62 of file StripFitProcessor.h.
|
private |
Definition at line 61 of file StripFitProcessor.h.
|
private |
Definition at line 63 of file StripFitProcessor.h.