Belle II Software development
ElectronValCollectorModule.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 <vector>
12
13#include <calibration/CalibrationCollectorModule.h>
14
15#include <mdst/dataobjects/SoftwareTriggerResult.h>
16#include <mdst/dataobjects/Track.h>
17#include <mdst/dataobjects/TrackFitResult.h>
18
19#include <framework/datastore/StoreArray.h>
20
21#include <cdc/dataobjects/CDCDedxTrack.h>
22#include <cdc/dbobjects/CDCDedxWireGain.h>
23
24
25
26namespace Belle2 {
36
37 public:
38
43
47 virtual void prepare() override;
48
52 virtual void collect() override;
53
57 void setEoverPCutValue(double value) {m_setEoP = value;}
58
59 private:
63 bool m_cuts;
64
71
74 double m_setEoP;
75
77 double m_injRing{ -1};
78 double m_injTime{ -1};
79
81 double m_pt = -1;
82 double m_dedx{ -1};
83 double m_costh{ -1};
84 double m_p{ -1};
85 int m_charge{0};
86 int m_run{ -1};
87 int m_nhits{ -1};
88
90 std::vector<int> m_wire;
91 std::vector<double> m_dedxhit;
92 std::vector<int> m_layer;
93 std::vector<double> m_enta;
94 std::vector<double> m_entaRS;
95
96 };
97
98}
CalibrationCollectorModule()
Constructor. Sets the default prefix for calibration dataobjects.
Class for accessing objects in the database.
Definition DBObjPtr.h:21
void setEoverPCutValue(double value)
Set range for EoP cut.
std::vector< int > m_wire
hit level information
std::vector< int > m_layer
continuous layer number for the hit
bool m_cuts
Electron collector variables.
StoreArray< TrackFitResult > m_trackFitResults
Required array for TrackFitResults.
StoreObjPtr< SoftwareTriggerResult > m_trgResult
required input
std::vector< double > m_dedxhit
dE/dx for the hit
int m_nhits
number of dE/dx hits on the track
virtual void collect() override
Fill ROOT objects.
StoreArray< Track > m_tracks
Required array for Tracks.
ElectronValCollectorModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void prepare() override
Create and book ROOT objects.
DBObjPtr< CDCDedxWireGain > m_DBWireGains
Wire gain DB object.
std::vector< double > m_entaRS
rescaled entrance angle for the hit
std::vector< double > m_enta
entrance angle for the hit
StoreArray< CDCDedxTrack > m_dedxTracks
Required array for CDCDedxTracks.
double m_injTime
time since last injection
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.