Belle II Software development
CDCDedxSkimModule.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/gearbox/Const.h>
13#include <framework/datastore/StoreArray.h>
14
15#include <mdst/dataobjects/Track.h>
16
17#include <vector>
18
19namespace Belle2 {
24
31
32 class CDCDedxSkimModule : public Module {
33
34 public:
35
38
40 virtual ~CDCDedxSkimModule() override;
41
43 virtual void initialize() override;
44
46 virtual void event() override;
47
49 virtual void terminate() override;
50
52 bool isGoodTrack(const Track* track, const Const::ChargedStable& chargedStable);
53
54 private:
55
56 // required input
58
63
66 std::vector<int> m_eventType;
67
71 std::vector<double> m_EoverP;
73 std::vector<double> m_EccOverEcm;
74
75 };
76
77}
CDCDedxSkimModule()
Constructor, for setting module description and parameters.
std::vector< double > m_EoverP
range for E/p per track
int m_trackID
the track number (for one event)
virtual void initialize() override
Initialize routine.
virtual void event() override
Check the event and track quality and apply clean up cuts.
virtual ~CDCDedxSkimModule() override
Destructor.
virtual void terminate() override
End of the event processing.
std::vector< int > m_eventType
Event type: (0) bhabha, (1) radiative bhabha, (2) two photon (e+e-), (3) di-muon, (4) radiative di-mu...
bool isGoodTrack(const Track *track, const Const::ChargedStable &chargedStable)
A method to check whether a track passes some nominal cuts.
int m_eventID
the event number
StoreArray< Track > m_tracks
Required array of input tracks.
int m_unmatchedCluster
number of unmatched clusters per event
std::vector< double > m_EccOverEcm
range for Ecc/Ecm
Provides a type-safe way to pass members of the chargedStableSet set.
Definition Const.h:590
Module()
Constructor.
Definition Module.cc:30
Accessor to arrays stored in the data store.
Definition StoreArray.h:113
Class that bundles various TrackFitResults.
Definition Track.h:25
Abstract base class for different kinds of events.