CbmRoot
Loading...
Searching...
No Matches
CbmSeedFinderQa Class Reference

#include <CbmSeedFinderQa.h>

Collaboration diagram for CbmSeedFinderQa:
[legend]

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< CbmMatchfvEventMatches
 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< CbmMatchfvEventMatchesPerTs
 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
 
CbmQaCanvasfCanv
 difference between true event time and seed time for one-to-one matched cases
 
CbmMCEventListfEventList = nullptr
 summary canvas
 

Detailed Description

Definition at line 33 of file CbmSeedFinderQa.h.

Constructor & Destructor Documentation

◆ CbmSeedFinderQa() [1/2]

◆ CbmSeedFinderQa() [2/2]

CbmSeedFinderQa::CbmSeedFinderQa ( const CbmSeedFinderQa & )
delete

◆ ~CbmSeedFinderQa()

Member Function Documentation

◆ FillHistos()

◆ FillQaMCInfo()

◆ FillQaSeedInfo()

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().

◆ Init()

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().

◆ operator=()

CbmSeedFinderQa CbmSeedFinderQa::operator= ( const CbmSeedFinderQa & )
delete

◆ OutputQa()

◆ ResetPerTsStorage()

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().

◆ WriteHistos()

Member Data Documentation

◆ fCanv

CbmQaCanvas* CbmSeedFinderQa::fCanv
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().

◆ fEventList

CbmMCEventList* CbmSeedFinderQa::fEventList = nullptr
private

summary canvas

Definition at line 114 of file CbmSeedFinderQa.h.

Referenced by FillQaMCInfo(), FillQaSeedInfo(), and Init().

◆ fhCorrectDigiRatio

TH1F* CbmSeedFinderQa::fhCorrectDigiRatio = nullptr
private

linked MC events per trigger

Definition at line 101 of file CbmSeedFinderQa.h.

Referenced by CbmSeedFinderQa(), FillHistos(), WriteHistos(), and ~CbmSeedFinderQa().

◆ fhCorrectDigiRatioNoNoise

TH1F* CbmSeedFinderQa::fhCorrectDigiRatioNoNoise = nullptr
private

correct digis per event

Definition at line 102 of file CbmSeedFinderQa.h.

Referenced by CbmSeedFinderQa(), FillHistos(), WriteHistos(), and ~CbmSeedFinderQa().

◆ fhCorrectVsFound

TH2I* CbmSeedFinderQa::fhCorrectVsFound = nullptr
private

digis found per event

Definition at line 105 of file CbmSeedFinderQa.h.

Referenced by CbmSeedFinderQa(), FillHistos(), WriteHistos(), and ~CbmSeedFinderQa().

◆ fhCorrectVsFoundNoNoise

TH2I* CbmSeedFinderQa::fhCorrectVsFoundNoNoise = nullptr
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().

◆ fhFoundDigiRatio

TH1F* CbmSeedFinderQa::fhFoundDigiRatio = nullptr
private

noise digis per event

Definition at line 104 of file CbmSeedFinderQa.h.

Referenced by CbmSeedFinderQa(), FillHistos(), WriteHistos(), and ~CbmSeedFinderQa().

◆ fhLinkedMCEventsPerTrigger

TH1F* CbmSeedFinderQa::fhLinkedMCEventsPerTrigger = nullptr
private

matchted triggers per MC event

Definition at line 100 of file CbmSeedFinderQa.h.

Referenced by CbmSeedFinderQa(), FillHistos(), WriteHistos(), and ~CbmSeedFinderQa().

◆ fhLinkedTriggersPerMCEvent

TH1F* CbmSeedFinderQa::fhLinkedTriggersPerMCEvent = nullptr
private

output folder with histos and canvases

Histograms

Definition at line 98 of file CbmSeedFinderQa.h.

Referenced by CbmSeedFinderQa(), FillQaMCInfo(), WriteHistos(), and ~CbmSeedFinderQa().

◆ fhMatchedTriggersPerMCEvent

TH1F* CbmSeedFinderQa::fhMatchedTriggersPerMCEvent = nullptr
private

linked triggers per MC event

Definition at line 99 of file CbmSeedFinderQa.h.

Referenced by CbmSeedFinderQa(), FillQaMCInfo(), WriteHistos(), and ~CbmSeedFinderQa().

◆ fhNoiseDigiRatio

TH1F* CbmSeedFinderQa::fhNoiseDigiRatio = nullptr
private

correct digis per event, disregarding noise

Definition at line 103 of file CbmSeedFinderQa.h.

Referenced by CbmSeedFinderQa(), FillHistos(), WriteHistos(), and ~CbmSeedFinderQa().

◆ fhTimeOffset

TH1F* CbmSeedFinderQa::fhTimeOffset = nullptr
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().

◆ fhTimeOffsetClosest

TH1F* CbmSeedFinderQa::fhTimeOffsetClosest = nullptr
private

difference between true event time and seed time

Definition at line 108 of file CbmSeedFinderQa.h.

Referenced by CbmSeedFinderQa(), FillQaMCInfo(), WriteHistos(), and ~CbmSeedFinderQa().

◆ fhTimeOffsetSingletOnly

TH1F* CbmSeedFinderQa::fhTimeOffsetSingletOnly
private
Initial value:
=
nullptr

difference between seed time and closest MC event time

Definition at line 109 of file CbmSeedFinderQa.h.

Referenced by CbmSeedFinderQa(), FillQaMCInfo(), and WriteHistos().

◆ fOutFolder

TFolder CbmSeedFinderQa::fOutFolder
private

subfolder for histograms

Definition at line 95 of file CbmSeedFinderQa.h.

Referenced by CbmSeedFinderQa(), and WriteHistos().

◆ fvCorrectDigiRatio

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().

◆ fvCorrectDigiRatioNoNoise

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().

◆ fvEventMatches

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().

◆ fvEventMatchesPerTs

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().

◆ fvFoundDigiRatio

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().

◆ fvFullDigiCount

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().

◆ fvLinkedMCEventsCount

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().

◆ fvNoiseDigiCount

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().

◆ fvSeedTimesFull

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().

◆ fvSeedTimesPerTs

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().

◆ fvTimeOffset

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().

◆ histFolder

TFolder* CbmSeedFinderQa::histFolder = nullptr
private

Definition at line 94 of file CbmSeedFinderQa.h.

Referenced by CbmSeedFinderQa().


The documentation for this class was generated from the following files: