9 #include "cdc/modules/cdcRecoTrackFilter/CDCRecoTrackFilterModule.h"
10 #include <tracking/dataobjects/RecoHitInformation.h>
11 #include <boost/foreach.hpp>
21 setPropertyFlags(c_ParallelProcessingCertified);
22 setDescription(
"use this module to exclude Layers in fitting, after TrackFinding");
23 addParam(
"RecoTracksColName", m_recoTrackArrayName,
"Name of collection to hold Belle2::RecoTrack", std::string(
""));
24 addParam(
"ExcludeSLayer", m_excludeSLayer,
"Super layers (0-8) not used in the fitting", std::vector<unsigned short> {});
25 addParam(
"ExcludeICLayer", m_excludeICLayer,
"layers (0-55) not used in the fitting", std::vector<unsigned short> {});
28 CDCRecoTrackFilterModule::~CDCRecoTrackFilterModule()
32 void CDCRecoTrackFilterModule::initialize()
34 m_RecoTracks.isRequired(m_recoTrackArrayName);
37 void CDCRecoTrackFilterModule::beginRun()
41 void CDCRecoTrackFilterModule::event()
44 int nTr = m_RecoTracks.getEntries();
45 for (
int i = 0; i < nTr; ++i) {
49 unsigned short slay = wireid.getISuperLayer();
50 unsigned short iclay = wireid.getICLayer();
51 for (
unsigned short j = 0; j < m_excludeSLayer.size(); ++j) {
52 if (slay == m_excludeSLayer.at(j)) {
53 track->getRecoHitInformation(cdchit)->setUseInFit(
false);
57 for (
unsigned short j = 0; j < m_excludeICLayer.size(); ++j) {
58 if (iclay == m_excludeICLayer.at(j)) {
59 track->getRecoHitInformation(cdchit)->setUseInFit(
false);
66 void CDCRecoTrackFilterModule::endRun()
70 void CDCRecoTrackFilterModule::terminate()
Class containing the result of the unpacker in raw data and the result of the digitizer in simulation...
unsigned short getID() const
Getter for encoded wire number.
The module excluding hits of specified Slayers in the RecoTracks.
This is the Reconstruction Event-Data Model Track.
Class to identify a wire inside the CDC.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.