#include <EventInfoPixelDecorator.h>
|
Gaudi::Property< std::string > | m_selectionString { this, "SelectionString", "" , "" } |
|
std::atomic< unsigned int > | m_ntot {} |
|
std::atomic< unsigned int > | m_npass {} |
|
SG::ReadHandleKey< xAOD::EventInfo > | m_eventInfoKey { this, "EventInfoKey", "EventInfo", ""} |
|
Gaudi::Property< std::string > | m_decorationPrefix { this, "DecorationPrefix", "", ""} |
|
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > | m_pixelKey { this, "TrackMeasurementValidationKey", "PixelClusters", ""} |
|
std::vector< SG::WriteDecorHandleKey< xAOD::EventInfo > > | m_intDecorKeys |
|
Definition at line 26 of file EventInfoPixelDecorator.h.
◆ EIntDecor
◆ EventInfoPixelDecorator()
DerivationFramework::EventInfoPixelDecorator::EventInfoPixelDecorator |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ addBranches()
StatusCode DerivationFramework::EventInfoPixelDecorator::addBranches |
( |
| ) |
const |
|
virtual |
Definition at line 79 of file EventInfoPixelDecorator.cxx.
82 const EventContext& ctx = Gaudi::Hive::currentContext();
85 CHECK(
eventInfo.isValid() ? StatusCode::SUCCESS : StatusCode::FAILURE);
91 return StatusCode::FAILURE;
95 unsigned int nClusters =
clusters->size();
96 if (nClusters==0)
return StatusCode::SUCCESS;
99 std::vector<bool>
mask;
100 mask.assign(nClusters,
false);
105 std::vector<int>
entries = m_parser->evaluateAsVector();
109 ATH_MSG_ERROR(
"Sizes incompatible! Are you sure your selection string used the same collection as the input collection??");
110 return StatusCode::FAILURE;
117 unsigned int n_pass=0;
118 for (
unsigned int i=0;
i<nClusters; ++
i) {
119 if (
mask[
i]) ++n_pass;
127 std::vector<int>
keys;
130 if( !
mask[++
i] )
continue;
133 int clus_layer = acc_layer(*clusIt);
135 int clus_eta_module = acc_eta_module(*clusIt);
137 int clus_phi_module = acc_phi_module(*clusIt);
139 int key = clus_layer * 10000 + clus_eta_module * 100 + clus_phi_module;
140 unsigned int index = 9999;
141 for(
unsigned int j = 0; j <
keys.size() ; j++ )
159 assert(int_decor_handles.size() ==
kNIntDecor);
160 for(
unsigned int decorate_i=0; decorate_i<int_decor_handles.size(); ++decorate_i) {
161 int_decor_handles[decorate_i](*eventInfo) = std::move(
vec[decorate_i]);
164 return StatusCode::SUCCESS;
◆ finalize()
StatusCode DerivationFramework::EventInfoPixelDecorator::finalize |
( |
| ) |
|
◆ initialize()
StatusCode DerivationFramework::EventInfoPixelDecorator::initialize |
( |
| ) |
|
Definition at line 30 of file EventInfoPixelDecorator.cxx.
35 ATH_MSG_FATAL(
"No inner detector track selection string provided!");
36 return StatusCode::FAILURE;
40 ATH_MSG_WARNING(
"No decoration prefix name provided for the output of EventInfoPixelDecorator!");
44 ATH_MSG_ERROR(
"No collection provided for EventInfoPixelDecorator!");
45 return StatusCode::FAILURE;
59 std::vector<std::string>
names;
68 return StatusCode::SUCCESS;
◆ m_decorationPrefix
Gaudi::Property<std::string> DerivationFramework::EventInfoPixelDecorator::m_decorationPrefix { this, "DecorationPrefix", "", ""} |
|
private |
◆ m_eventInfoKey
◆ m_intDecorKeys
◆ m_npass
std::atomic<unsigned int> DerivationFramework::EventInfoPixelDecorator::m_npass {} |
|
mutableprivate |
◆ m_ntot
std::atomic<unsigned int> DerivationFramework::EventInfoPixelDecorator::m_ntot {} |
|
mutableprivate |
◆ m_pixelKey
◆ m_selectionString
Gaudi::Property<std::string> DerivationFramework::EventInfoPixelDecorator::m_selectionString { this, "SelectionString", "" , "" } |
|
private |
The documentation for this class was generated from the following files:
void createDecoratorKeys(T_Parent &parent, const SG::ReadHandleKey< T_Cont > &container_key, const std::string &prefix, const std::vector< std::string > &decor_names, std::vector< SG::WriteDecorHandleKey< T_Cont > > &decor_out)