Belle II Software development
CDCBadWireCollector.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 <calibration/CalibrationCollectorModule.h>
12#include <cdc/dataobjects/CDCHit.h>
13#include <mdst/dataobjects/Track.h>
14#include <mdst/dataobjects/TrackFitResult.h>
15#include <tracking/trackingUtilities/eventdata/tracks/CDCTrack.h>
16#include <tracking/trackingUtilities/rootification/StoreWrappedObjPtr.h>
17#include <cdc/topology/CDCWire.h>
18#include <framework/datastore/StoreArray.h>
19#include <string>
20
21#include <Math/Vector3D.h>
22
23namespace Belle2 {
28 namespace CDC {
29
34
35 public:
40
45
49 void prepare() override;
53
54 void collect() override;
55
59 void finish() override;
60
61 private:
65 void buildEfficiencies(std::vector<unsigned short> wireHits, const Helix helixFit);
69 const CDCWire& getIntersectingWire(const ROOT::Math::XYZVector& xyz, const CDCWireLayer& layer,
70 const Helix& helixFit) const;
71
76
77 std::string m_trackArrayName;
78 std::string m_cdcHitArrayName;
79 std::string m_cdcTrackVectorName = "CDCTrackVector";
81
82 std::string m_effTreeName;
83
84 double m_minimumPt = 0;
85 double m_minimumNDF = 0;
86 unsigned short wireID;
87 unsigned short layerID;
88 float z;
89 bool isFound;
90 };
91 }
93}
double m_minimumNDF
minimum NDF required for track
std::string m_effTreeName
Name of efficiency tree for the output file.
TrackingUtilities::StoreWrappedObjPtr< std::vector< TrackingUtilities::CDCTrack > > m_CDCTracks
CDC tracks.
std::string m_cdcTrackVectorName
Belle2::CDCTrack vectorpointer name.
StoreArray< TrackFitResult > m_TrackFitResults
Track fit results.
std::string m_cdcHitArrayName
Belle2::CDCHit StoreArray name.
unsigned short wireID
wireID for hit-level wire monitoring
void collect() override
Event action, collect information for calibration.
void buildEfficiencies(std::vector< unsigned short > wireHits, const Helix helixFit)
Build efficiency.
std::string m_trackArrayName
Belle2::Track StoreArray name.
void prepare() override
Initializes the Module.
void finish() override
Termination action.
std::string m_trackFitResultArrayName
Belle2::TrackFitResult StoreArray name.
unsigned short layerID
layerID for hit-level wire monitoring
double m_minimumPt
minimum pt required for track
float z
z of hit fot hit-level wire monitoring
const CDCWire & getIntersectingWire(const ROOT::Math::XYZVector &xyz, const CDCWireLayer &layer, const Helix &helixFit) const
extrapolates the helix fit to a given layer and finds the wire which it would be hitting
bool isFound
flag for a hit that has been found near a track as expected by extrapolation
StoreArray< CDCHit > m_CDCHits
CDC hits.
Class representing a sense wire layer in the central drift chamber.
Class representing a sense wire in the central drift chamber.
Definition CDCWire.h:50
Helix parameter class.
Definition Helix.h:48
CalibrationCollectorModule()
Constructor. Sets the default prefix for calibration dataobjects.
Accessor to arrays stored in the data store.
Definition StoreArray.h:113
This class is for convenience access and registration of objects, that are stored inside the StoreWra...
Abstract base class for different kinds of events.