#include <TestRoICreatorTool.h>
|
| Gaudi::Property< std::vector< double > > | m_eta_center_rois {this, "EtaCenters", {}, "Center of the RoI - eta coordinate"} |
| Gaudi::Property< std::vector< double > > | m_phi_center_rois {this, "PhiCenters", {}, "Center of the RoI - phi coordinate"} |
| Gaudi::Property< std::vector< double > > | m_z_center_rois {this, "ZCenters", {}, "Center of the RoI - z coordinate"} |
| Gaudi::Property< std::vector< double > > | m_half_eta_width_rois {this, "HalfEtaWidths", {}, "Half width of the RoI - eta coordinate"} |
| Gaudi::Property< std::vector< double > > | m_half_phi_width_rois {this, "HalfPhiWidths", {}, "Half width of the RoI - phi coordinate"} |
| Gaudi::Property< std::vector< double > > | m_half_z_width_rois {this, "HalfZWidths", {}, "Half width of the RoI - z coordinate"} |
Definition at line 13 of file TestRoICreatorTool.h.
◆ TestRoICreatorTool()
| ActsTrk::TestRoICreatorTool::TestRoICreatorTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~TestRoICreatorTool()
| virtual ActsTrk::TestRoICreatorTool::~TestRoICreatorTool |
( |
| ) |
|
|
virtualdefault |
◆ defineRegionsOfInterest()
| StatusCode ActsTrk::TestRoICreatorTool::defineRegionsOfInterest |
( |
const EventContext & | ctx, |
|
|
TrigRoiDescriptorCollection & | collectionRoI ) const |
|
overridevirtual |
Definition at line 48 of file TestRoICreatorTool.cxx.
50{
52
53 if (isComposite) {
56 }
57
59
65
67 if (not useZconstraint) {
69 phi,
phi - phi_half_width,
phi + phi_half_width);
70 } else {
74 phi,
phi - phi_half_width,
phi + phi_half_width,
75 z,
z - z_half_width,
z + z_half_width);
76 }
77
78
79
80 if (isComposite) {
82 } else {
83 collectionRoI.
push_back( std::move(toAdd) );
84 }
85 }
86
90 ATH_MSG_DEBUG(
"This is a composite RoI made from " << collectionRoI.
back()->
size() <<
" constituents");
91 }
92
93 return StatusCode::SUCCESS;
94}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
Athena::TPCnvVers::Current TrigRoiDescriptor
const T * back() const
Access the last element in the collection as an rvalue.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
void push_back(const IRoiDescriptor *roi)
add a RoiDescriptor
void setComposite(bool b=true)
virtual unsigned size() const override final
number of constituents
virtual bool composite() const override final
SuperRoI compatability methods.
◆ initialize()
| StatusCode ActsTrk::TestRoICreatorTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 15 of file TestRoICreatorTool.cxx.
16{
18
19
20
22 ATH_MSG_ERROR(
"No RoI definition defined, cannot create the test RoI.");
23 return StatusCode::FAILURE;
24 }
25
26
30 ATH_MSG_ERROR(
"Inconsistent definitions for eta/phi vectors. Check their definitions!");
31 return StatusCode::FAILURE;
32 }
33
34
36 ATH_MSG_ERROR(
"Inconsistent definitions for the z vectors. Check their definitions!");
37 return StatusCode::FAILURE;
38 }
39
41 ATH_MSG_ERROR(
"Z vector is not empty but it is not consistent with the phi/eta counterpart. Check their definitions!");
42 return StatusCode::FAILURE;
43 }
44
45 return StatusCode::SUCCESS;
46}
◆ m_eta_center_rois
| Gaudi::Property< std::vector<double> > ActsTrk::TestRoICreatorTool::m_eta_center_rois {this, "EtaCenters", {}, "Center of the RoI - eta coordinate"} |
|
private |
Definition at line 29 of file TestRoICreatorTool.h.
29{this, "EtaCenters", {}, "Center of the RoI - eta coordinate"};
◆ m_half_eta_width_rois
| Gaudi::Property< std::vector<double> > ActsTrk::TestRoICreatorTool::m_half_eta_width_rois {this, "HalfEtaWidths", {}, "Half width of the RoI - eta coordinate"} |
|
private |
Definition at line 33 of file TestRoICreatorTool.h.
33{this, "HalfEtaWidths", {}, "Half width of the RoI - eta coordinate"};
◆ m_half_phi_width_rois
| Gaudi::Property< std::vector<double> > ActsTrk::TestRoICreatorTool::m_half_phi_width_rois {this, "HalfPhiWidths", {}, "Half width of the RoI - phi coordinate"} |
|
private |
Definition at line 34 of file TestRoICreatorTool.h.
34{this, "HalfPhiWidths", {}, "Half width of the RoI - phi coordinate"};
◆ m_half_z_width_rois
| Gaudi::Property< std::vector<double> > ActsTrk::TestRoICreatorTool::m_half_z_width_rois {this, "HalfZWidths", {}, "Half width of the RoI - z coordinate"} |
|
private |
Definition at line 35 of file TestRoICreatorTool.h.
35{this, "HalfZWidths", {}, "Half width of the RoI - z coordinate"};
◆ m_phi_center_rois
| Gaudi::Property< std::vector<double> > ActsTrk::TestRoICreatorTool::m_phi_center_rois {this, "PhiCenters", {}, "Center of the RoI - phi coordinate"} |
|
private |
Definition at line 30 of file TestRoICreatorTool.h.
30{this, "PhiCenters", {}, "Center of the RoI - phi coordinate"};
◆ m_z_center_rois
| Gaudi::Property< std::vector<double> > ActsTrk::TestRoICreatorTool::m_z_center_rois {this, "ZCenters", {}, "Center of the RoI - z coordinate"} |
|
private |
Definition at line 31 of file TestRoICreatorTool.h.
31{this, "ZCenters", {}, "Center of the RoI - z coordinate"};
The documentation for this class was generated from the following files: