Belle II Software development
CDCTrigger2DFitterModule.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#ifndef CDCTRIGGER2DFITTERModule_H
9#define CDCTRIGGER2DFITTERModule_H
10
11#include "framework/core/Module.h"
12#include <string>
13#include <vector>
14
15#include <framework/datastore/StoreArray.h>
16#include <framework/datastore/StoreObjPtr.h>
17#include <trg/cdc/dataobjects/CDCTriggerSegmentHit.h>
18#include <trg/cdc/dataobjects/CDCTriggerTrack.h>
19#include <framework/dataobjects/BinnedEventT0.h>
20
21namespace Belle2 {
29
30 public:
31
34
37
39 virtual void initialize() override;
40
42 virtual void event() override;
43
44 protected:
48 std::string m_EventTimeName;
54 unsigned m_minHits;
59
60 private:
62 std::vector<double> nWires = {};
64 std::vector<double> rr = {};
66 std::vector<std::vector<double>> xtTables = {};
67
74 };
75
77} // namespace Belle2
78
79#endif // CDCTrigger2DFitterModule_H
Module for the 2D Fitter of the CDC trigger.
std::string m_EventTimeName
name of the event time StoreObjPtr
virtual void initialize() override
Initialize the module and register DataStore arrays.
virtual void event() override
Run the 2D fitter for an event.
CDCTrigger2DFitterModule()
Constructor, for setting module description and parameters.
std::string m_outputCollectionName
Name of the StoreArray containing the resulting fitted tracks.
StoreArray< CDCTriggerTrack > m_finderTracks
list of input tracks from finder
std::string m_inputCollectionName
Name of the StoreArray containing the input tracks from the finder.
std::vector< std::vector< double > > xtTables
geometry constants: drift length - drift time relation
bool m_xtSimple
Switch between nominal drift velocity and xt table.
bool m_useDriftTime
Switch between drift time and wire position for phi.
StoreArray< CDCTriggerTrack > m_fitterTracks
list of output tracks from fitter
unsigned m_minHits
Minimal number of hits required for fitting.
StoreObjPtr< BinnedEventT0 > m_eventTime
StoreObjPtr contraining the event time.
std::vector< double > nWires
geometry constants: number of wires per super layer
std::vector< double > rr
geometry constants: radius of priority layers
std::string m_hitCollectionName
Name of the StoreArray containing the input track segment hits.
Base class for Modules.
Definition: Module.h:72
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.