CbmRoot
|
#include <CbmSeedFinderQa.h>
Public Member Functions | |
CbmSeedFinderQa () | |
Create the CbmSeedFinderQa object. | |
CbmSeedFinderQa (const CbmSeedFinderQa &)=delete | |
CbmSeedFinderQa | operator= (const CbmSeedFinderQa &)=delete |
~CbmSeedFinderQa () | |
Destructor. | |
void | FillQaSeedInfo (const int32_t WinStart, const int32_t WinEnd, const std::vector< CbmMatch > *vDigiMatch, const double seedTime) |
Gather QA Information. @params WinStart Starting position of seed window. @params WinStart End position of seed window. @params vDigiMatch Input vector of digi matches (should match input data to MC events). @params seedTime Current seed. | |
void | OutputQa () |
Output QA Information. | |
void | FillQaMCInfo () |
Fill QA Information that uses the full list of MC events per TS. | |
void | ResetPerTsStorage () |
Reset containers that are persistent for one TS. | |
void | WriteHistos () |
Finalize histograms and canvases and write to file. | |
void | Init () |
Initialize communication with FairRootManager (needed for MC events). | |
Public Attributes | |
std::vector< CbmMatch > | fvEventMatches |
Matches that link constructed event seeds to MC events. | |
std::vector< uint32_t > | fvLinkedMCEventsCount |
Counts how many MC events contributed to a seed. | |
std::vector< double > | fvSeedTimesFull |
Full vector of all event seeds that is not cleared at the end of a timeslice. | |
std::vector< int32_t > | fvFullDigiCount |
Counts how many digis contributed to a seed. | |
std::vector< int32_t > | fvNoiseDigiCount |
Counts how many noise digis contributed to a seed. | |
std::vector< double > | fvCorrectDigiRatio |
Ratio of digis from matched MC event. | |
std::vector< double > | fvCorrectDigiRatioNoNoise |
Ratio of digis from matched MC event (disregarding noise). | |
std::vector< double > | fvFoundDigiRatio |
Ratio of digis of matched events that were included in event seed. | |
std::vector< double > | fvTimeOffset |
Difference between true event time and seed time. | |
std::vector< CbmMatch > | fvEventMatchesPerTs |
Matches that link constructed event seeds to MC events, current timeslice only. | |
std::vector< double > | fvSeedTimesPerTs |
Vector of event seeds, current TS only. | |
Private Member Functions | |
void | FillHistos () |
Fill output histograms with data from current timeslice. | |
Private Attributes | |
TFolder * | histFolder = nullptr |
TFolder | fOutFolder |
subfolder for histograms | |
TH1F * | fhLinkedTriggersPerMCEvent = nullptr |
output folder with histos and canvases | |
TH1F * | fhMatchedTriggersPerMCEvent = nullptr |
linked triggers per MC event | |
TH1F * | fhLinkedMCEventsPerTrigger = nullptr |
matchted triggers per MC event | |
TH1F * | fhCorrectDigiRatio = nullptr |
linked MC events per trigger | |
TH1F * | fhCorrectDigiRatioNoNoise = nullptr |
correct digis per event | |
TH1F * | fhNoiseDigiRatio = nullptr |
correct digis per event, disregarding noise | |
TH1F * | fhFoundDigiRatio = nullptr |
noise digis per event | |
TH2I * | fhCorrectVsFound = nullptr |
digis found per event | |
TH2I * | fhCorrectVsFoundNoNoise = nullptr |
correct digis per event vs found digis per event | |
TH1F * | fhTimeOffset = nullptr |
correct digis per event vs found digis per event, disregarding noise | |
TH1F * | fhTimeOffsetClosest = nullptr |
difference between true event time and seed time | |
TH1F * | fhTimeOffsetSingletOnly |
difference between seed time and closest MC event time | |
CbmQaCanvas * | fCanv |
difference between true event time and seed time for one-to-one matched cases | |
CbmMCEventList * | fEventList = nullptr |
summary canvas | |
Definition at line 33 of file CbmSeedFinderQa.h.
CbmSeedFinderQa::CbmSeedFinderQa | ( | ) |
Create the CbmSeedFinderQa object.
Definition at line 15 of file CbmSeedFinderQa.cxx.
References CbmQaCanvas::Divide2D(), fCanv, fhCorrectDigiRatio, fhCorrectDigiRatioNoNoise, fhCorrectVsFound, fhCorrectVsFoundNoNoise, fhFoundDigiRatio, fhLinkedMCEventsPerTrigger, fhLinkedTriggersPerMCEvent, fhMatchedTriggersPerMCEvent, fhNoiseDigiRatio, fhTimeOffset, fhTimeOffsetClosest, fhTimeOffsetSingletOnly, fOutFolder, and histFolder.
|
delete |
CbmSeedFinderQa::~CbmSeedFinderQa | ( | ) |
Destructor.
Definition at line 69 of file CbmSeedFinderQa.cxx.
References fCanv, fhCorrectDigiRatio, fhCorrectDigiRatioNoNoise, fhCorrectVsFound, fhCorrectVsFoundNoNoise, fhFoundDigiRatio, fhLinkedMCEventsPerTrigger, fhLinkedTriggersPerMCEvent, fhMatchedTriggersPerMCEvent, fhNoiseDigiRatio, fhTimeOffset, and fhTimeOffsetClosest.
|
private |
Fill output histograms with data from current timeslice.
Definition at line 265 of file CbmSeedFinderQa.cxx.
References fhCorrectDigiRatio, fhCorrectDigiRatioNoNoise, fhCorrectVsFound, fhCorrectVsFoundNoNoise, fhFoundDigiRatio, fhLinkedMCEventsPerTrigger, fhNoiseDigiRatio, fhTimeOffset, fvCorrectDigiRatio, fvCorrectDigiRatioNoNoise, fvEventMatches, fvFoundDigiRatio, fvFullDigiCount, fvLinkedMCEventsCount, fvNoiseDigiCount, fvTimeOffset, CbmLink::GetEntry(), and CbmMatch::GetMatchedLink().
Referenced by OutputQa().
void CbmSeedFinderQa::FillQaMCInfo | ( | ) |
Fill QA Information that uses the full list of MC events per TS.
Definition at line 202 of file CbmSeedFinderQa.cxx.
References fEventList, fhLinkedTriggersPerMCEvent, fhMatchedTriggersPerMCEvent, fhTimeOffsetClosest, fhTimeOffsetSingletOnly, fvEventMatchesPerTs, fvSeedTimesPerTs, CbmLink::GetEntry(), CbmMCEventList::GetEventIndex(), CbmMCEventList::GetEventTime(), CbmMCEventList::GetEventTimeByIndex(), CbmLink::GetFile(), CbmMatch::GetLink(), CbmMatch::GetMatchedLink(), CbmMCEventList::GetNofEvents(), CbmMatch::GetNofLinks(), val1, and val2.
Referenced by CbmSeedFinderSlidingWindow::FillSeedTimes().
void CbmSeedFinderQa::FillQaSeedInfo | ( | const int32_t | WinStart, |
const int32_t | WinEnd, | ||
const std::vector< CbmMatch > * | vDigiMatch, | ||
const double | seedTime ) |
Gather QA Information. @params WinStart Starting position of seed window. @params WinStart End position of seed window. @params vDigiMatch Input vector of digi matches (should match input data to MC events). @params seedTime Current seed.
Definition at line 100 of file CbmSeedFinderQa.cxx.
References CbmMatch::AddLink(), fEventList, fvCorrectDigiRatio, fvCorrectDigiRatioNoNoise, fvEventMatches, fvEventMatchesPerTs, fvFoundDigiRatio, fvFullDigiCount, fvLinkedMCEventsCount, fvNoiseDigiCount, fvSeedTimesFull, fvSeedTimesPerTs, fvTimeOffset, CbmLink::GetEntry(), CbmMCEventList::GetEventTime(), CbmLink::GetFile(), CbmMatch::GetLink(), CbmMatch::GetMatchedLink(), and CbmMatch::GetNofLinks().
Referenced by CbmSeedFinderSlidingWindow::FillSeedTimes().
void CbmSeedFinderQa::Init | ( | ) |
Initialize communication with FairRootManager (needed for MC events).
Definition at line 85 of file CbmSeedFinderQa.cxx.
References fEventList.
Referenced by CbmSeedFinderSlidingWindow::Init().
|
delete |
void CbmSeedFinderQa::OutputQa | ( | ) |
Output QA Information.
Definition at line 293 of file CbmSeedFinderQa.cxx.
References FillHistos(), fvCorrectDigiRatio, fvCorrectDigiRatioNoNoise, fvEventMatches, fvFoundDigiRatio, fvFullDigiCount, fvNoiseDigiCount, fvSeedTimesFull, CbmLink::GetEntry(), CbmMatch::GetMatchedLink(), CbmMatch::GetNofLinks(), and WriteHistos().
Referenced by CbmSeedFinderSlidingWindow::OutputQa().
void CbmSeedFinderQa::ResetPerTsStorage | ( | ) |
Reset containers that are persistent for one TS.
Definition at line 94 of file CbmSeedFinderQa.cxx.
References fvEventMatchesPerTs, and fvSeedTimesPerTs.
Referenced by CbmSeedFinderSlidingWindow::FillSeedTimes().
void CbmSeedFinderQa::WriteHistos | ( | ) |
Finalize histograms and canvases and write to file.
Definition at line 319 of file CbmSeedFinderQa.cxx.
References fCanv, fhCorrectDigiRatio, fhCorrectDigiRatioNoNoise, fhCorrectVsFound, fhCorrectVsFoundNoNoise, fhFoundDigiRatio, fhLinkedMCEventsPerTrigger, fhLinkedTriggersPerMCEvent, fhMatchedTriggersPerMCEvent, fhNoiseDigiRatio, fhTimeOffset, fhTimeOffsetClosest, fhTimeOffsetSingletOnly, and fOutFolder.
Referenced by OutputQa().
|
private |
difference between true event time and seed time for one-to-one matched cases
Definition at line 112 of file CbmSeedFinderQa.h.
Referenced by CbmSeedFinderQa(), WriteHistos(), and ~CbmSeedFinderQa().
|
private |
summary canvas
Definition at line 114 of file CbmSeedFinderQa.h.
Referenced by FillQaMCInfo(), FillQaSeedInfo(), and Init().
|
private |
linked MC events per trigger
Definition at line 101 of file CbmSeedFinderQa.h.
Referenced by CbmSeedFinderQa(), FillHistos(), WriteHistos(), and ~CbmSeedFinderQa().
|
private |
correct digis per event
Definition at line 102 of file CbmSeedFinderQa.h.
Referenced by CbmSeedFinderQa(), FillHistos(), WriteHistos(), and ~CbmSeedFinderQa().
|
private |
digis found per event
Definition at line 105 of file CbmSeedFinderQa.h.
Referenced by CbmSeedFinderQa(), FillHistos(), WriteHistos(), and ~CbmSeedFinderQa().
|
private |
correct digis per event vs found digis per event
Definition at line 106 of file CbmSeedFinderQa.h.
Referenced by CbmSeedFinderQa(), FillHistos(), WriteHistos(), and ~CbmSeedFinderQa().
|
private |
noise digis per event
Definition at line 104 of file CbmSeedFinderQa.h.
Referenced by CbmSeedFinderQa(), FillHistos(), WriteHistos(), and ~CbmSeedFinderQa().
|
private |
matchted triggers per MC event
Definition at line 100 of file CbmSeedFinderQa.h.
Referenced by CbmSeedFinderQa(), FillHistos(), WriteHistos(), and ~CbmSeedFinderQa().
|
private |
output folder with histos and canvases
Histograms
Definition at line 98 of file CbmSeedFinderQa.h.
Referenced by CbmSeedFinderQa(), FillQaMCInfo(), WriteHistos(), and ~CbmSeedFinderQa().
|
private |
linked triggers per MC event
Definition at line 99 of file CbmSeedFinderQa.h.
Referenced by CbmSeedFinderQa(), FillQaMCInfo(), WriteHistos(), and ~CbmSeedFinderQa().
|
private |
correct digis per event, disregarding noise
Definition at line 103 of file CbmSeedFinderQa.h.
Referenced by CbmSeedFinderQa(), FillHistos(), WriteHistos(), and ~CbmSeedFinderQa().
|
private |
correct digis per event vs found digis per event, disregarding noise
Definition at line 107 of file CbmSeedFinderQa.h.
Referenced by CbmSeedFinderQa(), FillHistos(), WriteHistos(), and ~CbmSeedFinderQa().
|
private |
difference between true event time and seed time
Definition at line 108 of file CbmSeedFinderQa.h.
Referenced by CbmSeedFinderQa(), FillQaMCInfo(), WriteHistos(), and ~CbmSeedFinderQa().
|
private |
difference between seed time and closest MC event time
Definition at line 109 of file CbmSeedFinderQa.h.
Referenced by CbmSeedFinderQa(), FillQaMCInfo(), and WriteHistos().
|
private |
subfolder for histograms
Definition at line 95 of file CbmSeedFinderQa.h.
Referenced by CbmSeedFinderQa(), and WriteHistos().
std::vector<double> CbmSeedFinderQa::fvCorrectDigiRatio |
Ratio of digis from matched MC event.
Definition at line 56 of file CbmSeedFinderQa.h.
Referenced by FillHistos(), FillQaSeedInfo(), and OutputQa().
std::vector<double> CbmSeedFinderQa::fvCorrectDigiRatioNoNoise |
Ratio of digis from matched MC event (disregarding noise).
Definition at line 58 of file CbmSeedFinderQa.h.
Referenced by FillHistos(), FillQaSeedInfo(), and OutputQa().
std::vector<CbmMatch> CbmSeedFinderQa::fvEventMatches |
Matches that link constructed event seeds to MC events.
Definition at line 46 of file CbmSeedFinderQa.h.
Referenced by FillHistos(), FillQaSeedInfo(), and OutputQa().
std::vector<CbmMatch> CbmSeedFinderQa::fvEventMatchesPerTs |
Matches that link constructed event seeds to MC events, current timeslice only.
Definition at line 65 of file CbmSeedFinderQa.h.
Referenced by FillQaMCInfo(), FillQaSeedInfo(), and ResetPerTsStorage().
std::vector<double> CbmSeedFinderQa::fvFoundDigiRatio |
Ratio of digis of matched events that were included in event seed.
Definition at line 60 of file CbmSeedFinderQa.h.
Referenced by FillHistos(), FillQaSeedInfo(), and OutputQa().
std::vector<int32_t> CbmSeedFinderQa::fvFullDigiCount |
Counts how many digis contributed to a seed.
Definition at line 52 of file CbmSeedFinderQa.h.
Referenced by FillHistos(), FillQaSeedInfo(), and OutputQa().
std::vector<uint32_t> CbmSeedFinderQa::fvLinkedMCEventsCount |
Counts how many MC events contributed to a seed.
Definition at line 48 of file CbmSeedFinderQa.h.
Referenced by FillHistos(), and FillQaSeedInfo().
std::vector<int32_t> CbmSeedFinderQa::fvNoiseDigiCount |
Counts how many noise digis contributed to a seed.
Definition at line 54 of file CbmSeedFinderQa.h.
Referenced by FillHistos(), FillQaSeedInfo(), and OutputQa().
std::vector<double> CbmSeedFinderQa::fvSeedTimesFull |
Full vector of all event seeds that is not cleared at the end of a timeslice.
Definition at line 50 of file CbmSeedFinderQa.h.
Referenced by FillQaSeedInfo(), and OutputQa().
std::vector<double> CbmSeedFinderQa::fvSeedTimesPerTs |
Vector of event seeds, current TS only.
Definition at line 67 of file CbmSeedFinderQa.h.
Referenced by FillQaMCInfo(), FillQaSeedInfo(), and ResetPerTsStorage().
std::vector<double> CbmSeedFinderQa::fvTimeOffset |
Difference between true event time and seed time.
Definition at line 62 of file CbmSeedFinderQa.h.
Referenced by FillHistos(), and FillQaSeedInfo().
|
private |
Definition at line 94 of file CbmSeedFinderQa.h.
Referenced by CbmSeedFinderQa().