12#include <framework/core/Module.h>
13#include <framework/datastore/StoreArray.h>
14#include <framework/database/Database.h>
15#include <framework/database/IntervalOfValidity.h>
17#include <svd/dataobjects/SVDHistograms.h>
18#include <svd/dataobjects/SVDCluster.h>
19#include <svd/dataobjects/SVDTrueHit.h>
52 virtual void event()
override;
59 virtual void endRun()
override;
73 std::string
m_uniqueID =
"PositionErrorScaleFactors_TEST";
template class for SVd histograms
Module that produces a localdb with position error scale factors for different position algoritms.
std::string m_rootFileName
root file name
SVDHistograms< TH1F > * m_hClsPullSize1
cluster size 1, position error scale factor histo
TTree * m_tree
pointer at tree containing the mean and RMS of calibration constants
TH1F * m_hFWPulls[5][2]
cumulative FW pulls histograms [size][side]
StoreArray< SVDTrueHit > m_truehits
SVDTrueHits StoreArray.
int m_ladder
ladder number
float m_clsErr
cluster position error
TH1F * m_hORPulls[5][2]
cumulative ORIGAMI pulls histograms [size][side]
virtual void initialize() override
check presence of data objects
virtual void event() override
fill trees and histograms
float m_clsTime
cluster time
bool m_noOutliers
if True removes outliers from scale factor computation
SVDHistograms< TH1F > * m_hClsPullSize5
cluster size 5, position error scale factor histo
virtual void endRun() override
create cumulative histograms, compute scale factors, create payloads and import it to a localdb,...
int m_sensor
sensor number
float m_clsCharge
cluster charge
SVDPositionErrorScaleFactorImporterModule()
Constructor: Sets the description, the properties and the parameters of the module.
float m_max
max of the pulls histograms
SVDHistograms< TH1F > * m_hClsPullSize3
cluster size 3, position error scale factor histo
StoreArray< SVDCluster > m_clusters
SVDClusters StoreArray.
float m_clsPull
cluster position pull
std::string m_posAlgorithm
position algorithm
virtual void beginRun() override
initialize the TTrees and create histograms
TH1F * m_hL3Pulls[5][2]
cumulative L3 pulls histograms [size][side]
float m_min
min of the pulls histograms
SVDHistograms< TH1F > * m_hClsPullSize2
cluster size 2, position error scale factor histo
std::string m_uniqueID
payload uniqueID
float m_nBins
number of bins of the pulls histograms
SVDHistograms< TH1F > * m_hClsPullSize4
cluster size 4, position error scale factor histo
float m_clsResid
cluster positionresidual
TH1F * m_hBWPulls[5][2]
cumulative BW pulls histograms [size][side]
double oneSigma(TH1F *)
computes the scale factor by requiring that 68% of the pull distribution is between ±1
TFile * m_rootFilePtr
pointer at root file used for storing histograms
float m_clsPos
cluster position error
const int maxSize
maximum cluster size
Accessor to arrays stored in the data store.
Abstract base class for different kinds of events.