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 () 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 const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
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 > &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, unsigned int &ntot_states, unsigned int &npass_states, unsigned int &npass_measurements) const
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

unsigned int m_ntot = 0
 Counters and keys for xAOD::TrackParticle container. More...
 
unsigned int m_npass = 0
 
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...
 
unsigned int m_ntot_pix_states = 0
 Counters and keys for xAOD::TrackStateValidation and xAOD::TrackMeasurementValidation containers. More...
 
unsigned int m_npass_pix_states = 0
 
SG::ThinningHandleKey< xAOD::TrackStateValidationContainerm_statesPixSGKey { this, "InDetTrackStatesPixKey", "PixelMSOSs", "" }
 
unsigned int m_ntot_pix_measurements = 0
 
unsigned int m_npass_pix_measurements = 0
 
SG::ThinningHandleKey< xAOD::TrackMeasurementValidationContainerm_measurementsPixSGKey { this, "InDetTrackMeasurementsPixKey", "PixelClusters", "" }
 
unsigned int m_ntot_sct_states = 0
 
unsigned int m_npass_sct_states = 0
 
SG::ThinningHandleKey< xAOD::TrackStateValidationContainerm_statesSctSGKey { this, "InDetTrackStatesSctKey", "SCT_MSOSs", "" }
 
unsigned int m_ntot_sct_measurements = 0
 
unsigned int m_npass_sct_measurements = 0
 
SG::ThinningHandleKey< xAOD::TrackMeasurementValidationContainerm_measurementsSctSGKey { this, "InDetTrackMeasurementsSctKey", "SCT_Clusters", "" }
 
unsigned int m_ntot_trt_states = 0
 
unsigned int m_npass_trt_states = 0
 
SG::ThinningHandleKey< xAOD::TrackStateValidationContainerm_statesTrtSGKey { this, "InDetTrackStatesTrtKey", "TRT_MSOSs", "" }
 
unsigned int m_ntot_trt_measurements = 0
 
unsigned int m_npass_trt_measurements = 0
 
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
 
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< 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< ::AthAlgorithm , 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

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  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< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  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< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  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< Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  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< 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< 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< 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< 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< 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< Algorithm > >::declareProperty ( Gaudi::Property< T > &  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< 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< 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< 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 ( )
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  }
183  if (m_thinSCTHitsOnTrack) {
185  TrkState_SCT,
186  *importedTrackParticles,
187  mask,
193  }
194  if (m_thinTRTHitsOnTrack) {
196  TrkState_TRT,
197  *importedTrackParticles,
198  mask,
204  }
205 
206  return StatusCode::SUCCESS;
207 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< 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 & AthAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

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

Definition at line 50 of file AthAlgorithm.cxx.

51 {
52  // If we didn't find any symlinks to add, just return the collection
53  // from the base class. Otherwise, return the extended collection.
54  if (!m_extendedExtraObjects.empty()) {
56  }
57  return Algorithm::extraOutputDeps();
58 }

◆ 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,
unsigned int &  ntot_states,
unsigned int &  npass_states,
unsigned int &  npass_measurements 
) const
private

Definition at line 209 of file ThinInDetClustersAlg.cxx.

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

◆ 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< ::AthAlgorithm , 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< ::AthAlgorithm , 1 >::initializeParser ( const ExpressionParsing::SelectionArg< 1 > &  selection_string)
inherited

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< 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.

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< 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< 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< 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< 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< 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< ::AthAlgorithm , 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 268 of file ThinInDetClustersAlg.cxx.

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

◆ sysInitialize()

StatusCode AthAlgorithm::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< Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, PyAthena::Alg, and AthHistogramAlgorithm.

Definition at line 66 of file AthAlgorithm.cxx.

66  {
68 
69  if (sc.isFailure()) {
70  return sc;
71  }
72  ServiceHandle<ICondSvc> cs("CondSvc",name());
73  for (auto h : outputHandles()) {
74  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
75  // do this inside the loop so we don't create the CondSvc until needed
76  if ( cs.retrieve().isFailure() ) {
77  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
78  return StatusCode::SUCCESS;
79  }
80  if (cs->regHandle(this,*h).isFailure()) {
81  sc = StatusCode::FAILURE;
82  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
83  << " with CondSvc");
84  }
85  }
86  }
87  return sc;
88 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< 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< ::AthAlgorithm , 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< 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< 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< Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthAlgorithm::m_extendedExtraObjects
privateinherited

Definition at line 79 of file AthAlgorithm.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

unsigned int ThinInDetClustersAlg::m_npass = 0
private

Definition at line 53 of file ThinInDetClustersAlg.h.

◆ m_npass_pix_measurements

unsigned int ThinInDetClustersAlg::m_npass_pix_measurements = 0
private

Definition at line 83 of file ThinInDetClustersAlg.h.

◆ m_npass_pix_states

unsigned int ThinInDetClustersAlg::m_npass_pix_states = 0
private

Definition at line 78 of file ThinInDetClustersAlg.h.

◆ m_npass_sct_measurements

unsigned int ThinInDetClustersAlg::m_npass_sct_measurements = 0
private

Definition at line 93 of file ThinInDetClustersAlg.h.

◆ m_npass_sct_states

unsigned int ThinInDetClustersAlg::m_npass_sct_states = 0
private

Definition at line 88 of file ThinInDetClustersAlg.h.

◆ m_npass_trt_measurements

unsigned int ThinInDetClustersAlg::m_npass_trt_measurements = 0
private

Definition at line 103 of file ThinInDetClustersAlg.h.

◆ m_npass_trt_states

unsigned int ThinInDetClustersAlg::m_npass_trt_states = 0
private

Definition at line 98 of file ThinInDetClustersAlg.h.

◆ m_ntot

unsigned int ThinInDetClustersAlg::m_ntot = 0
private

Counters and keys for xAOD::TrackParticle container.

Definition at line 52 of file ThinInDetClustersAlg.h.

◆ m_ntot_pix_measurements

unsigned int ThinInDetClustersAlg::m_ntot_pix_measurements = 0
private

Definition at line 82 of file ThinInDetClustersAlg.h.

◆ m_ntot_pix_states

unsigned int ThinInDetClustersAlg::m_ntot_pix_states = 0
private

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

Definition at line 77 of file ThinInDetClustersAlg.h.

◆ m_ntot_sct_measurements

unsigned int ThinInDetClustersAlg::m_ntot_sct_measurements = 0
private

Definition at line 92 of file ThinInDetClustersAlg.h.

◆ m_ntot_sct_states

unsigned int ThinInDetClustersAlg::m_ntot_sct_states = 0
private

Definition at line 87 of file ThinInDetClustersAlg.h.

◆ m_ntot_trt_measurements

unsigned int ThinInDetClustersAlg::m_ntot_trt_measurements = 0
private

Definition at line 102 of file ThinInDetClustersAlg.h.

◆ m_ntot_trt_states

unsigned int ThinInDetClustersAlg::m_ntot_trt_states = 0
private

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< ::AthAlgorithm , NUM_PARSER >::m_parser
protectedinherited

Definition at line 100 of file ExpressionParserUser.h.

◆ m_proxyLoaders

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

Definition at line 97 of file ExpressionParserUser.h.

◆ m_renounce

std::vector<std::string> ExpressionParserUserBase< ::AthAlgorithm , 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< Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.

◆ m_xAODProxyLoader

ExpressionParsing::SGxAODProxyLoader* ExpressionParserUserBase< ::AthAlgorithm , 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_statesSctSGKey
SG::ThinningHandleKey< xAOD::TrackStateValidationContainer > m_statesSctSGKey
Definition: ThinInDetClustersAlg.h:90
ThinInDetClustersAlg::m_ntot_pix_measurements
unsigned int m_ntot_pix_measurements
Definition: ThinInDetClustersAlg.h:82
ExpressionParserUserBase< ::AthAlgorithm, 1 >::finalizeParser
StatusCode finalizeParser()
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
ThinInDetClustersAlg::m_selectionString
StringProperty m_selectionString
Expressions for object thinning selections Default InDetTrackParticles (also accomplished through fla...
Definition: ThinInDetClustersAlg.h:70
ExpressionParserUserBase< ::AthAlgorithm, 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_sct_states
unsigned int m_npass_sct_states
Definition: ThinInDetClustersAlg.h:88
ThinInDetClustersAlg::m_thinTRTHitsOnTrack
BooleanProperty m_thinTRTHitsOnTrack
Definition: ThinInDetClustersAlg.h:60
AthCommonDataStore< AthCommonMsg< Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< 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
ThinInDetClustersAlg::m_ntot_pix_states
unsigned int m_ntot_pix_states
Counters and keys for xAOD::TrackStateValidation and xAOD::TrackMeasurementValidation containers.
Definition: ThinInDetClustersAlg.h:77
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:268
ThinInDetClustersAlg::m_ntot
unsigned int m_ntot
Counters and keys for xAOD::TrackParticle container.
Definition: ThinInDetClustersAlg.h:52
ThinInDetClustersAlg::m_ntot_trt_states
unsigned int m_ntot_trt_states
Definition: ThinInDetClustersAlg.h:97
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:460
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
ThinInDetClustersAlg::m_npass_trt_states
unsigned int m_npass_trt_states
Definition: ThinInDetClustersAlg.h:98
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
ThinInDetClustersAlg::m_statesPixSGKey
SG::ThinningHandleKey< xAOD::TrackStateValidationContainer > m_statesPixSGKey
Definition: ThinInDetClustersAlg.h:80
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthAlgorithm.cxx:66
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ThinInDetClustersAlg::TrkState_TRT
@ TrkState_TRT
Definition: ThinInDetClustersAlg.h:116
ThinInDetClustersAlg::m_npass_pix_states
unsigned int m_npass_pix_states
Definition: ThinInDetClustersAlg.h:78
AthCommonDataStore< AthCommonMsg< Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
ThinInDetClustersAlg::m_ntot_sct_states
unsigned int m_ntot_sct_states
Definition: ThinInDetClustersAlg.h:87
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
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ThinInDetClustersAlg::m_measurementsPixSGKey
SG::ThinningHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurementsPixSGKey
Definition: ThinInDetClustersAlg.h:85
ThinInDetClustersAlg::m_thinSCTHitsOnTrack
BooleanProperty m_thinSCTHitsOnTrack
Definition: ThinInDetClustersAlg.h:58
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, unsigned int &ntot_states, unsigned int &npass_states, unsigned int &npass_measurements) const
Definition: ThinInDetClustersAlg.cxx:210
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
ThinInDetClustersAlg::m_ntot_sct_measurements
unsigned int m_ntot_sct_measurements
Definition: ThinInDetClustersAlg.h:92
ThinInDetClustersAlg::m_streamName
StringProperty m_streamName
Stream for object thinning selections.
Definition: ThinInDetClustersAlg.h:64
AthCommonDataStore< AthCommonMsg< 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<::AthAlgorithm >::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
ThinInDetClustersAlg::m_npass_sct_measurements
unsigned int m_npass_sct_measurements
Definition: ThinInDetClustersAlg.h:93
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ThinInDetClustersAlg::m_measurementsTrtSGKey
SG::ThinningHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurementsTrtSGKey
Definition: ThinInDetClustersAlg.h:105
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
ThinInDetClustersAlg::TrkState_Pixel
@ TrkState_Pixel
Definition: ThinInDetClustersAlg.h:114
AthAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Definition: AthAlgorithm.h:79
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ThinInDetClustersAlg::TrkState_NumberOfMeasurementTypes
@ TrkState_NumberOfMeasurementTypes
Definition: ThinInDetClustersAlg.h:120
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
ThinInDetClustersAlg::m_ntot_trt_measurements
unsigned int m_ntot_trt_measurements
Definition: ThinInDetClustersAlg.h:102
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
entries
double entries
Definition: listroot.cxx:49
ThinInDetClustersAlg::m_npass_trt_measurements
unsigned int m_npass_trt_measurements
Definition: ThinInDetClustersAlg.h:103
ThinInDetClustersAlg::m_thinPixelHitsOnTrack
BooleanProperty m_thinPixelHitsOnTrack
Thinning logic.
Definition: ThinInDetClustersAlg.h:56
ThinInDetClustersAlg::TrkState_unidentified
@ TrkState_unidentified
Definition: ThinInDetClustersAlg.h:113
ThinInDetClustersAlg::m_npass
unsigned int m_npass
Definition: ThinInDetClustersAlg.h:53
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:798
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
ThinInDetClustersAlg::m_measurementsSctSGKey
SG::ThinningHandleKey< xAOD::TrackMeasurementValidationContainer > m_measurementsSctSGKey
Definition: ThinInDetClustersAlg.h:95
dqBeamSpot.nEntries
int nEntries
Definition: dqBeamSpot.py:73
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
ThinInDetClustersAlg::m_npass_pix_measurements
unsigned int m_npass_pix_measurements
Definition: ThinInDetClustersAlg.h:83
fitman.k
k
Definition: fitman.py:528
ServiceHandle< ICondSvc >