#include <JetCaloClusterThinning.h>
|
std::atomic< unsigned int > | m_ntotTopo |
|
std::atomic< unsigned int > | m_npassTopo |
|
StringProperty | m_streamName |
|
SG::ThinningHandleKey< xAOD::CaloClusterContainer > | m_TopoClSGKey { this, "TopoClCollectionSGKey", "CaloCalTopoCluster", "" } |
|
SG::ReadHandleKey< xAOD::JetContainer > | m_sgKey { this, "SGKey", "", "SG key of jet container to thin" } |
|
Gaudi::Property< std::vector< std::string > > | m_addClusterSGKey { this, "AdditionalClustersKey", {}, ""} |
|
SG::ThinningHandleKey< xAOD::CaloClusterContainer > | m_tmpAddClusterKey { this, "TmpAddClustersKey","LCOriginTopoClusters",""} |
|
std::vector< SG::ThinningHandleKey< xAOD::CaloClusterContainer > > | m_addClusterKeys |
|
std::string | m_selectionString |
|
Definition at line 28 of file JetCaloClusterThinning.h.
◆ JetCaloClusterThinning()
DerivationFramework::JetCaloClusterThinning::JetCaloClusterThinning |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ ~JetCaloClusterThinning()
DerivationFramework::JetCaloClusterThinning::~JetCaloClusterThinning |
( |
| ) |
|
|
virtualdefault |
◆ doThinning()
StatusCode DerivationFramework::JetCaloClusterThinning::doThinning |
( |
| ) |
const |
|
overridevirtual |
Definition at line 85 of file JetCaloClusterThinning.cxx.
87 const EventContext& ctx = Gaudi::Hive::currentContext();
94 unsigned int nTopoClusters = importedTopoCaloCluster->size();
95 if (nTopoClusters == 0)
96 return StatusCode::SUCCESS;
99 std::vector<bool> topomask;
100 topomask.assign(nTopoClusters,
false);
106 importedJets = importedJetsHandle.ptr();
107 if (importedJets ==
nullptr) {
109 <<
" found in StoreGate!");
110 return StatusCode::FAILURE;
112 unsigned int nJets(importedJets->size());
114 return StatusCode::SUCCESS;
115 std::vector<const xAOD::Jet*> jetToCheck;
120 std::vector<int>
entries = m_parser->evaluateAsVector();
124 ATH_MSG_ERROR(
"Sizes incompatible! Are you sure your selection string "
125 "used jets objects??");
126 return StatusCode::FAILURE;
129 for (
unsigned int i = 0;
i < nJets; ++
i)
131 jetToCheck.push_back((*importedJets)[
i]);
134 if(jetToCheck.empty())
135 return StatusCode::SUCCESS;
138 const auto&
links =
jet->constituentLinks();
139 for(
const auto& link :
links ) {
141 if( ! link.isValid() ) {
144 topomask.at( link.index() ) =
true;
150 const auto&
links =
jet->constituentLinks();
151 for(
const auto& link :
links ) {
153 if( ! link.isValid() ) {
156 topomask.at( link.index() ) =
true;
162 for (
unsigned int i = 0;
i < nTopoClusters; ++
i) {
168 importedTopoCaloCluster.keep(topomask);
172 tempClusters.keep(topomask);
175 return StatusCode::SUCCESS;
◆ finalize()
StatusCode DerivationFramework::JetCaloClusterThinning::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode DerivationFramework::JetCaloClusterThinning::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 40 of file JetCaloClusterThinning.cxx.
46 <<
"as the source collection for topo calo clusters");
49 return StatusCode::FAILURE;
52 "Calo clusters associated with objects in "
54 <<
" will be retained in this format with the rest being thinned away");
70 return StatusCode::SUCCESS;
◆ setJetClustersMask() [1/2]
void DerivationFramework::JetCaloClusterThinning::setJetClustersMask |
( |
std::vector< bool > & |
, |
|
|
const xAOD::JetContainer *& |
|
|
) |
| const |
|
private |
◆ setJetClustersMask() [2/2]
void DerivationFramework::JetCaloClusterThinning::setJetClustersMask |
( |
std::vector< bool > & |
, |
|
|
std::vector< const xAOD::Jet * > & |
|
|
) |
| const |
|
private |
◆ m_addClusterKeys
◆ m_addClusterSGKey
Gaudi::Property<std::vector<std::string> > DerivationFramework::JetCaloClusterThinning::m_addClusterSGKey { this, "AdditionalClustersKey", {}, ""} |
|
private |
◆ m_npassTopo
std::atomic<unsigned int> DerivationFramework::JetCaloClusterThinning::m_npassTopo |
|
private |
◆ m_ntotTopo
std::atomic<unsigned int> DerivationFramework::JetCaloClusterThinning::m_ntotTopo |
|
mutableprivate |
◆ m_selectionString
std::string DerivationFramework::JetCaloClusterThinning::m_selectionString |
|
private |
◆ m_sgKey
◆ m_streamName
StringProperty DerivationFramework::JetCaloClusterThinning::m_streamName |
|
private |
Initial value:{ this,
"StreamName",
"",
"Name of the stream being thinned" }
Definition at line 44 of file JetCaloClusterThinning.h.
◆ m_tmpAddClusterKey
◆ m_TopoClSGKey
The documentation for this class was generated from the following files: