Belle II Software development
SVDCrossTalkCalibrationsCollectorModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <calibration/CalibrationCollectorModule.h>
12#include <framework/datastore/StoreArray.h>
13
14#include <svd/dataobjects/SVDShaperDigit.h>
15#include <vxd/dataobjects/VxdID.h>
16#include <svd/calibration/SVDOccupancyCalibrations.h>
17
18#include <TH1F.h>
19#include <TTree.h>
20
21#include <string>
22#include <map>
23
24
25namespace Belle2 {
36
37
38 public:
39
42
44 void prepare() override final;
45
47 void startRun() override final;
48
50 void collect() override final;
51
53 void closeRun() override final;
54
55
57 void finish() override;
58
59
60 private:
61
62 TTree* m_histogramTree = nullptr;
63 TH1F* m_hist = nullptr;
64 int m_layer = 4;
65 int m_ladder = 16;
66 int m_sensor = 5;
67 int m_side = 2;
70 void calculateAverage(const VxdID& sensorID, double& mean, int side);
74
77
84 std::map<std::string, TH1F* > m_sensorHistograms;
89 };
91}// end namespace Belle2
92
93
94
Calibration collector module base class.
Collector module used to create the histograms needed for the cross talk calibration.
std::string m_svdShaperDigitsName
SVDShaperDigit collection name.
int m_uSideOccupancyFactor
Parameter to define high occupancy strips (some multiple above sensor average occupancy)
int m_vSideOccupancyFactor
Parameter to define high occupancy strips (some multiple above sensor average occupancy)
StoreArray< SVDShaperDigit > m_svdShaperDigits
The storeArray for svdShaperDigits.
std::map< std::string, TH1F * > m_sensorHistograms
map to store cross-talk strip histograms
void calculateAverage(const VxdID &sensorID, double &mean, int side)
Function to calculate sensor average occupancy.
SVDOccupancyCalibrations m_OccupancyCal
SVDOccupancy calibrations db object.
int m_nAPVFactor
Parameter to set number of sensors with possible cross-talk clusters required for event flagging.
This class defines the dbobject and the method to access SVD calibrations from the noise local runs.
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Class to uniquely identify a any structure of the PXD and SVD.
Definition: VxdID.h:33
Abstract base class for different kinds of events.