Belle II Software prerelease-10-00-00a
CDCDedxHadronCollectorModule.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
12#include <calibration/CalibrationCollectorModule.h>
13
14#include <mdst/dataobjects/SoftwareTriggerResult.h>
15#include <mdst/dataobjects/EventLevelTriggerTimeInfo.h>
16#include <mdst/dataobjects/Track.h>
17#include <mdst/dataobjects/TrackFitResult.h>
18#include <mdst/dataobjects/ECLCluster.h>
19#include <mdst/dataobjects/PIDLikelihood.h>
20
21#include <framework/datastore/StoreArray.h>
22#include <framework/dataobjects/EventMetaData.h>
23
24#include <cdc/dataobjects/CDCDedxTrack.h>
25#include <cdc/dbobjects/CDCDedxWireGain.h>
26
27#include <analysis/dataobjects/ParticleList.h>
28#include <analysis/dataobjects/Particle.h>
29#include <analysis/utility/ReferenceFrame.h>
30
31#include <cdc/dbobjects/CDCDedxInjectionTime.h>
32
33#include <TTree.h>
34#include <TString.h>
35#include <TH1D.h>
36#include <TH1I.h>
37#include <TMath.h>
38#include <vector>
39
40namespace Belle2 {
45
54
55 public:
56
61
65 virtual void prepare() override;
66
70 virtual void collect() override;
71
72
73 private:
77 std::vector<std::string> m_strParticleList;
78
79 std::map<std::string, std::string> m_pdgMap;
80
82 double m_minCut;
83 double m_maxCut;
84
86 double m_dedx{ -1};
87 double m_dedxnosat{ -1};
88 double m_costh{ -1};
89 double m_p{ -1};
90 int m_charge{0};
91 int m_nhits{ -1};
92
94 double m_injRing{ -1};
95 double m_injTime{ -1};
96 double m_timeReso{ -1};
97
99
100 };
101
102}
std::map< std::string, std::string > m_pdgMap
map to relate input strings to the right particle type
double m_maxCut
high cut dedx curve for proton sample
int m_nhits
number of dE/dx hits on the track
virtual void collect() override
Fill ROOT objects.
virtual void prepare() override
Create and book ROOT objects.
double m_dedxnosat
dE/dx truncated mean no-saturation
CDCDedxHadronCollectorModule()
Constructor: Sets the description, the properties and the parameters of the module.
DBObjPtr< CDCDedxInjectionTime > m_DBInjectTime
Injection time DB object.
std::vector< std::string > m_strParticleList
Hadron collector variables.
CalibrationCollectorModule()
Constructor. Sets the default prefix for calibration dataobjects.
Class for accessing objects in the database.
Definition DBObjPtr.h:21
Abstract base class for different kinds of events.