Belle II Software development
VXDDedxPIDRemakerModule.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/Module.h>
12#include <framework/datastore/StoreArray.h>
13#include <mdst/dataobjects/Track.h>
14#include <reconstruction/dataobjects/VXDDedxTrack.h>
15#include <reconstruction/dataobjects/VXDDedxLikelihood.h>
16#include <framework/database/DBObjPtr.h>
17#include <svd/dbobjects/SVDdEdxPDFs.h>
18#include <pxd/dbobjects/PXDdEdxPDFs.h>
19
20namespace Belle2 {
30
31 public:
32
35
38 {}
39
41 virtual void initialize() override;
42
44 virtual void event() override;
45
46 private:
47
49 void checkPDFs();
50
51 // module steering parameters
53 bool m_usePXD;
54 bool m_useSVD;
56 // collections
61 // PDF's for PID
65 };
66
68} // Belle2 namespace
Class for accessing objects in the database.
Definition: DBObjPtr.h:21
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Module that re-makes VXD PID likelihoods by taking dE/dx stored in VXDDedxTracks and lookup table PDF...
DBObjPtr< SVDdEdxPDFs > m_SVDDedxPDFs
look-up tables of SVD PDF's
virtual ~VXDDedxPIDRemakerModule()
Destructor.
bool m_usePXD
use PXD data for likelihood
StoreArray< VXDDedxLikelihood > m_dedxLikelihoods
collection of VXDDedxLikelihoods
DBObjPtr< PXDdEdxPDFs > m_PXDDedxPDFs
look-up tables of PXD PDF's
StoreArray< VXDDedxTrack > m_dedxTracks
collection of VXDDedxTracks
bool m_useSVD
use SVD data for likelihood
StoreArray< Track > m_tracks
collection of Tracks
bool m_useIndividualHits
use individual hits (true) or truncated mean (false) to determine likelihoods
virtual void initialize() override
Initialize the module.
virtual void event() override
This method is called for each event.
void checkPDFs()
Check the pdfs for consistency every time they change in the database.
VXDDedxPIDRemakerModule()
Default constructor.
Abstract base class for different kinds of events.