Belle II Software development
PXDDQMBowingModule.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 <framework/core/HistoModule.h>
12#include <framework/datastore/StoreObjPtr.h>
13#include <framework/datastore/StoreArray.h>
14#include <vxd/dataobjects/VxdID.h>
15
16#include "TH1F.h"
17
18namespace Belle2 {
23 class RecoTrack;
24 class ParticleList;
25
30
31 public:
32
37
40
42 void initialize() override final;
43
45 void beginRun() override final;
46
48 void event() override final;
49
51 void defineHisto() override final;
52
53 private:
54
56 std::string m_outputRecoTracksArrayName{"NoPXDRecoTracks"};
57 std::string m_particleListName{"pi+:all"};
58
59
64
65 Double_t m_cutResU;
66 Double_t m_cutP;
67 Double_t m_cutD0;
68 Double_t m_cutZ0;
69
70 Double_t m_rangeV;
71 Double_t m_rangeS;
72 int m_binsV;
73 int m_binsS;
74
75 std::map<VxdID, Double_t> m_dwAlignment;
76
77 std::map<VxdID, TH1F*> m_hResV;
78 std::map<VxdID, TH1F*> m_hSagitta;
79 };
80
81}
HistoModule()
Constructor.
Definition HistoModule.h:32
void initialize() override final
initializes the needed store arrays and histograms
int m_binsS
number of bins for the histograms of the sagitta
StoreArray< RecoTrack > m_outputRecoTracks
tracks without the PDX hits
int m_binsV
number of bins for the histograms of the v residuals
std::string m_particleListName
Name of the particle list to which the module is applied.
std::map< VxdID, TH1F * > m_hResV
histos for the residual of the PXD hits' v component for each PXD module
void defineHisto() override final
actually defines the histograms
std::map< VxdID, Double_t > m_dwAlignment
Bowing amplitude of the PXD modules inside the alignment.
virtual ~PXDDQMBowingModule()
Virtual destructor (base class)
void event() override final
Refits tracks without PXD hits and calculate the residuals for the PXD layers.
Double_t m_cutZ0
value fot the cut on absolute value of the track parameter z0
std::map< VxdID, TH1F * > m_hSagitta
histos of the sagitta for each PXD module
Double_t m_rangeS
range for the histos of the sagitta
std::string m_histogramDirectoryName
Name of the directory where the histogram will be placed.
PXDDQMBowingModule()
Constructor: Sets the description, the properties and the parameters of the module.
Double_t m_cutResU
value fot the cut on absolute value of the u residuals
Double_t m_rangeV
range for the histos of the v residuls
StoreArray< RecoTrack > m_recoTracks
store array of the recoTracks related to the particles selected with m_ParticleList
void beginRun() override final
Resets the histograms for each run and print ROI size in v.
StoreObjPtr< ParticleList > m_ParticleList
particle list on which run the module (need to be charged particles to have some results)
std::string m_outputRecoTracksArrayName
Name of the StoreArray with the recoTracks without PXD hits.
Double_t m_cutP
value fot the cut on the momentum of the particle
Double_t m_cutD0
value fot the cut on absolute value of the track parameter d0
ParticleList is a container class that stores a collection of Particle objects.
This is the Reconstruction Event-Data Model Track.
Definition RecoTrack.h:79
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.
STL namespace.