 |
Belle II Software
release-05-02-19
|
13 #include <framework/core/HistoModule.h>
14 #include <framework/datastore/StoreArray.h>
16 #include <vxd/geometry/GeoCache.h>
18 #include <svd/dataobjects/SVDRecoDigit.h>
19 #include <svd/dataobjects/SVDShaperDigit.h>
20 #include <tracking/dataobjects/ROIid.h>
21 #include <tracking/dataobjects/SVDIntercept.h>
23 #include <unordered_map>
40 class SVDROIDQMModule :
public HistoModule {
49 void event()
override;
85 std::function< void (TH1*,
double&) >
fill;
SVDIntercept stores the U,V coordinates and uncertainties of the intersection of a track with an SVD ...
Class to uniquely identify a any structure of the PXD and SVD.
void defineHisto() override
define histograms
SVDROIDQMModule()
Constructor defining the parameters.
StoreArray< ROIid > m_ROIs
ROis store array.
std::unordered_multimap< Belle2::VxdID, ROIHistoAccumulateAndFill &, std::function< size_t(const Belle2::VxdID &) > > hROIDictionaryEvt
map of histograms to be filled once per event
void createHistosDictionaries()
create the dictionary
TH1F * hredFactor
reduction factor
double value
value used to fill
StoreArray< SVDShaperDigit > m_SVDShaperDigits
shaper digits sotre array
TH1 * hPtr
histogram pointer
TH1F * hnInter
number of intercpets
std::unordered_multimap< Belle2::VxdID, ROIHistoAndFill, std::function< size_t(const Belle2::VxdID &)> > hROIDictionary
map of histograms to be filled once per roi
StoreArray< SVDRecoDigit > m_SVDRecoDigits
reco digit store array
std::unordered_multimap< Belle2::VxdID, InterHistoAndFill, std::function< size_t(const Belle2::VxdID &)> > hInterDictionary
map of histograms to be filled once per intercept
std::string m_ROIsName
Name of the ROIid StoreArray.
std::string m_SVDShaperDigitsName
shaper digit list name
ROIid stores the U and V ids and the sensor id of the Region Of Interest.
static GeoCache & getInstance()
Return a reference to the singleton instance.
Abstract base class for different kinds of events.
std::pair< TH1 *, std::function< void(TH1 *, const ROIid *) > > ROIHistoAndFill
typedef: histograms to be filled once per roi + filling function
VXD::GeoCache & m_geoCache
the geo cache instance
void event() override
fill per-event histograms
TH1F * hnROIs
number of ROIs
void initialize() override
register histograms
std::pair< TH1 *, std::function< void(TH1 *, const SVDIntercept *) > > InterHistoAndFill
typedef: histograms to be filled once per intercept + filling function
TDirectory * m_ROIDir
ROI directory in the root file.
int m_numModules
number of hardware modules
std::string m_InterceptsName
Name of the SVDIntercept StoreArray.
std::string m_SVDRecoDigitsName
reco digit list name
std::function< void(TH1 *, double &) > fill
fill function
int n_events
number of events
StoreArray< SVDIntercept > m_Intercepts
SVDINtercept Store Arrays.
Class to faciliate easy access to sensor information of the VXD like coordinate transformations or pi...
void fillSensorInterHistos(const SVDIntercept *inter)
fill histograms per sensor, filled once per intercept
TDirectory * m_InterDir
intercepts directory in the root file
void fillSensorROIHistos(const ROIid *roi)
fill histograms per sensor, filled once per ROI
std::function< void(const ROIid *, double &) > accumulate
accumulate function
void endRun() override
fill per-run histograms
struct: histograms to be filled once per event + filling fucntion + accumulate function