LDMX Software
|
Public Member Functions | |
TrackingRecoDQM (const std::string &name, framework::Process &process) | |
~TrackingRecoDQM ()=default | |
Destructor. | |
void | analyze (const framework::Event &event) override |
Process the event and make histograms or summaries. | |
void | TrackMonitoring (const std::vector< ldmx::Track > &tracks, const std::vector< ldmx::Measurement > &measurements, const std::string title, const bool &doDetail, const bool &doTruth) |
void | EfficiencyPlots (const std::vector< ldmx::Track > &tracks, const std::vector< ldmx::Measurement > &measurements, const std::string &title) |
void | TrackStateMonitoring (const ldmx::Tracks &tracks, ldmx::TrackStateType ts_type, const std::string &ts_title) |
Monitoring plots for tracks extrapolated to the ECAL Scoring plane. | |
void | configure (framework::config::Parameters ¶meters) override |
Configure the analyzer using the given user specified parameters. | |
void | onProcessEnd () override |
Callback for the EventProcessor to take any necessary action when the processing of events finishes, such as calculating job-summary quantities. | |
void | sortTracks (const std::vector< ldmx::Track > &tracks, std::vector< ldmx::Track > &uniqueTracks, std::vector< ldmx::Track > &duplicateTracks, std::vector< ldmx::Track > &fakeTracks) |
![]() | |
Analyzer (const std::string &name, Process &process) | |
Class constructor. | |
![]() | |
EventProcessor (const std::string &name, Process &process) | |
Class constructor. | |
virtual | ~EventProcessor () |
Class destructor. | |
virtual void | onNewRun (const ldmx::RunHeader &runHeader) |
Callback for the EventProcessor to take any necessary action when the run being processed changes. | |
virtual void | onFileOpen (EventFile &eventFile) |
Callback for the EventProcessor to take any necessary action when a new event input ROOT file is opened. | |
virtual void | onFileClose (EventFile &eventFile) |
Callback for the EventProcessor to take any necessary action when a event input ROOT file is closed. | |
virtual void | onProcessStart () |
Callback for the EventProcessor to take any necessary action when the processing of events starts, such as creating histograms. | |
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 | trackCollection_ {"TruthTracks"} |
std::string | truthCollection_ {"TaggerTruthTracks"} |
std::string | measurementCollection_ {"DigiTaggerSimHits"} |
std::string | sp_pass_name_ {""} |
std::string | title_ {"tagger_trk_"} |
double | trackProb_cut_ {0.5} |
std::string | subdetector_ {"Tagger"} |
bool | doTruthComparison {false} |
bool | debug_ {false} |
std::vector< std::string > | trackStates_ |
std::shared_ptr< ldmx::Tracks > | truthTrackCollection_ {nullptr} |
std::shared_ptr< std::vector< ldmx::SimTrackerHit > > | ecal_scoring_hits_ {nullptr} |
std::shared_ptr< std::vector< ldmx::SimTrackerHit > > | target_scoring_hits_ |
std::vector< ldmx::Track > | uniqueTracks_ |
std::vector< ldmx::Track > | duplicateTracks_ |
std::vector< ldmx::Track > | fakeTracks_ |
std::map< int, int > | pidmap |
Additional Inherited Members | |
![]() | |
static void | declare (const std::string &classname, int classtype, EventProcessorMaker *) |
Internal function which is part of the PluginFactory machinery. | |
![]() | |
static const int | CLASSTYPE {2} |
Constant used to track EventProcessor types by the PluginFactory. | |
![]() | |
void | abortEvent () |
Abort the event immediately. | |
![]() | |
HistogramHelper | histograms_ |
Interface class for making and filling histograms. | |
NtupleManager & | ntuple_ {NtupleManager::getInstance()} |
Manager for any ntuples. | |
logging::logger | theLog_ |
The logger for this EventProcessor. | |
Definition at line 24 of file TrackingRecoDQM.h.
|
inline |
Definition at line 26 of file TrackingRecoDQM.h.
|
overridevirtual |
Process the event and make histograms or summaries.
event | The Event to analyze |
Implements framework::Analyzer.
Definition at line 37 of file TrackingRecoDQM.cxx.
References framework::Event::exists(), framework::HistogramHelper::fill(), framework::Event::getCollection(), framework::EventProcessor::histograms_, and TrackStateMonitoring().
|
overridevirtual |
Configure the analyzer using the given user specified parameters.
parameters | Set of parameters used to configure this analyzer. |
Reimplemented from framework::EventProcessor.
Definition at line 10 of file TrackingRecoDQM.cxx.
void tracking::dqm::TrackingRecoDQM::EfficiencyPlots | ( | const std::vector< ldmx::Track > & | tracks, |
const std::vector< ldmx::Measurement > & | measurements, | ||
const std::string & | title ) |
Definition at line 124 of file TrackingRecoDQM.cxx.
|
overridevirtual |
Callback for the EventProcessor to take any necessary action when the processing of events finishes, such as calculating job-summary quantities.
Reimplemented from framework::EventProcessor.
Definition at line 120 of file TrackingRecoDQM.cxx.
void tracking::dqm::TrackingRecoDQM::sortTracks | ( | const std::vector< ldmx::Track > & | tracks, |
std::vector< ldmx::Track > & | uniqueTracks, | ||
std::vector< ldmx::Track > & | duplicateTracks, | ||
std::vector< ldmx::Track > & | fakeTracks ) |
Definition at line 581 of file TrackingRecoDQM.cxx.
void tracking::dqm::TrackingRecoDQM::TrackMonitoring | ( | const std::vector< ldmx::Track > & | tracks, |
const std::vector< ldmx::Measurement > & | measurements, | ||
const std::string | title, | ||
const bool & | doDetail, | ||
const bool & | doTruth ) |
Definition at line 281 of file TrackingRecoDQM.cxx.
void tracking::dqm::TrackingRecoDQM::TrackStateMonitoring | ( | const ldmx::Tracks & | tracks, |
ldmx::TrackStateType | ts_type, | ||
const std::string & | ts_title ) |
Monitoring plots for tracks extrapolated to the ECAL Scoring plane.
This aims Tracks will be truth matched first to get the trackID. The hit with the trackID
Definition at line 467 of file TrackingRecoDQM.cxx.
References framework::HistogramHelper::fill(), and framework::EventProcessor::histograms_.
Referenced by analyze().
|
private |
Definition at line 78 of file TrackingRecoDQM.h.
|
private |
Definition at line 77 of file TrackingRecoDQM.h.
|
private |
Definition at line 96 of file TrackingRecoDQM.h.
|
private |
Definition at line 85 of file TrackingRecoDQM.h.
|
private |
Definition at line 98 of file TrackingRecoDQM.h.
|
private |
Definition at line 71 of file TrackingRecoDQM.h.
|
private |
Definition at line 101 of file TrackingRecoDQM.h.
|
private |
Definition at line 72 of file TrackingRecoDQM.h.
|
private |
Definition at line 76 of file TrackingRecoDQM.h.
|
private |
|
private |
Definition at line 74 of file TrackingRecoDQM.h.
|
private |
Definition at line 69 of file TrackingRecoDQM.h.
|
private |
Definition at line 75 of file TrackingRecoDQM.h.
|
private |
Definition at line 79 of file TrackingRecoDQM.h.
|
private |
Definition at line 70 of file TrackingRecoDQM.h.
|
private |
Definition at line 82 of file TrackingRecoDQM.h.
|
private |
Definition at line 94 of file TrackingRecoDQM.h.