9 #include <tracking/modules/svdROIFinder/SVDROIFinderModule.h>
10 #include <framework/datastore/StoreArray.h>
11 #include <framework/datastore/RelationArray.h>
12 #include <genfit/MaterialEffects.h>
34 addParam(
"tolerancePhi",
m_tolerancePhi,
"Tolerance by finding sensor in phi coordinate (radians).",
double(0.15));
36 addParam(
"toleranceZ",
m_toleranceZ,
"Tolerance by finding sensor in Z coordinate (cm).",
double(0.5));
38 addParam(
"sigmaSystU",
m_sigmaSystU,
" systematic sigma in the u local coordinate ",
double(0.025));
39 addParam(
"sigmaSystV",
m_sigmaSystV,
" systematic sigma in the V local coordinate ",
double(0.025));
40 addParam(
"numSigmaTotU",
m_numSigmaTotU,
" number of sigmas (total) in the U local coordinate ",
double(10));
41 addParam(
"numSigmaTotV",
m_numSigmaTotV,
" number of sigmas (total) in the V local coordinate ",
double(10));
42 addParam(
"maxWidthU",
m_maxWidthU,
" upper limit on width of the ROI in the U local coordinate (cm) ",
double(0.5));
43 addParam(
"maxWidthV",
m_maxWidthV,
" upper limit on width of the ROI in the V local coordinate (cm) ",
double(0.5));
67 if (!genfit::MaterialEffects::getInstance()->isInitialized()) {
68 B2FATAL(
"Material effects not set up. Please use SetupGenfitExtrapolationModule.");
76 B2DEBUG(21,
"||| SVDROIFinder Parameters:");
107 B2DEBUG(21,
"RecoTracks array is missing, no SVD ROIs");
115 recoTrackToSVDIntercepts.
create();
118 SVDInterceptsToROIids.
create();
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
Translator for ROI-geometry-information into a list of pixels.
void fillRoiIDList(StoreArray< SVDIntercept > *listOfIntercepts, StoreArray< ROIid > *ROIidList)
Append the ROIid to the list listToBeFilled.
Low-level class to create/modify relations between StoreArrays.
bool create(bool replace=false)
Create an empty relation array in the data store.
This Class implements the interceptor of the SVD tracks on the PXD layers.
void fillInterceptList(StoreArray< SVDIntercept > *listToBeFilled, const StoreArray< RecoTrack > &trackList, RelationArray *recoTrackToSVDIntercepts)
Fill the list of PXD intecepts corresponding to the list of track candidates.
double m_maxWidthV
maximum V width of the ROI
std::string m_recoTracksListName
track list name
SVDInterceptor * m_theSVDInterceptor
the svd interceptor object
std::string m_ROIListName
ROI list name.
StoreArray< SVDIntercept > m_intercepts
svd intercept store array
StoreArray< ROIid > m_rois
rois store array
void initialize() override
Initializes the Module.
SVDROIFinderModule()
Constructor of the module.
double m_maxWidthU
maximum U width of the ROI
void event() override
Event loop.
std::string m_SVDInterceptListName
intercept list name
void endRun() override
Deletion of objects at the end of the run.
void terminate() override
Termination action.
StoreArray< RecoTrack > m_recotracks
reco tracks store array
double m_tolerancePhi
determination of interesting planes, tolerance in phi
ROIStripTranslator * m_theStripTranslator
the strip translator object
double m_sigmaSystV
fixed width to add in quadrature to the extrapolation error and obtain the ROI V width
double m_numSigmaTotV
number of sigma (stat+syst) determining the U width of the ROI
void beginRun() override
Initializations at the beginning of the run.
~SVDROIFinderModule()
Destructor of the module.
double m_sigmaSystU
fixed width to add in quadrature to the extrapolation error and obtain the ROI U width
ROIinfo m_ROIinfo
contains the parameters that can be changed by the user
double m_numSigmaTotU
number of sigma (stat+syst) determining the U width of the ROI
double m_toleranceZ
determination of interesting planes, tolerance along Z
bool isOptional(const std::string &name="")
Tell the DataStore about an optional input.
bool isValid() const
Check wether the array was registered.
int getEntries() const
Get the number of objects in the array.
bool registerRelationTo(const StoreArray< TO > &toArray, DataStore::EDurability durability=DataStore::c_Event, DataStore::EStoreFlags storeFlags=DataStore::c_WriteOut, const std::string &namedRelation="") const
Register a relation to the given StoreArray.
REG_MODULE(arichBtest)
Register the Module.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
Abstract base class for different kinds of events.
double sigmaSystV
fixed width to add in quadrature to the extrapolation error and obtain the ROI V width
double numSigmaTotU
number of sigma (stat+syst) determining the U width of the ROI
double maxWidthU
maximum U width of the ROI
std::string PXDInterceptListName
Intercept list name.
double sigmaSystU
fixed width to add in quadrature to the extrapolation error and obtain the ROI U width
std::string recoTracksListName
track list name
double numSigmaTotV
number of sigma (stat+syst) determining the U width of the ROI
std::string ROIListName
ROI list name.
double maxWidthV
maximum U width of the ROI