ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
ThinInDetClustersAlg Class Referencefinal

#include <ThinInDetClustersAlg.h>

Inheritance diagram for ThinInDetClustersAlg:
Collaboration diagram for ThinInDetClustersAlg:

Public Member Functions

 ThinInDetClustersAlg (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor with parameters: More...
 
virtual ~ThinInDetClustersAlg ()=default
 Destructor: More...
 
virtual StatusCode initialize () override
 Athena algorithm's initalize hook. More...
 
virtual StatusCode execute (const EventContext &ctx) const override
 Athena algorithm's execute hook. More...
 
virtual StatusCode finalize () override
 Athena algorithm's finalize hook. More...
 
StatusCode initializeParser (const ExpressionParsing::SelectionArg< 1 > &selection_string)
 
StatusCode finalizeParser ()
 
virtual bool updateDataNeeds (const std::vector< const DataObjID * > &input_data_in, const std::vector< const DataObjID * > &output_data_in, std::vector< Gaudi::DataHandle * > &new_input_handles, std::vector< Gaudi::DataHandle * > &new_output_handles) override
 Inform a dynamic data consumer about all consumed or produced data. More...
 
virtual bool renounceInput (const DataObjID &output_data_id) override
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Member Functions

StatusCode _initializeParser (const ExpressionParsing::SelectionArg< NUM_PARSER > &selection_string, ExpressionParsing::AppendLoaderFunc pre_xaod_loader=ExpressionParsing::NoLoaderFunc, ExpressionParsing::AppendLoaderFunc post_xaod_loader=ExpressionParsing::NoLoaderFunc)
 
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Protected Attributes

ExpressionParsing::SGxAODProxyLoaderm_xAODProxyLoader
 The expression parser. More...
 
std::unique_ptr< ExpressionParsing::IProxyLoaderm_proxyLoaders
 
std::conditional< NUM_PARSER==1, std::unique_ptr< ExpressionParsing::ExpressionParser >, std::array< std::unique_ptr< ExpressionParsing::ExpressionParser >, NUM_PARSER > >::type m_parser
 
std::vector< std::string > m_renounce
 

Private Types

enum  MeasurementType {
  TrkState_unidentified = 0, TrkState_Pixel = 1, TrkState_SCT = 2, TrkState_TRT = 3,
  TrkState_Pseudo = 8, TrkState_Vertex = 9, TrkState_SpacePoint = 11, TrkState_NumberOfMeasurementTypes =16
}
 Track state types Subset of enum MeasurementType from Athena: Tracking/TrkEvent/TrkEventPrimitives/TrkEventPrimitives/TrackStateDefs.h. More...
 
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

void selectTrackHits (const xAOD::TrackParticleContainer &inputTrackParticles, const std::vector< bool > &inputMask, MeasurementType detTypeToSelect, std::vector< bool > &outputStatesMask, std::vector< bool > &outputMeasurementsMask) const
 Select TrackStateValidation and TrackMeasurementValidation objects that are used in the (thinned) track container. More...
 
StatusCode filterTrackHits (MeasurementType detTypeToSelect, const xAOD::TrackParticleContainer &inputTrackParticles, const std::vector< bool > &inputMask, const SG::ThinningHandleKey< xAOD::TrackStateValidationContainer > &statesKey, const SG::ThinningHandleKey< xAOD::TrackMeasurementValidationContainer > &measurementsKey, std::atomic< unsigned int > &ntot_states, std::atomic< unsigned int > &npass_states, std::atomic< unsigned int > &npass_measurements, const EventContext &ctx) const
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

std::atomic< unsigned int > m_ntot {}
 Counters and keys for xAOD::TrackParticle container. More...
 
std::atomic< unsigned int > m_npass {}
 
BooleanProperty m_thinPixelHitsOnTrack { this, "ThinPixelHitsOnTrack", false, ""}
 Thinning logic. More...
 
BooleanProperty m_thinSCTHitsOnTrack { this, "ThinSCTHitsOnTrack", false, ""}
 
BooleanProperty m_thinTRTHitsOnTrack { this, "ThinTRTHitsOnTrack", false, ""}
 
StringProperty m_streamName { this, "StreamName", "", "Name of the stream being thinned" }
 Stream for object thinning selections. More...
 
StringProperty m_selectionString { this, "SelectionString", "InDetTrackParticles.pt>10*GeV", "Selection string for each TrackParticle container" }
 Expressions for object thinning selections Default InDetTrackParticles (also accomplished through flag.Tracking.thinPixelClustersSelectionStrings defaults) More...
 
SG::ThinningHandleKey< xAOD::TrackParticleContainerm_inDetSGKey { this, "InDetTrackParticlesKey", "InDetTrackParticles", "" }
 SGKey for TrackParticleContainer. More...
 
std::atomic< unsigned int > m_ntot_pix_states {}
 Counters and keys for xAOD::TrackStateValidation and xAOD::TrackMeasurementValidation containers. More...
 
std::atomic< unsigned int > m_npass_pix_states {}
 
SG::ThinningHandleKey< xAOD::TrackStateValidationContainerm_statesPixSGKey { this, "InDetTrackStatesPixKey", "PixelMSOSs", "" }
 
std::atomic< unsigned int > m_ntot_pix_measurements {}
 
std::atomic< unsigned int > m_npass_pix_measurements {}
 
SG::ThinningHandleKey< xAOD::TrackMeasurementValidationContainerm_measurementsPixSGKey { this, "InDetTrackMeasurementsPixKey", "PixelClusters", "" }
 
std::atomic< unsigned int > m_ntot_sct_states {}
 
std::atomic< unsigned int > m_npass_sct_states {}
 
SG::ThinningHandleKey< xAOD::TrackStateValidationContainerm_statesSctSGKey { this, "InDetTrackStatesSctKey", "SCT_MSOSs", "" }
 
std::atomic< unsigned int > m_ntot_sct_measurements {}
 
std::atomic< unsigned int > m_npass_sct_measurements {}
 
SG::ThinningHandleKey< xAOD::TrackMeasurementValidationContainerm_measurementsSctSGKey { this, "InDetTrackMeasurementsSctKey", "SCT_Clusters", "" }
 
std::atomic< unsigned int > m_ntot_trt_states {}
 
std::atomic< unsigned int > m_npass_trt_states {}
 
SG::ThinningHandleKey< xAOD::TrackStateValidationContainerm_statesTrtSGKey { this, "InDetTrackStatesTrtKey", "TRT_MSOSs", "" }
 
std::atomic< unsigned int > m_ntot_trt_measurements {}
 
std::atomic< unsigned int > m_npass_trt_measurements {}
 
SG::ThinningHandleKey< xAOD::TrackMeasurementValidationContainerm_measurementsTrtSGKey { this, "InDetTrackMeasurementsTrtKey", "TRT_DriftCircles", "" }
 
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollectionm_SCTDetEleCollKey {this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"}
 For P->T converter of SCT_Clusters. More...
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 32 of file ThinInDetClustersAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ MeasurementType

Track state types Subset of enum MeasurementType from Athena: Tracking/TrkEvent/TrkEventPrimitives/TrkEventPrimitives/TrackStateDefs.h.

Enumerator
TrkState_unidentified 
TrkState_Pixel 
TrkState_SCT 
TrkState_TRT 
TrkState_Pseudo 
TrkState_Vertex 
TrkState_SpacePoint 
TrkState_NumberOfMeasurementTypes 

Definition at line 112 of file ThinInDetClustersAlg.h.

112  {
114  TrkState_Pixel = 1,
115  TrkState_SCT = 2,
116  TrkState_TRT = 3,
117  TrkState_Pseudo = 8,
118  TrkState_Vertex = 9,
119  TrkState_SpacePoint = 11,
121  };

Constructor & Destructor Documentation

◆ ThinInDetClustersAlg()

ThinInDetClustersAlg::ThinInDetClustersAlg ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Constructor with parameters:

Definition at line 33 of file ThinInDetClustersAlg.cxx.

35  :
36 
38 {
39 }

◆ ~ThinInDetClustersAlg()

virtual ThinInDetClustersAlg::~ThinInDetClustersAlg ( )
virtualdefault

Destructor:

Member Function Documentation

◆ _initializeParser()

StatusCode ExpressionParserUserBase< ::AthReentrantAlgorithm , NUM_PARSER >::_initializeParser ( const ExpressionParsing::SelectionArg< NUM_PARSER > &  selection_string,
ExpressionParsing::AppendLoaderFunc  pre_xaod_loader = ExpressionParsing::NoLoaderFunc,
ExpressionParsing::AppendLoaderFunc  post_xaod_loader = ExpressionParsing::NoLoaderFunc 
)
protectedinherited

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64 {
65  return 0;
66 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode ThinInDetClustersAlg::execute ( const EventContext &  ctx) const
overridevirtual

Athena algorithm's execute hook.

Definition at line 117 of file ThinInDetClustersAlg.cxx.

118 {
119 
120  // Retrieve main TrackParticle collection
122  ATH_CHECK( importedTrackParticles.isValid() );
123 
127  ATH_CHECK( importedMeasurements.isValid() );
128  unsigned int size_measurements = importedMeasurements->size();
129  m_ntot_pix_measurements += size_measurements;
130  }
133  ATH_CHECK( importedMeasurements.isValid() );
134  unsigned int size_measurements = importedMeasurements->size();
135  m_ntot_sct_measurements += size_measurements;
136  }
139  ATH_CHECK( importedMeasurements.isValid() );
140  unsigned int size_measurements = importedMeasurements->size();
141  m_ntot_trt_measurements += size_measurements;
142  }
144 
145  // Check the event contains tracks
146  unsigned int nTracks = importedTrackParticles->size();
147  if (nTracks==0) return StatusCode::SUCCESS;
148 
149  // Set up a mask with the same entries as the full TrackParticle collection
150  std::vector<bool> mask;
151  mask.assign(nTracks,false); // default: don't keep any tracks
152  m_ntot += nTracks;
153 
154  // Execute the text parser and update the mask
155  if (m_parser) {
156  std::vector<int> entries = m_parser->evaluateAsVector();
157  unsigned int nEntries = entries.size();
158  // check the sizes are compatible
159  if (nTracks != nEntries ) {
160  ATH_MSG_ERROR("Sizes incompatible! Are you sure your selection string used ID TrackParticles?");
161  return StatusCode::FAILURE;
162  }
163  // set mask
164  for (unsigned int i=0; i<nTracks; ++i) {
165  if (entries[i]==1) {
166  mask[i]=true; // Set track mask
167  m_npass += 1; // Count passing tracks.
168  }
169  }
170  }
171 
175  *importedTrackParticles,
176  mask,
182  ctx) );
183  }
184  if (m_thinSCTHitsOnTrack) {
186  TrkState_SCT,
187  *importedTrackParticles,
188  mask,
194  ctx) );
195  }
196  if (m_thinTRTHitsOnTrack) {
198  TrkState_TRT,
199  *importedTrackParticles,
200  mask,
206  ctx) );
207  }
208 
209  return StatusCode::SUCCESS;
210 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

90 {
91  // If we didn't find any symlinks to add, just return the collection
92  // from the base class. Otherwise, return the extended collection.
93  if (!m_extendedExtraObjects.empty()) {
95  }
96  return BaseAlg::extraOutputDeps();
97 }

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96  {
97  return execState( ctx ).filterPassed();
98  }

◆ filterTrackHits()

StatusCode ThinInDetClustersAlg::filterTrackHits ( MeasurementType  detTypeToSelect,
const xAOD::TrackParticleContainer inputTrackParticles,
const std::vector< bool > &  inputMask,
const SG::ThinningHandleKey< xAOD::TrackStateValidationContainer > &  statesKey,
const SG::ThinningHandleKey< xAOD::TrackMeasurementValidationContainer > &  measurementsKey,
std::atomic< unsigned int > &  ntot_states,
std::atomic< unsigned int > &  npass_states,
std::atomic< unsigned int > &  npass_measurements,
const EventContext &  ctx 
) const
private

Definition at line 212 of file ThinInDetClustersAlg.cxx.

222 {
223  std::vector<bool> maskStates;
224  std::vector<bool> maskMeasurements;
225 
226  selectTrackHits (inputTrackParticles, inputMask, detTypeToSelect,
227  maskStates, maskMeasurements);
228 
229  auto count = [] (const std::vector<bool>& m)
230  { return std::count (m.begin(), m.end(), true); };
231  npass_states += count (maskStates);
232  npass_measurements += count (maskMeasurements);
233 
234  if (!statesKey.empty()) {
235  SG::ThinningHandle<xAOD::TrackStateValidationContainer> importedStates(statesKey, ctx);
236  ATH_CHECK( importedStates.isValid() );
237  unsigned int size_states = importedStates->size();
238  if (size_states == 0) {
239  ATH_MSG_WARNING("States container is empty: " << statesKey.key());
240  }
241  else {
242  ntot_states += size_states;
243  if (maskStates.size() > size_states) {
244  ATH_MSG_ERROR("States mask size mismatch: mask size (" << maskStates.size() << ") > number of states (" << size_states << ").");
245  return StatusCode::FAILURE;
246  }
247  maskStates.resize (size_states);
248  importedStates.keep (maskStates);
249  }
250  }
251 
252  if (!measurementsKey.empty()) {
253  SG::ThinningHandle<xAOD::TrackMeasurementValidationContainer> importedMeasurements(measurementsKey, ctx);
254  ATH_CHECK( importedMeasurements.isValid() );
255  unsigned int size_measurements = importedMeasurements->size();
256  if (size_measurements == 0) {
257  ATH_MSG_WARNING("Measurements container is empty: " << measurementsKey.key());
258  }
259  else {
260  if (maskMeasurements.size() > size_measurements) {
261  ATH_MSG_ERROR("Measurements mask size mismatch: mask size (" << maskMeasurements.size() << ") > number of measurements (" << size_measurements << ").");
262  return StatusCode::FAILURE;
263  }
264  maskMeasurements.resize (size_measurements);
265  importedMeasurements.keep (maskMeasurements);
266  }
267  }
268 
269  return StatusCode::SUCCESS;
270 }

◆ finalize()

StatusCode ThinInDetClustersAlg::finalize ( )
overridevirtual

Athena algorithm's finalize hook.

Definition at line 85 of file ThinInDetClustersAlg.cxx.

86 {
87  ATH_MSG_VERBOSE("finalize() ...");
88  ATH_MSG_INFO("Processed "<< m_ntot <<" tracks, "<< m_npass<< " had their hits retained ");
90  ATH_MSG_INFO("Pixel state objects thinning, Total / Passed (Efficiency): "
92  << " (" << (m_ntot_pix_states == 0 ? 0 : static_cast<float>(m_npass_pix_states) / m_ntot_pix_states) << ")");
93  ATH_MSG_INFO("Total pixel measurements objects from *all* track collections:: " << m_ntot_pix_measurements);
94  ATH_MSG_INFO("Pixel measurements objects from this track collection passing selection: " << m_npass_pix_measurements);
95  }
97  ATH_MSG_INFO("SCT state objects thinning, Total / Passed (Efficiency): "
99  << " (" << (m_ntot_sct_states == 0 ? 0 : static_cast<float>(m_npass_sct_states) / m_ntot_sct_states) << ")");
100  ATH_MSG_INFO("Total SCT measurements objects from *all* track collections:: " << m_ntot_sct_measurements);
101  ATH_MSG_INFO("SCT measurements objects from this track collection passing selection: " << m_npass_sct_measurements);
102  }
103  if (m_thinTRTHitsOnTrack) {
104  ATH_MSG_INFO("TRT state objects thinning, Total / Passed (Efficiency): "
106  << " (" << (m_ntot_trt_states == 0 ? 0 : static_cast<float>(m_npass_trt_states) / m_ntot_trt_states) << ")");
107  ATH_MSG_INFO("Total TRT measurements objects from *all* track collections:: " << m_ntot_trt_measurements);
108  ATH_MSG_INFO("TRT measurements objects from this track collection passing selection: " << m_npass_trt_measurements);
109  }
110 
112 
113  return StatusCode::SUCCESS;
114 }

◆ finalizeParser()

StatusCode ExpressionParserUserBase< ::AthReentrantAlgorithm , NUM_PARSER >::finalizeParser
inherited

◆ initialize()

StatusCode ThinInDetClustersAlg::initialize ( )
overridevirtual

Athena algorithm's initalize hook.

Definition at line 43 of file ThinInDetClustersAlg.cxx.

44 {
45 
46  // Set up the text-parsing machinery for thinning the tracks directly according to user cuts
47  if (m_selectionString.empty()) {
48  ATH_MSG_FATAL("No inner detector track selection strings provided!");
49  return StatusCode::FAILURE;
50  }
51  ATH_MSG_INFO("Track thinning selection string: " << m_selectionString);
53 
54  ATH_CHECK( m_inDetSGKey.initialize (m_streamName) );
55  ATH_MSG_INFO("Using " << m_inDetSGKey << "as the source collection for inner detector track particles");
56 
58  ATH_MSG_INFO("Pixel states collection as source for thinning: " << m_statesPixSGKey.key());
59  ATH_MSG_INFO("Pixel measurements collection as source for thinning: " << m_measurementsPixSGKey.key());
60  }
62  ATH_MSG_INFO("SCT states collection as source for thinning: " << m_statesSctSGKey.key());
63  ATH_MSG_INFO("SCT measurements collection as source for thinning: " << m_measurementsSctSGKey.key());
64  }
66  ATH_MSG_INFO("TRT states collection as source for thinning: " << m_statesTrtSGKey.key());
67  ATH_MSG_INFO("TRT measurements collection as source for thinning: " << m_measurementsTrtSGKey.key());
68  }
69 
70  ATH_MSG_DEBUG("Initializing measurement ThinningHandleKeys.");
74 
75  ATH_MSG_DEBUG("Initializing MSOS ThinningHandleKeyArrays.");
79 
81 
82  return StatusCode::SUCCESS;
83 }

◆ initializeParser()

StatusCode ExpressionParserUser< ::AthReentrantAlgorithm , 1 >::initializeParser ( const ExpressionParsing::SelectionArg< 1 > &  selection_string)
inherited

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isClonable()

bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::isClonable
overridevirtualinherited

Specify if the algorithm is clonable.

Reentrant algorithms are clonable.

Definition at line 68 of file AthCommonReentrantAlgorithm.cxx.

52 {
53  // Reentrant algorithms are clonable.
54  return true;
55 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ renounceInput()

virtual bool ExpressionParserUserBase< ::AthReentrantAlgorithm , NUM_PARSER >::renounceInput ( const DataObjID &  output_data_id)
overridevirtualinherited

◆ selectTrackHits()

void ThinInDetClustersAlg::selectTrackHits ( const xAOD::TrackParticleContainer inputTrackParticles,
const std::vector< bool > &  inputMask,
MeasurementType  detTypeToSelect,
std::vector< bool > &  outputStatesMask,
std::vector< bool > &  outputMeasurementsMask 
) const
private

Select TrackStateValidation and TrackMeasurementValidation objects that are used in the (thinned) track container.

Definition at line 272 of file ThinInDetClustersAlg.cxx.

276 {
277  using StatesOnTrack = std::vector<ElementLink<xAOD::TrackStateValidationContainer>>;
278 
279  // loop over track particles, consider only the ones pre-selected by the mask
280  int trkIndex=-1;
281  for (const xAOD::TrackParticle* trkIt : inputTrackParticles) {
282  trkIndex++;
283 
284  if (not inputMask[trkIndex]) continue;
285 
286  // loop over the TrackStateValidation objects, and add them to the outputStatesMask
287  static const SG::AuxElement::ConstAccessor< StatesOnTrack > trackStateAcc("Reco_msosLink");
288  if( ! trackStateAcc.isAvailable( *trkIt ) ) {
289  ATH_MSG_INFO("Cannot find TrackState link from xAOD::TrackParticle. Skipping track.");
290  continue;
291  }
292  const StatesOnTrack& measurementsOnTrack = trackStateAcc(*trkIt);
293 
294  for( const ElementLink<xAOD::TrackStateValidationContainer>& trkState_el : measurementsOnTrack) {
295  if (not trkState_el.isValid()) {
296  ATH_MSG_INFO("Cannot find a valid link to TrackStateValidation object for track index: " << trkIndex);
297  continue; //not a valid link
298  }
299  if ((*trkState_el)->detType() != detTypeToSelect) {
300  ATH_MSG_VERBOSE("Discarding TrackState as not of correct type " << detTypeToSelect);
301  continue;
302  }
303  if (trkState_el.index() >= outputStatesMask.size()) {
304  outputStatesMask.resize (trkState_el.index()+1);
305  }
306  outputStatesMask[trkState_el.index()] = true;
307 
308  // get the corresponding TrackMeasurementValidation object, if any, and add it to the outputMeasurementsMask
309  const ElementLink<xAOD::TrackMeasurementValidationContainer> trkMeasurement_el = (*trkState_el)->trackMeasurementValidationLink();
310  if (not trkMeasurement_el.isValid()) {
311  ATH_MSG_VERBOSE("Cannot find a valid link to TrackMeasurementValidation object from track state for track index: " << trkIndex
312  << ", trackState index: " << trkState_el.index());
313  continue; //not a valid link
314  }
315  if (*trkMeasurement_el == nullptr) {
316  ATH_MSG_VERBOSE("Invalid pointer to TrackMeasurementValidation object from track state for track index: " << trkIndex
317  << ", trackState index: " << trkState_el.index());
318  continue; //not linking to a valid object -- is it necessary?
319  }
320  if (trkMeasurement_el.index() >= outputMeasurementsMask.size()) {
321  outputMeasurementsMask.resize (trkMeasurement_el.index()+1);
322  }
323  outputMeasurementsMask[trkMeasurement_el.index()] = true;
324  }
325  } // end loop over xAOD::TrackParticle container
326 }

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100  {
101  execState( ctx ).setFilterPassed( state );
102  }

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77 {
78  return BaseAlg::sysExecute (ctx);
79 }

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107  {
109 
110  if (sc.isFailure()) {
111  return sc;
112  }
113 
114  ServiceHandle<ICondSvc> cs("CondSvc",name());
115  for (auto h : outputHandles()) {
116  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117  // do this inside the loop so we don't create the CondSvc until needed
118  if ( cs.retrieve().isFailure() ) {
119  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120  return StatusCode::SUCCESS;
121  }
122  if (cs->regHandle(this,*h).isFailure()) {
123  sc = StatusCode::FAILURE;
124  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125  << " with CondSvc");
126  }
127  }
128  }
129  return sc;
130 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateDataNeeds()

virtual bool ExpressionParserUserBase< ::AthReentrantAlgorithm , NUM_PARSER >::updateDataNeeds ( const std::vector< const DataObjID * > &  input_data_in,
const std::vector< const DataObjID * > &  output_data_in,
std::vector< Gaudi::DataHandle * > &  new_input_handles,
std::vector< Gaudi::DataHandle * > &  new_output_handles 
)
overridevirtualinherited

Inform a dynamic data consumer about all consumed or produced data.

Parameters
input_data_inthe input data object IDs of all algorithms and tools
output_data_inthe output data object IDs of all algorithms and tools
new_input_handlesthe new input data handles added by this call
new_output_handlesthe new output data handles added by this call
Returns
true if the consumer did update its handles, false otherwise

Implements IDynamicDataConsumer.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_inDetSGKey

SG::ThinningHandleKey<xAOD::TrackParticleContainer> ThinInDetClustersAlg::m_inDetSGKey { this, "InDetTrackParticlesKey", "InDetTrackParticles", "" }
private

SGKey for TrackParticleContainer.

Definition at line 73 of file ThinInDetClustersAlg.h.

◆ m_measurementsPixSGKey

SG::ThinningHandleKey<xAOD::TrackMeasurementValidationContainer> ThinInDetClustersAlg::m_measurementsPixSGKey { this, "InDetTrackMeasurementsPixKey", "PixelClusters", "" }
private

Definition at line 84 of file ThinInDetClustersAlg.h.

◆ m_measurementsSctSGKey

SG::ThinningHandleKey<xAOD::TrackMeasurementValidationContainer> ThinInDetClustersAlg::m_measurementsSctSGKey { this, "InDetTrackMeasurementsSctKey", "SCT_Clusters", "" }
private

Definition at line 94 of file ThinInDetClustersAlg.h.

◆ m_measurementsTrtSGKey

SG::ThinningHandleKey<xAOD::TrackMeasurementValidationContainer> ThinInDetClustersAlg::m_measurementsTrtSGKey { this, "InDetTrackMeasurementsTrtKey", "TRT_DriftCircles", "" }
private

Definition at line 104 of file ThinInDetClustersAlg.h.

◆ m_npass

std::atomic<unsigned int> ThinInDetClustersAlg::m_npass {}
mutableprivate

Definition at line 53 of file ThinInDetClustersAlg.h.

◆ m_npass_pix_measurements

std::atomic<unsigned int> ThinInDetClustersAlg::m_npass_pix_measurements {}
mutableprivate

Definition at line 83 of file ThinInDetClustersAlg.h.

◆ m_npass_pix_states

std::atomic<unsigned int> ThinInDetClustersAlg::m_npass_pix_states {}
mutableprivate

Definition at line 78 of file ThinInDetClustersAlg.h.

◆ m_npass_sct_measurements

std::atomic<unsigned int> ThinInDetClustersAlg::m_npass_sct_measurements {}
mutableprivate

Definition at line 93 of file ThinInDetClustersAlg.h.

◆ m_npass_sct_states

std::atomic<unsigned int> ThinInDetClustersAlg::m_npass_sct_states {}
mutableprivate

Definition at line 88 of file ThinInDetClustersAlg.h.

◆ m_npass_trt_measurements

std::atomic<unsigned int> ThinInDetClustersAlg::m_npass_trt_measurements {}
mutableprivate

Definition at line 103 of file ThinInDetClustersAlg.h.

◆ m_npass_trt_states

std::atomic<unsigned int> ThinInDetClustersAlg::m_npass_trt_states {}
mutableprivate

Definition at line 98 of file ThinInDetClustersAlg.h.

◆ m_ntot

std::atomic<unsigned int> ThinInDetClustersAlg::m_ntot {}
mutableprivate

Counters and keys for xAOD::TrackParticle container.

Definition at line 52 of file ThinInDetClustersAlg.h.

◆ m_ntot_pix_measurements

std::atomic<unsigned int> ThinInDetClustersAlg::m_ntot_pix_measurements {}
mutableprivate

Definition at line 82 of file ThinInDetClustersAlg.h.

◆ m_ntot_pix_states

std::atomic<unsigned int> ThinInDetClustersAlg::m_ntot_pix_states {}
mutableprivate

Counters and keys for xAOD::TrackStateValidation and xAOD::TrackMeasurementValidation containers.

Definition at line 77 of file ThinInDetClustersAlg.h.

◆ m_ntot_sct_measurements

std::atomic<unsigned int> ThinInDetClustersAlg::m_ntot_sct_measurements {}
mutableprivate

Definition at line 92 of file ThinInDetClustersAlg.h.

◆ m_ntot_sct_states

std::atomic<unsigned int> ThinInDetClustersAlg::m_ntot_sct_states {}
mutableprivate

Definition at line 87 of file ThinInDetClustersAlg.h.

◆ m_ntot_trt_measurements

std::atomic<unsigned int> ThinInDetClustersAlg::m_ntot_trt_measurements {}
mutableprivate

Definition at line 102 of file ThinInDetClustersAlg.h.

◆ m_ntot_trt_states

std::atomic<unsigned int> ThinInDetClustersAlg::m_ntot_trt_states {}
mutableprivate

Definition at line 97 of file ThinInDetClustersAlg.h.

◆ m_parser

std::conditional< NUM_PARSER == 1, std::unique_ptr<ExpressionParsing::ExpressionParser>, std::array< std::unique_ptr<ExpressionParsing::ExpressionParser>, NUM_PARSER> >::type ExpressionParserUserBase< ::AthReentrantAlgorithm , NUM_PARSER >::m_parser
protectedinherited

Definition at line 100 of file ExpressionParserUser.h.

◆ m_proxyLoaders

std::unique_ptr<ExpressionParsing::IProxyLoader> ExpressionParserUserBase< ::AthReentrantAlgorithm , NUM_PARSER >::m_proxyLoaders
protectedinherited

Definition at line 97 of file ExpressionParserUser.h.

◆ m_renounce

std::vector<std::string> ExpressionParserUserBase< ::AthReentrantAlgorithm , NUM_PARSER >::m_renounce
protectedinherited

Definition at line 102 of file ExpressionParserUser.h.

◆ m_SCTDetEleCollKey

SG::ReadCondHandleKey<InDetDD::SiDetectorElementCollection> ThinInDetClustersAlg::m_SCTDetEleCollKey {this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"}
private

For P->T converter of SCT_Clusters.

Definition at line 108 of file ThinInDetClustersAlg.h.

◆ m_selectionString

StringProperty ThinInDetClustersAlg::m_selectionString { this, "SelectionString", "InDetTrackParticles.pt>10*GeV", "Selection string for each TrackParticle container" }
private

Expressions for object thinning selections Default InDetTrackParticles (also accomplished through flag.Tracking.thinPixelClustersSelectionStrings defaults)

Definition at line 69 of file ThinInDetClustersAlg.h.

◆ m_statesPixSGKey

SG::ThinningHandleKey<xAOD::TrackStateValidationContainer> ThinInDetClustersAlg::m_statesPixSGKey { this, "InDetTrackStatesPixKey", "PixelMSOSs", "" }
private

Definition at line 79 of file ThinInDetClustersAlg.h.

◆ m_statesSctSGKey

SG::ThinningHandleKey<xAOD::TrackStateValidationContainer> ThinInDetClustersAlg::m_statesSctSGKey { this, "InDetTrackStatesSctKey", "SCT_MSOSs", "" }
private

Definition at line 89 of file ThinInDetClustersAlg.h.

◆ m_statesTrtSGKey

SG::ThinningHandleKey<xAOD::TrackStateValidationContainer> ThinInDetClustersAlg::m_statesTrtSGKey { this, "InDetTrackStatesTrtKey", "TRT_MSOSs", "" }
private

Definition at line 99 of file ThinInDetClustersAlg.h.

◆ m_streamName

StringProperty ThinInDetClustersAlg::m_streamName { this, "StreamName", "", "Name of the stream being thinned" }
private

Stream for object thinning selections.

Definition at line 63 of file ThinInDetClustersAlg.h.

◆ m_thinPixelHitsOnTrack

BooleanProperty ThinInDetClustersAlg::m_thinPixelHitsOnTrack { this, "ThinPixelHitsOnTrack", false, ""}
private

Thinning logic.

Definition at line 55 of file ThinInDetClustersAlg.h.

◆ m_thinSCTHitsOnTrack

BooleanProperty ThinInDetClustersAlg::m_thinSCTHitsOnTrack { this, "ThinSCTHitsOnTrack", false, ""}
private

Definition at line 57 of file ThinInDetClustersAlg.h.

◆ m_thinTRTHitsOnTrack

BooleanProperty ThinInDetClustersAlg::m_thinTRTHitsOnTrack { this, "ThinTRTHitsOnTrack", false, ""}
private

Definition at line 59 of file ThinInDetClustersAlg.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_xAODProxyLoader

ExpressionParsing::SGxAODProxyLoader* ExpressionParserUserBase< ::AthReentrantAlgorithm , NUM_PARSER >::m_xAODProxyLoader
protectedinherited

The expression parser.

Definition at line 96 of file ExpressionParserUser.h.


The documentation for this class was generated from the following files:
ThinInDetClustersAlg::TrkState_Vertex
@ TrkState_Vertex
Definition: ThinInDetClustersAlg.h:118
ThinInDetClustersAlg::m_npass_trt_states
std::atomic< unsigned int > m_npass_trt_states
Definition: ThinInDetClustersAlg.h:98
ThinInDetClustersAlg::m_statesSctSGKey
SG::ThinningHandleKey< xAOD::TrackStateValidationContainer > m_statesSctSGKey
Definition: ThinInDetClustersAlg.h:90
ExpressionParserUserBase< ::AthReentrantAlgorithm, 1 >::finalizeParser
StatusCode finalizeParser()
ThinInDetClustersAlg::m_npass_sct_states
std::atomic< unsigned int > m_npass_sct_states
Definition: ThinInDetClustersAlg.h:88
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:67
ThinInDetClustersAlg::m_selectionString
StringProperty m_selectionString
Expressions for object thinning selections Default InDetTrackParticles (also accomplished through fla...
Definition: ThinInDetClustersAlg.h:70
ExpressionParserUserBase< ::AthReentrantAlgorithm, 1 >::m_parser
std::conditional< NUM_PARSER==1, std::unique_ptr< ExpressionParsing::ExpressionParser >, std::array< std::unique_ptr< ExpressionParsing::ExpressionParser >, NUM_PARSER > >::type m_parser
Definition: ExpressionParserUser.h:100
ThinInDetClustersAlg::m_npass
std::atomic< unsigned int > m_npass
Definition: ThinInDetClustersAlg.h:53
AthCommonDataStore::renounce
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
Definition: AthCommonDataStore.h:380
ThinInDetClustersAlg::m_thinTRTHitsOnTrack
BooleanProperty m_thinTRTHitsOnTrack
Definition: ThinInDetClustersAlg.h:60
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
ThinInDetClustersAlg::TrkState_SpacePoint
@ TrkState_SpacePoint
Definition: ThinInDetClustersAlg.h:119
ThinInDetClustersAlg::TrkState_Pseudo
@ TrkState_Pseudo
Definition: ThinInDetClustersAlg.h:117
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition: ConstAccessor.h:55
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
SG::VarHandleKey::empty
bool empty() const
Test if the key is blank.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:150
ThinInDetClustersAlg::selectTrackHits
void selectTrackHits(const xAOD::TrackParticleContainer &inputTrackParticles, const std::vector< bool > &inputMask, MeasurementType detTypeToSelect, std::vector< bool > &outputStatesMask, std::vector< bool > &outputMeasurementsMask) const
Select TrackStateValidation and TrackMeasurementValidation objects that are used in the (thinned) tra...
Definition: ThinInDetClustersAlg.cxx:272
XMLtoHeader.count
count
Definition: XMLtoHeader.py:84
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:459
SG::ThinningHandle
Handle for requesting thinning for a data object.
Definition: ThinningHandle.h:84
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
ThinInDetClustersAlg::m_ntot
std::atomic< unsigned int > m_ntot
Counters and keys for xAOD::TrackParticle container.
Definition: ThinInDetClustersAlg.h:52
ThinInDetClustersAlg::m_statesPixSGKey
SG::ThinningHandleKey< xAOD::TrackStateValidationContainer > m_statesPixSGKey
Definition: ThinInDetClustersAlg.h:80
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
AthCommonReentrantAlgorithm::extraOutputDeps
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
Definition: AthCommonReentrantAlgorithm.cxx:89
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ThinInDetClustersAlg::TrkState_TRT
@ TrkState_TRT
Definition: ThinInDetClustersAlg.h:116
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
lumiFormat.i
int i
Definition: lumiFormat.py:85
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ThinInDetClustersAlg::m_npass_sct_measurements
std::atomic< unsigned int > m_npass_sct_measurements
Definition: ThinInDetClustersAlg.h:93
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition: AthCommonDataStore.h:145
ThinInDetClustersAlg::m_measurementsPixSGKey
SG::ThinningHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurementsPixSGKey
Definition: ThinInDetClustersAlg.h:85
ThinInDetClustersAlg::m_thinSCTHitsOnTrack
BooleanProperty m_thinSCTHitsOnTrack
Definition: ThinInDetClustersAlg.h:58
AthCommonReentrantAlgorithm::sysExecute
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
Definition: AthCommonReentrantAlgorithm.cxx:76
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
ThinInDetClustersAlg::m_streamName
StringProperty m_streamName
Stream for object thinning selections.
Definition: ThinInDetClustersAlg.h:64
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
ThinInDetClustersAlg::TrkState_SCT
@ TrkState_SCT
Definition: ThinInDetClustersAlg.h:115
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
ExpressionParserUser<::AthReentrantAlgorithm >::initializeParser
StatusCode initializeParser(const ExpressionParsing::SelectionArg< 1 > &selection_string)
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
ThinInDetClustersAlg::m_inDetSGKey
SG::ThinningHandleKey< xAOD::TrackParticleContainer > m_inDetSGKey
SGKey for TrackParticleContainer.
Definition: ThinInDetClustersAlg.h:74
ThinInDetClustersAlg::m_statesTrtSGKey
SG::ThinningHandleKey< xAOD::TrackStateValidationContainer > m_statesTrtSGKey
Definition: ThinInDetClustersAlg.h:100
ExpressionParserUser
Definition: ExpressionParserUser.h:107
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
ThinInDetClustersAlg::m_measurementsTrtSGKey
SG::ThinningHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurementsTrtSGKey
Definition: ThinInDetClustersAlg.h:105
ThinInDetClustersAlg::m_ntot_pix_states
std::atomic< unsigned int > m_ntot_pix_states
Counters and keys for xAOD::TrackStateValidation and xAOD::TrackMeasurementValidation containers.
Definition: ThinInDetClustersAlg.h:77
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
ThinInDetClustersAlg::m_ntot_trt_measurements
std::atomic< unsigned int > m_ntot_trt_measurements
Definition: ThinInDetClustersAlg.h:102
ThinInDetClustersAlg::m_npass_trt_measurements
std::atomic< unsigned int > m_npass_trt_measurements
Definition: ThinInDetClustersAlg.h:103
ThinInDetClustersAlg::TrkState_Pixel
@ TrkState_Pixel
Definition: ThinInDetClustersAlg.h:114
ThinInDetClustersAlg::m_ntot_trt_states
std::atomic< unsigned int > m_ntot_trt_states
Definition: ThinInDetClustersAlg.h:97
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ThinInDetClustersAlg::m_npass_pix_states
std::atomic< unsigned int > m_npass_pix_states
Definition: ThinInDetClustersAlg.h:78
ThinInDetClustersAlg::TrkState_NumberOfMeasurementTypes
@ TrkState_NumberOfMeasurementTypes
Definition: ThinInDetClustersAlg.h:120
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
ThinInDetClustersAlg::m_ntot_pix_measurements
std::atomic< unsigned int > m_ntot_pix_measurements
Definition: ThinInDetClustersAlg.h:82
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
entries
double entries
Definition: listroot.cxx:49
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthCommonReentrantAlgorithm.cxx:107
ThinInDetClustersAlg::m_thinPixelHitsOnTrack
BooleanProperty m_thinPixelHitsOnTrack
Thinning logic.
Definition: ThinInDetClustersAlg.h:56
ThinInDetClustersAlg::filterTrackHits
StatusCode filterTrackHits(MeasurementType detTypeToSelect, const xAOD::TrackParticleContainer &inputTrackParticles, const std::vector< bool > &inputMask, const SG::ThinningHandleKey< xAOD::TrackStateValidationContainer > &statesKey, const SG::ThinningHandleKey< xAOD::TrackMeasurementValidationContainer > &measurementsKey, std::atomic< unsigned int > &ntot_states, std::atomic< unsigned int > &npass_states, std::atomic< unsigned int > &npass_measurements, const EventContext &ctx) const
Definition: ThinInDetClustersAlg.cxx:213
ThinInDetClustersAlg::TrkState_unidentified
@ TrkState_unidentified
Definition: ThinInDetClustersAlg.h:113
ThinInDetClustersAlg::m_SCTDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
For P->T converter of SCT_Clusters.
Definition: ThinInDetClustersAlg.h:108
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:801
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
ThinInDetClustersAlg::m_ntot_sct_measurements
std::atomic< unsigned int > m_ntot_sct_measurements
Definition: ThinInDetClustersAlg.h:92
ThinInDetClustersAlg::m_measurementsSctSGKey
SG::ThinningHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurementsSctSGKey
Definition: ThinInDetClustersAlg.h:95
AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthCommonReentrantAlgorithm.h:114
dqBeamSpot.nEntries
int nEntries
Definition: dqBeamSpot.py:72
ThinInDetClustersAlg::m_npass_pix_measurements
std::atomic< unsigned int > m_npass_pix_measurements
Definition: ThinInDetClustersAlg.h:83
ThinInDetClustersAlg::m_ntot_sct_states
std::atomic< unsigned int > m_ntot_sct_states
Definition: ThinInDetClustersAlg.h:87
fitman.k
k
Definition: fitman.py:528
python.SystemOfUnits.m
float m
Definition: SystemOfUnits.py:106
ServiceHandle< ICondSvc >