Belle II Software development
PXDPerformanceCollectorModule.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
13#include <pxd/utilities/PXD2TrackEvent.h>
14#include <framework/datastore/StoreArray.h>
15#include <framework/database/DBObjPtr.h>
16#include <pxd/dataobjects/PXDCluster.h>
17#include <mdst/dataobjects/MCParticle.h>
18#include <mdst/dataobjects/Track.h>
19#include <tracking/dataobjects/RecoTrack.h>
20
21//#include <pxd/dbobjects/PXDClusterChargeMapPar.h>
22#include <pxd/dbobjects/PXDGainMapPar.h>
23
24#include <string>
25
26namespace Belle2 {
47
48 public:
49
55 void prepare() override final;
57 void collect() override final;
59 void startRun() override final;
60
71
72 private:
77
80
89
104
106 float m_minPt;
113
119 std::string m_gainName;
124
131
143 int m_run;
145 int m_exp;
148
149 };
151}
Calibration collector module base class.
void event() final
Check current experiment and run and update if needed, fill into RunRange and collect()
Class PXD2TrackEvent: Event data container for performance and calibration studies.
The payload class for PXD gain corrections.
Definition: PXDGainMapPar.h:43
Collector module for PXD gain calibration and PXD calibration validation.
StoreArray< PXD2TrackEvent > m_pxd2TrackEvents
Required input PXD2TrackEvent
bool m_selectedRes
Flag of selection for resolution validation.
float m_estimated
Estimated cluster charge in ADU.
float m_maxAbsVy
Maximum absolute value for y coordinate of vertex.
int m_nBinsV
Number of corrections per sensor along v side.
PXDPerformanceCollectorModule()
Constructor: Sets the description, the properties and the parameters of the module.
bool m_fillChargeRatioHistogram
Flag to fill cluster charge ratio (relative to expected MPV) histograms.
float m_minPBetaSinTheta3o2
Minimum p*Beta*sin(theta_0)^{3/2}.
bool m_selectedEff
Flag of selection for efficiency validation.
std::string m_gainName
Payload name for Gain to be read from DB.
PXDGainMapPar m_gainMap
GainMap to be stored in dbtree.
int m_nBinsU
Number of corrections per sensor along u side.
StoreObjPtr< EventMetaData > m_evtMetaData
Required input EventMetaData.
float m_maxAbsLambda
Maximum absolute dip angle (lambda)
bool m_fillEventTree
Flag to fill event tree for validation.
float m_minPt4Res
Minimum pt cut for resolution monitoring.
int m_exp
Experiment number to be stored in dbtree.
int m_minCDCHits
Minimum number of CDC hits for resolution.
float m_maxAbsVx
Maximum absolute value for x coordinate of vertex.
bool m_fillChargeTree
Flag to fill cluster charge and its estimated MPV in TTree.
void collectFromTrack(const PXD2TrackEvent::baseType &track)
Collect info on track level.
int m_minSVDHits
Minimum number of SVD hits for resolution.
float m_maxAbsVz
Maximum absolute value for z coordinate of vertex.
float m_minPt4Eff
Minimum pt cut for efficiency monitoring.
void collectDeltaIP(const PXD2TrackEvent &event)
Collect info for impact parameter study on event level.
std::string m_store2TrackEventsName
Name of the collection to use for PXD2TrackEvents.
int m_run
Run number to be stored in dbtree.
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.
Struct to hold variables from a track which contains a vector of data type like TrackCluster.