ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
InDet::InDetTrackSplitterTool Class Reference

#include <InDetTrackSplitterTool.h>

Inheritance diagram for InDet::InDetTrackSplitterTool:
Collaboration diagram for InDet::InDetTrackSplitterTool:

Public Member Functions

 InDetTrackSplitterTool (std::string const &, std::string const &, IInterface const *)
 default constructor More...
 
virtual ~InDetTrackSplitterTool ()
 default destructor More...
 
virtual StatusCode initialize ()
 standard Athena-Algorithm methods More...
 
virtual StatusCode finalize ()
 
virtual void splitTracks (TrackCollection const *inputTracks) const
 Takes a trackCollection, splits them according to upper and lower parts and fills two track collections, one with upper tracks and one with lower tracks which are accessed via getUpperTracks and getLowerTracks. More...
 
virtual std::pair< Trk::Track *, Trk::Track * > splitInUpperLowerTrack (Trk::Track const &input, bool siliconHitsOnly=false) const
 Splits a single input track into upper and lower parts (based on global y) returns a pair of track the first being the upper. More...
 
virtual Trk::TrackstripTrack (Trk::Track const &input, bool removeSilicon=true, bool applyConstraint=true) const
 Takes a combined ID track and either 1) if removeSilicon = true Strips off the Si hits. More...
 
virtual std::pair< Trk::Track *, Trk::Track * > splitInOddEvenHitsTrack (Trk::Track const &input) const
 Splits a single input track into odd and even parts (with logic to aviod splitting SCT space points) More...
 
std::string const UpperTracksKey () const
 Return the names of the track collections stored in storeGate. More...
 
std::string const LowerTracksKey () 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 sysInitialize () override
 Perform system initialization for an algorithm. 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
 

Static Public Member Functions

static InterfaceID constinterfaceID ()
 Retrieve interface ID. More...
 

Protected Member Functions

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...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

bool trackIsCandidate (Trk::Track const &inputTrack) const
 Track selection applied in the splitTracks method (for the moment this is just a d0 cut requiring the track went through TRT cavity. More...
 
std::vector< Trk::MeasurementBase const * > getSCTHits (Trk::Track const &input) const
 Return a vector of the SCT hits on track. More...
 
std::vector< Trk::MeasurementBase const * >::iterator findSCTHitsFromSameSpacePoint (Trk::MeasurementBase const *sctHit, std::vector< Trk::MeasurementBase const * > &listOfSCTHits) const
 Logic to check if there is another SCT hit associated with the input hit, which forms a space point. More...
 
bool isConstrained (unsigned int nPixelHits, unsigned int nSCTHits, unsigned int nTRTHits, unsigned int nPseudomeasurements) const
 Logic to check if the track is constrained given the number of various types of hits. More...
 
Trk::TrackstripSiFromTrack (Trk::Track const &input) const
 Strip the Si hits, fit the remaining with a theta, z0 constraint. More...
 
Trk::PseudoMeasurementOnTrack constmakeThetaZ0Constraint (Trk::Perigee const *originialPerigee) const
 Make the theta and z0 constraint. More...
 
Trk::TrackstripTRTFromTrack (Trk::Track const &input, bool applyConstraint=true) const
 Strip the TRT hits, fit the remaining with a qOverP constraint. More...
 
Trk::PseudoMeasurementOnTrack constmakePConstraint (Trk::Perigee const *originialPerigee, Trk::StraightLineSurface const *trtSurf) const
 Make the qOverP constraint. More...
 
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

SG::WriteHandleKey< TrackCollectionm_outputUpperTracksName
 Output track collection names recorded in storgate. More...
 
SG::WriteHandleKey< TrackCollectionm_outputLowerTracksName
 
ToolHandle< Trk::ITrackFitterm_trkfitter
 Helper Functions. More...
 
TRT_ID constm_trtid {}
 
SCT_ID constm_sctid {}
 
bool m_keepmaterial
 Do we use the material on the input track. 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

This tool is used for splitting tracks in different segments and returning fitted tracks that have the corrisponding hits associated with them.

Currently it is for seen to split tracks in:

Usages: 1) If you have a single track and want to split in to upper and lower do:

m_trackSplitterTool->splitInUpperLowerTrack(inputtrack); ->splitInOddEvenHitsTrack(inputtrack);

this call return a std::pair containing the split tracks

3) If you have a single track and want to strip ether Si or TRT hits do:

m_trackSplitterTool->stripTrack(inputtrack,true); //For removing the Si Hits m_trackSplitterTool->stripTrack(inputtrack,false);//For removing the TRT Hits

2) If you have a track collection and want to create track collections with upper and lower tracks do

m_trackSplitterTool->splitTracks(inputTracks);

then retrieve the collection from storeGate with the names m_outputUpperTracksName, m_outputLowerTracksName

Author
John Alison

Definition at line 81 of file InDetTrackSplitterTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ InDetTrackSplitterTool()

InDet::InDetTrackSplitterTool::InDetTrackSplitterTool ( std::string const type,
std::string const name,
IInterface const parent 
)

default constructor

Definition at line 81 of file InDetTrackSplitterTool.cxx.

81  :
83  m_trkfitter("Trk::GlobalChi2Fitter/InDetTrackFitter")
84 {
85 
86  declareInterface<IInDetTrackSplitterTool>(this);
87  declareProperty("TrackFitter", m_trkfitter);
88  declareProperty("OutputUpperTracksName", m_outputUpperTracksName="splitUpperTracks");
89  declareProperty("OutputLowerTracksName", m_outputLowerTracksName="splitLowerTracks");
90  declareProperty("KeepMaterialStates",m_keepmaterial=true);
91 }

◆ ~InDetTrackSplitterTool()

InDet::InDetTrackSplitterTool::~InDetTrackSplitterTool ( )
virtualdefault

default destructor

Member Function Documentation

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::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

◆ finalize()

StatusCode InDet::InDetTrackSplitterTool::finalize ( )
virtual

Definition at line 133 of file InDetTrackSplitterTool.cxx.

134 {
135  msg(MSG::DEBUG) << "In finalize() "<< endmsg;
136  return StatusCode::SUCCESS;
137 }

◆ findSCTHitsFromSameSpacePoint()

std::vector< Trk::MeasurementBase const * >::iterator InDet::InDetTrackSplitterTool::findSCTHitsFromSameSpacePoint ( Trk::MeasurementBase const sctHit,
std::vector< Trk::MeasurementBase const * > &  listOfSCTHits 
) const
private

Logic to check if there is another SCT hit associated with the input hit, which forms a space point.

Logic to check if there is another SCT hit associated with the input hit, which forms a space point (used for not breaking up SCT space points, when splitting Odd/Even)

Definition at line 908 of file InDetTrackSplitterTool.cxx.

908  {
909  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "in findSCTHitsFromSameSpacePoint " << endmsg;
911 
912  Trk::RIO_OnTrack const* rio = dynamic_cast<Trk::RIO_OnTrack const*>(sctHit);
913  if(rio){
914  Identifier const& surfaceid = (rio->identify());
915 
916  int targetEta = m_sctid->eta_module(surfaceid);
917  int targetPhi = m_sctid->phi_module(surfaceid);
918 
919  std::vector<Trk::MeasurementBase const*>::const_iterator meas = listOfSCTHits.begin();
920  std::vector<Trk::MeasurementBase const*>::const_iterator measEnd = listOfSCTHits.end();
921  for(;meas != measEnd; ++meas){
922  Trk::RIO_OnTrack const* candidateRio = dynamic_cast<Trk::RIO_OnTrack const*>(*meas);
923  if(candidateRio){
924  Identifier const& candidateSurfaceid = (candidateRio->identify());
925  if(m_sctid->eta_module(candidateSurfaceid) == targetEta && m_sctid->phi_module(candidateSurfaceid) == targetPhi){
926  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Found another hit in the SpacePoint " << endmsg;
927  result = find(listOfSCTHits.begin(), listOfSCTHits.end(), *meas);
928  }
929  }
930  }
931  }
932 
933  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Leaving findSCTHitsFromSameSpacePoint " << endmsg;
934  return result;
935 }

◆ getSCTHits()

std::vector< Trk::MeasurementBase const * > InDet::InDetTrackSplitterTool::getSCTHits ( Trk::Track const input) const
private

Return a vector of the SCT hits on track.

Return a vector of the SCT hits on track (used for not breaking up SCT space points, when splitting Odd/Even)

order the hits in y

Definition at line 877 of file InDetTrackSplitterTool.cxx.

877  {
878  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "In getSCTHits " << endmsg;
879  std::vector<Trk::MeasurementBase const*> SCTHits;
880 
881  DataVector<Trk::MeasurementBase const>::const_iterator meas = input.measurementsOnTrack()->begin();
882  DataVector<Trk::MeasurementBase const>::const_iterator measEnd = input.measurementsOnTrack()->end();
883  for(;meas != measEnd; ++meas){
884 
885  Trk::RIO_OnTrack const* rio = dynamic_cast<Trk::RIO_OnTrack const*>(*meas);
886 
887  if(rio){
888  Identifier const& surfaceid = (rio->identify());
889  if(m_trtid->is_sct(surfaceid)){
890  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "we've found an SCT hit " << endmsg;
891  SCTHits.push_back(*meas);
892  }
893  }
894  }
895 
896  //if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "sorting the hits " << endmsg;
898  //std::sort(SCTHits.begin(), SCTHits.end(), InDetTrackSplitterHelpers::CompareYPosition );
899 
900  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Leaving getSCTHits " << endmsg;
901  return SCTHits;
902 }

◆ initialize()

StatusCode InDet::InDetTrackSplitterTool::initialize ( )
virtual

standard Athena-Algorithm methods

Get TRT helper

Get SCT helper

Fitter

Definition at line 98 of file InDetTrackSplitterTool.cxx.

99 {
100 
101  msg(MSG::DEBUG) << "In initialize()" << endmsg;
102 
105  if ((detStore()->retrieve(m_trtid)).isFailure()) {
106  msg(MSG::WARNING) << "Problem retrieving TRTID helper" << endmsg;
107  return StatusCode::SUCCESS;
108  }
109 
112  if ((detStore()->retrieve(m_sctid)).isFailure()) {
113  msg(MSG::WARNING) << "Problem retrieving SCT ID helper" << endmsg;
114  return StatusCode::SUCCESS;
115  }
116 
119  if(m_trkfitter.retrieve().isFailure()) {
120  msg(MSG::WARNING) << "Could not find refit tool " << m_trkfitter << endmsg;
121  return StatusCode::SUCCESS;
122  }
123 
124  ATH_CHECK( m_outputUpperTracksName.initialize() );
125  ATH_CHECK( m_outputLowerTracksName.initialize() );
126 
127  msg(MSG::DEBUG) << "InDetTrackSplitterTool initialized" << endmsg;
128  return StatusCode::SUCCESS;
129 
130 }

◆ inputHandles()

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

◆ interfaceID()

static InterfaceID const& InDet::IInDetTrackSplitterTool::interfaceID ( )
inlinestaticinherited

Retrieve interface ID.

Definition at line 25 of file IInDetTrackSplitterTool.h.

25 {return IID_InDetTrackSplitterTool;};

◆ isConstrained()

bool InDet::InDetTrackSplitterTool::isConstrained ( unsigned int  nPixelHits,
unsigned int  nSCTHits,
unsigned int  nTRTHits,
unsigned int  nPseudomeasurements 
) const
private

Logic to check if the track is constrained given the number of various types of hits.

Two cases to consider, tracks with Si hits (first case in the ||), and TRT Only tracks (second case)

Definition at line 940 of file InDetTrackSplitterTool.cxx.

940  {
941  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "In isConstrained " << endmsg;
942 
945  if( (( nPixelHits + nSCTHits) > 1 && (2*nPixelHits + nSCTHits + nTRTHits) > 5) ||
946  (nPseudomeasurements >= 1 && nTRTHits > 10)){
947  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Leaving isConstrained (true)" << endmsg;
948  return true;
949  }
950 
951  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Leaving isConstrained (false)" << endmsg;
952  return false;
953 }

◆ LowerTracksKey()

std::string const InDet::InDetTrackSplitterTool::LowerTracksKey ( ) const
inlinevirtual

Implements InDet::IInDetTrackSplitterTool.

Definition at line 126 of file InDetTrackSplitterTool.h.

126 {return m_outputLowerTracksName.key();}

◆ makePConstraint()

Trk::PseudoMeasurementOnTrack const * InDet::InDetTrackSplitterTool::makePConstraint ( Trk::Perigee const originialPerigee,
Trk::StraightLineSurface const trtSurf 
) const
private

Make the qOverP constraint.

Define the constraint parameter

Define the uncertainty on the constraint parameter

Create the constraint

Definition at line 533 of file InDetTrackSplitterTool.cxx.

533  {
534 
535  if( !perigee->covariance() ) return nullptr;
536 
539  Trk::DefinedParameter inputPMeasurement(perigee->parameters()[Trk::qOverP],Trk::qOverP);
540  std::array<Trk::DefinedParameter,1> constraints = {inputPMeasurement};
541 
543  Amg::MatrixX constraintErrMatrix(1,1);
544  constraintErrMatrix(0,0)=(*perigee->covariance())(Trk::qOverP,Trk::qOverP);
545 
548  std::move(constraintErrMatrix) ,*trtSurf);
549 
550  return psmom;
551 }

◆ makeThetaZ0Constraint()

Trk::PseudoMeasurementOnTrack const * InDet::InDetTrackSplitterTool::makeThetaZ0Constraint ( Trk::Perigee const originialPerigee) const
private

Make the theta and z0 constraint.

Define the constraint parameters

Define the uncertainty on the constraint parameters

Get the surface were the constraint will be applied (we got the constraints from the perigee, apply it there too)

Create the constriant

Debugging

Definition at line 555 of file InDetTrackSplitterTool.cxx.

555  {
556  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "In makeThetaZ0Constraint" <<endmsg;
557 
558  if( !perigee->covariance() ) return nullptr;
559 
562  Trk::DefinedParameter inputTheta0Measurement(perigee->parameters()[Trk::theta],Trk::theta);
563  Trk::DefinedParameter inputZ0Measurement(perigee->parameters()[Trk::z0],Trk::z0);
564  std::array<Trk::DefinedParameter,2> constraints = {inputZ0Measurement, inputTheta0Measurement};
565 
568  Amg::MatrixX constraintErrMatrix(2,2);
569  constraintErrMatrix(0,0) = (*perigee->covariance())(Trk::z0,Trk::z0);
570  constraintErrMatrix(0,1) = (*perigee->covariance())(Trk::z0,Trk::theta);
571  constraintErrMatrix(1,0) = (*perigee->covariance())(Trk::theta, Trk::z0);
572  constraintErrMatrix(1,1) = (*perigee->covariance())(Trk::theta, Trk::theta);
573 
577  const Trk::PerigeeSurface & surface = perigee->associatedSurface();
578 
582  std::move(constraintErrMatrix) ,
583  surface);
584 
587  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Leaving makeThetaZ0Constraint" <<endmsg;
588  return psmom;
589 }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::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< AlgTool >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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  }

◆ splitInOddEvenHitsTrack()

std::pair< Trk::Track *, Trk::Track * > InDet::InDetTrackSplitterTool::splitInOddEvenHitsTrack ( Trk::Track const input) const
virtual

Splits a single input track into odd and even parts (with logic to aviod splitting SCT space points)

Splits a single input track into upper and lower parts (based on global y) returns a pair of track the first being the upper.

The returned tracks

Get the initial perigee parameters

Get the track particle hypothisis

Get the measurements

Get SCT hits (ordered)

The odd hits

protect against breaking up space points find the sct hit in unusedSCTHits

if the SCT hits hasn't been assigned to a tracks

remove hit from unused list

find any other hits with same r phi

The even hits

protect against breaking up space points find the sct hit in unusedSCTHits

if the SCT hits hasn't been assigned to a tracks

remove hit from umused list

find any other hits with same r phi

Sort the hits.

Upper track

track must be overconstrained

lower track

Implements InDet::IInDetTrackSplitterTool.

Definition at line 595 of file InDetTrackSplitterTool.cxx.

595  {
596  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << " In splitInOddEvenHitsTrack" <<endmsg;
597 
599  Trk::Track* oddTrack(nullptr);
600  Trk::Track* evenTrack(nullptr);
601 
603  Trk::Perigee const* originalPerigee = input.perigeeParameters();
604 
606  Trk::ParticleHypothesis hypo = input.info().particleHypothesis();
607 
609  Trk::MeasurementSet oddHits;
610  Trk::MeasurementSet evenHits;
611 
612  unsigned int totalNumberPixelHits = 0;
613  unsigned int totalNumberSCTHits = 0;
614  unsigned int totalNumberTRTHits = 0;
615  unsigned int totalNumberHits = 0;
616 
617  unsigned int numberOddSCTHits = 0;
618  unsigned int numberOddPixelHits = 0;
619  unsigned int numberOddTRTHits = 0;
620  unsigned int numberOddPseudoMeas = 0;
621 
622  unsigned int numberEvenPixelHits = 0;
623  unsigned int numberEvenSCTHits = 0;
624  unsigned int numberEvenTRTHits = 0;
625  unsigned int numberEvenPseudoMeas = 0;
626 
628  std::vector<Trk::MeasurementBase const*> unusedSCTHits = getSCTHits(input);
629 
630  DataVector<Trk::MeasurementBase const>::const_iterator meas = input.measurementsOnTrack()->begin();
631  DataVector<Trk::MeasurementBase const>::const_iterator measEnd = input.measurementsOnTrack()->end();
632  for(;meas != measEnd; ++meas){
633  Trk::RIO_OnTrack const* rio = dynamic_cast<Trk::RIO_OnTrack const*>(*meas);
634  if(rio){
635  Identifier const& surfaceid = (rio->identify());
636  if(m_trtid->is_pixel(surfaceid)) ++totalNumberPixelHits;
637  if(m_trtid->is_sct(surfaceid)) ++totalNumberSCTHits;
638  if(m_trtid->is_trt(surfaceid)) ++totalNumberTRTHits;
639 
641  if( totalNumberHits % 2 == 1){
642 
643  if(m_trtid->is_pixel(surfaceid)) ++numberOddPixelHits;
644  if(m_trtid->is_sct(surfaceid)) ++numberOddSCTHits;
645  if(m_trtid->is_trt(surfaceid)) ++numberOddTRTHits;
646 
647  if(!m_trtid->is_sct(surfaceid)){
648  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "adding odd hit" <<endmsg;
649  oddHits.push_back( *meas);
650  ++totalNumberHits;
651  }else{
652 
655  std::vector<Trk::MeasurementBase const* >::iterator result = find(unusedSCTHits.begin(), unusedSCTHits.end(), *meas);
656 
658  if(result != unusedSCTHits.end()){
659 
660  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "add the (odd) SCT hit" <<endmsg;
661  oddHits.push_back( *meas);
662  ++totalNumberHits;
663 
665  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "removing the SCT hit from unused list" <<endmsg;
666  unusedSCTHits.erase(result);
667 
669  result = findSCTHitsFromSameSpacePoint( *meas, unusedSCTHits);
670  if(result != unusedSCTHits.end()){
671  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "adding the other (odd) SCT hit in the spacepoint" <<endmsg;
672  oddHits.push_back( *result);
673  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "removing the SCT hit from unused list" <<endmsg;
674  unusedSCTHits.erase(result);
675  }
676  }
677  }
678  }else{
679  if(m_trtid->is_pixel(surfaceid))
680  ++numberEvenPixelHits;
681  if(m_trtid->is_sct(surfaceid))
682  ++numberEvenSCTHits;
683  if(m_trtid->is_trt(surfaceid))
684  ++numberEvenTRTHits;
685 
686  if(!m_trtid->is_sct(surfaceid)){
687  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "add the (even) hit" <<endmsg;
688  evenHits.push_back( *meas);
689  ++totalNumberHits;
690  }else{
693  std::vector<Trk::MeasurementBase const* >::iterator result = find(unusedSCTHits.begin(), unusedSCTHits.end(), *meas);
694 
696  if(result != unusedSCTHits.end()){
697 
698  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "add the (even) SCT hit" <<endmsg;
699  evenHits.push_back( *meas);
700  ++totalNumberHits;
701 
703  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "removing the SCT hit from unused list" <<endmsg;
704  unusedSCTHits.erase(result);
705 
707  result = findSCTHitsFromSameSpacePoint( *meas, unusedSCTHits);
708  if(result != unusedSCTHits.end()){
709  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "adding the other (even) SCT hit in the spacepoint" <<endmsg;
710  evenHits.push_back( *result);
711  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "removing the SCT hit from unused list" <<endmsg;
712  unusedSCTHits.erase(result);
713  }
714  }
715  }
716  }
717  }else{
718  Trk::PseudoMeasurementOnTrack const* ps = dynamic_cast<Trk::PseudoMeasurementOnTrack const*>(*meas);
719 
720  if(ps){
721  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Adding an odd pseudoMeasurement" <<endmsg;
722  ++numberOddPseudoMeas;
723  oddHits.push_back( ps);
724 
725  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Adding an even pseudoMeasurement" <<endmsg;
726  ++numberEvenPseudoMeas;
727  evenHits.push_back( ps);
728  }
729  }
730  }
731 
733  //std::sort(oddHits.begin(), oddHits.end(), InDetTrackSplitterHelpers::CompareYPosition );
734  //std::sort(evenHits.begin(), evenHits.end(), InDetTrackSplitterHelpers::CompareYPosition );
735 
738  if(isConstrained(numberOddPixelHits,numberOddSCTHits,numberOddTRTHits,numberOddPseudoMeas)){
739 
740  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "before calling odd fit" << endmsg;
741  oddTrack = (m_trkfitter->fit(Gaudi::Hive::currentContext(),oddHits, *originalPerigee, false, hypo)).release();
742  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "after calling odd fit" << endmsg;
743 
744  if(!oddTrack){
745  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Odd Fit Failed!" << endmsg ;
746  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "There was: "
747  << numberOddPixelHits << " odd Pixel hits, "
748  << numberOddSCTHits << " odd SCT hits, "
749  << numberOddTRTHits << " odd TRT hits"
750  << numberOddPseudoMeas << "odd Pseudomeasurements"
751  << endmsg;
752 
753  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "There was: "
754  << totalNumberPixelHits << " total Pixel hits, "
755  << totalNumberSCTHits << " total SCT hits, "
756  << totalNumberTRTHits << "total TRT hits"
757  << endmsg;
758  }
759 
760  }else
761  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Not enough measurements on odd track. Fit fails." << endmsg ;
762 
764  if(isConstrained(numberEvenPixelHits,numberEvenSCTHits,numberEvenTRTHits,numberEvenPseudoMeas)){
765 
766  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "before calling even fit" << endmsg;
767  evenTrack = (m_trkfitter->fit(Gaudi::Hive::currentContext(),evenHits, *originalPerigee, false, hypo)).release();
768  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "after calling even fit" << endmsg;
769 
770  if(!evenTrack){
771  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Even Fit Failed!" << endmsg ;
772  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "There was: " << numberEvenSCTHits << " even si hits and "
773  << numberEvenTRTHits << "even TRT hits"<< endmsg;
774 
775  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "There were: " << totalNumberSCTHits << " total Si hits and "
776  << totalNumberTRTHits << "total TRT hits"<< endmsg;
777  }
778 
779  }else
780  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Not enough measurements on even track. Fit fails." << endmsg ;
781 
782  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << " Leaving splitInOddEvenHitsTrack" <<endmsg;
783  return std::make_pair(oddTrack, evenTrack);
784 }

◆ splitInUpperLowerTrack()

std::pair< Trk::Track *, Trk::Track * > InDet::InDetTrackSplitterTool::splitInUpperLowerTrack ( Trk::Track const input,
bool  siliconHitsOnly = false 
) const
virtual

Splits a single input track into upper and lower parts (based on global y) returns a pair of track the first being the upper.

Get the initial perigee parameters

Get the track particle hypothisis

Get the measurements

Upper track

lower track

Implements InDet::IInDetTrackSplitterTool.

Definition at line 142 of file InDetTrackSplitterTool.cxx.

143  {
144  //std::cout << "input: " << input << std::endl;
145  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << " In splitInUpperLowerTrack" <<endmsg;
146 
147  //**The returned tracks */
148  Trk::Track* upperTrack(nullptr);
149  Trk::Track* lowerTrack(nullptr);
150 
152  Trk::Perigee const* originalPerigee = input.perigeeParameters();
153 
155  Trk::ParticleHypothesis hypo = input.info().particleHypothesis();
156 
158  auto uppertraj = std::make_unique<Trk::TrackStates>();
159  auto lowertraj = std::make_unique<Trk::TrackStates>();
160 
161  unsigned int totalNumberHits = 0;
162 
163  unsigned int totalNumberPixelHits = 0;
164  unsigned int totalNumberSCTHits = 0;
165  unsigned int totalNumberTRTHits = 0;
166 
167  unsigned int numberUpperPixelHits = 0;
168  unsigned int numberUpperSCTHits = 0;
169  unsigned int numberUpperTRTHits = 0;
170  unsigned int numberUpperPseudoMeas = 0;
171 
172  unsigned int numberLowerPixelHits = 0;
173  unsigned int numberLowerSCTHits = 0;
174  unsigned int numberLowerTRTHits = 0;
175  unsigned int numberLowerPseudoMeas = 0;
176 
177  //DataVector<Trk::MeasurementBase const>::const_iterator meas = input.measurementsOnTrack()->begin();
178  //DataVector<Trk::MeasurementBase const>::const_iterator measEnd = input.measurementsOnTrack()->end();
179  //for(;meas != measEnd; ++meas){
180  //Trk::RIO_OnTrack const* rio = dynamic_cast<Trk::RIO_OnTrack const*>(*meas);
181  Trk::TrackStates::const_iterator tsosit = input.trackStateOnSurfaces()->begin();
182  Trk::TrackStates::const_iterator tsosEnd = input.trackStateOnSurfaces()->end();
183  bool perigeeseen=false;
184  for(;tsosit != tsosEnd; ++tsosit){
185  if ((**tsosit).type(Trk::TrackStateOnSurface::Outlier)) continue;
186  if (originalPerigee==(**tsosit).trackParameters()){
187  perigeeseen=true;
188  uppertraj->push_back((**tsosit).clone());
189  lowertraj->push_back((**tsosit).clone());
190  continue;
191  }
192 
193  if (m_keepmaterial &&
194  ((**tsosit).type(Trk::TrackStateOnSurface::Scatterer) ||
195  (**tsosit).type(Trk::TrackStateOnSurface::BremPoint) ||
196  (**tsosit).type(Trk::TrackStateOnSurface::CaloDeposit))) {
197  if (!perigeeseen)
198  uppertraj->push_back((**tsosit).clone());
199  else
200  lowertraj->push_back((**tsosit).clone());
201  continue;
202  }
203  const Trk::RIO_OnTrack *rio = nullptr;
204  const Trk::MeasurementBase *measb=(**tsosit).measurementOnTrack();
205  if (measb) rio=dynamic_cast<const Trk::RIO_OnTrack*>(measb);
206 
207  if(rio){
208  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "an rio..." <<endmsg;
209 
210  totalNumberHits++;
211 
212  Identifier const& surfaceid = (rio->identify());
213 
214  if (m_trtid->is_pixel(surfaceid))
215  ++totalNumberPixelHits;
216  if (m_trtid->is_sct(surfaceid))
217  ++totalNumberSCTHits;
218  if (m_trtid->is_trt(surfaceid))
219  ++totalNumberTRTHits;
220 
221  //if( (*meas)->globalPosition().y() > 0){
222  if( !perigeeseen){
223 
224  if (m_trtid->is_pixel(surfaceid))
225  ++numberUpperPixelHits;
226  if (m_trtid->is_sct(surfaceid))
227  ++numberUpperSCTHits;
228  if (m_trtid->is_trt(surfaceid))
229  ++numberUpperTRTHits;
230 
231  if (!siliconHitsOnly || m_trtid->is_sct(surfaceid) ||
232  m_trtid->is_pixel(surfaceid))
233  uppertraj->push_back((**tsosit).clone());
234  }
235 
236  // if( (*meas)->globalPosition().y() < 0){
237  if (perigeeseen) {
238 
239  if (m_trtid->is_pixel(surfaceid))
240  ++numberLowerPixelHits;
241  if (m_trtid->is_sct(surfaceid))
242  ++numberLowerSCTHits;
243  if (m_trtid->is_trt(surfaceid))
244  ++numberLowerTRTHits;
245 
246  if (!siliconHitsOnly || m_trtid->is_sct(surfaceid) ||
247  m_trtid->is_pixel(surfaceid))
248  // m_lowerHits.push_back( *meas);
249  lowertraj->push_back((**tsosit).clone());
250  }
251  } else {
252  if (msgLvl(MSG::VERBOSE))
253  msg(MSG::VERBOSE) << "Not an rio" << endmsg;
254  // Trk::PseudoMeasurementOnTrack const* ps =
255  // dynamic_cast<Trk::PseudoMeasurementOnTrack const*>(*measb);
257  dynamic_cast<const Trk::PseudoMeasurementOnTrack*>(measb);
258 
259  if (ps) {
260  if (!perigeeseen || totalNumberHits == totalNumberTRTHits) {
261  if (msgLvl(MSG::DEBUG))
262  msg(MSG::DEBUG) << "Adding an upper pseudoMeasurement" << endmsg;
263  ++numberUpperPseudoMeas;
264  uppertraj->push_back((**tsosit).clone());
265  }
266  if (perigeeseen || totalNumberHits == totalNumberTRTHits) {
267  if (msgLvl(MSG::DEBUG))
268  msg(MSG::DEBUG) << "Adding a lower pseudoMeasurement" << endmsg;
269  ++numberLowerPseudoMeas;
270  lowertraj->push_back((**tsosit).clone());
271  }
272  }
273 
274  const Trk::CompetingRIOsOnTrack* crot =
275  dynamic_cast<const Trk::CompetingRIOsOnTrack*>(measb);
276  if (crot) {
277  if (!perigeeseen)
278  uppertraj->push_back((**tsosit).clone());
279  else
280  lowertraj->push_back((**tsosit).clone());
281  }
282  }
283  }
284 
285  Trk::Track upperorigtrack(input.info(),std::move(uppertraj),nullptr);
286  Trk::Track lowerorigtrack(input.info(),std::move(lowertraj),nullptr);
287 
289  if(isConstrained(numberUpperPixelHits,numberUpperSCTHits,numberUpperTRTHits,numberUpperPseudoMeas)){
290 
291  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "before calling upper fit" << endmsg;
292  //m_upperTrack = m_trkfitter->fit(m_upperHits, *originalPerigee, true, hypo);
293  upperTrack = (m_trkfitter->fit(Gaudi::Hive::currentContext(),upperorigtrack, false, hypo)).release();
294  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "after calling upper fit" << endmsg;
295 
296  if(!upperTrack){
297  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Upper Fit Failed!" << endmsg ;
298  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "There was: "
299  << numberUpperPixelHits << " upper Pixel hits, "
300  << numberUpperSCTHits << " upper SCT hits, "
301  << numberUpperTRTHits << "upper TRT hits"
302  << numberUpperPseudoMeas << "upper Pseudomeasurements"
303  << endmsg;
304 
305  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "There was: "
306  << totalNumberPixelHits << " total Pixel hits, "
307  << totalNumberSCTHits << " total SCT hits, "
308  << totalNumberTRTHits << "total TRT hits"
309  << endmsg;
310 
311  }
312 
313  }else{
314  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Not enough measurements on upper track. Fit fails." << endmsg ;
315  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "There was: "
316  << numberUpperPixelHits << " upper Pixel hits, "
317  << numberUpperSCTHits << " upper SCT hits, "
318  << numberUpperTRTHits << "upper TRT hits"
319  << numberUpperPseudoMeas << "upper Pseudomeasurements"
320  << endmsg;
321  }
322 
324  if(isConstrained(numberLowerPixelHits,numberLowerSCTHits,numberLowerTRTHits,numberLowerPseudoMeas)){
325 
326  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "before calling lower fit" << endmsg;
327  lowerTrack = (m_trkfitter->fit(Gaudi::Hive::currentContext(),lowerorigtrack, false, hypo)).release();
328  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "after calling lower fit" << endmsg;
329 
330  if(!lowerTrack){
331  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Lower Fit Failed!" << endmsg ;
332  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "There was: "
333  << numberLowerPixelHits << " upper Pixel hits, "
334  << numberLowerSCTHits << " upper SCT hits, "
335  << numberLowerTRTHits << "upper TRT hits"
336  << numberLowerPseudoMeas << "upper Pseudomeasurements"
337  << endmsg;
338 
339  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "There was: "
340  << totalNumberPixelHits << " total Pixel hits, "
341  << totalNumberSCTHits << " total SCT hits, "
342  << totalNumberTRTHits << "total TRT hits"
343  << endmsg;
344  }
345 
346  }else{
347  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Not enough measurements on lower track. Fit fails." << endmsg ;
348  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "There was: "
349  << numberLowerPixelHits << " upper Pixel hits, "
350  << numberLowerSCTHits << " upper SCT hits, "
351  << numberLowerTRTHits << "upper TRT hits"
352  << numberLowerPseudoMeas << "upper Pseudomeasurements"
353  << endmsg;
354  }
355 
356  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << " Leaving splitInUpperLowerTrack" <<endmsg;
357  return std::make_pair(upperTrack, lowerTrack);
358 }

◆ splitTracks()

void InDet::InDetTrackSplitterTool::splitTracks ( TrackCollection const inputTracks) const
virtual

Takes a trackCollection, splits them according to upper and lower parts and fills two track collections, one with upper tracks and one with lower tracks which are accessed via getUpperTracks and getLowerTracks.

Using this method requires track to pass trackIsCandidate (for the moment this is just a d0 cut requiring the track went through TRT cavity

if went though TRT cavity

Implements InDet::IInDetTrackSplitterTool.

Definition at line 794 of file InDetTrackSplitterTool.cxx.

794  {
795  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << " In splitTracks" <<endmsg;
796 
797  // const EventContext& ctx = Gaudi::Hive::currentContext();
799  if ( upperTracks.record( std::make_unique<TrackCollection>() ).isFailure() ) {
800  ATH_MSG_FATAL( "Failed to record upper tracks collection " << m_outputUpperTracksName.key() );
801  }
802 
804  if ( lowerTracks.record( std::make_unique<TrackCollection>() ).isFailure() ) {
805  ATH_MSG_FATAL( "Failed to record upper tracks collection " << m_outputLowerTracksName.key() );
806  }
807 
808  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "There are: " << inputTracks->size() << " input tracks."<< endmsg;
809 
812  for (; it != itE; ++it){
813 
815  if(trackIsCandidate( **it) ){
816  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "Track is a candidate."<< endmsg;
817 
818  std::pair<Trk::Track*, Trk::Track*> splitTracks = this->splitInUpperLowerTrack(**it);
819  //For debugging
820  //std::pair<Trk::Track*, Trk::Track*> splitTracks = this->splitInOddEvenHitsTrack(**it);
821 
822  Trk::Track* upperTrack = splitTracks.first;
823  if(upperTrack){
824  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "Upper track fit suceeded"<< endmsg;
825  upperTracks->push_back( upperTrack);
826  }else
827  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Upper track fit failed!"<< endmsg;
828 
829  Trk::Track* lowerTrack = splitTracks.second;
830  if(lowerTrack){
831  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "Lower track fit suceeded"<< endmsg;
832  lowerTracks->push_back( lowerTrack);
833  }else
834  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Lower track fit failed!"<< endmsg;
835 
836  } else
837  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "Track is NOT a candidate."<< endmsg;
838  }
839 
840  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << " Leaving splitTracks" <<endmsg;
841 }

◆ stripSiFromTrack()

Trk::Track * InDet::InDetTrackSplitterTool::stripSiFromTrack ( Trk::Track const input) const
private

Strip the Si hits, fit the remaining with a theta, z0 constraint.

The returned track

The measurements

Get the initial perigee parameters

Get the track particle hypothisis

Create the psuesdoMeasurement with the constraints

Adding the constraint first

Fit track

Definition at line 384 of file InDetTrackSplitterTool.cxx.

384  {
385  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "In stripSiFromTrack" <<endmsg;
386 
388  Trk::Track* outputTrack(nullptr);
389 
391  Trk::MeasurementSet TRTHits;
392 
394  Trk::Perigee const* originalPerigee = input.perigeeParameters();
395 
397  Trk::ParticleHypothesis hypo = input.info().particleHypothesis();
398 
400  Trk::PseudoMeasurementOnTrack const* constraint = makeThetaZ0Constraint(originalPerigee);
401 
403  TRTHits.push_back(constraint);
404 
405  unsigned int totalNumberTRTHits = 0;
406 
407  DataVector<Trk::MeasurementBase const>::const_iterator meas = input.measurementsOnTrack()->begin();
408  DataVector<Trk::MeasurementBase const>::const_iterator measEnd = input.measurementsOnTrack()->end();
409  for(;meas != measEnd; ++meas){
410  Trk::RIO_OnTrack const* rio = dynamic_cast<Trk::RIO_OnTrack const*>(*meas);
411 
412  if(!rio){
413  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "No ROT skipping measurement." <<endmsg;
414  continue;
415  }
416 
417  Identifier const& surfaceid = (rio->identify());
418 
419  if(!m_trtid->is_trt(surfaceid)){
420  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "Removing Non-TRT hit." <<endmsg;
421  continue;
422  }
423 
424  ++totalNumberTRTHits;
425  TRTHits.push_back(*meas);
426 
427  }
428 
430  // Should be Constrained !!!
431  //if(isConstrained(numberUpperPixelHits,numberUpperSCTHits,numberUpperTRTHits,numberUpperPseudoMeas)){
432 
433  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "before calling fit" << endmsg;
434  outputTrack = (m_trkfitter->fit(Gaudi::Hive::currentContext(),TRTHits, *originalPerigee, true, hypo)).release();
435  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "after calling fit" << endmsg;
436 
437  if(!outputTrack){
438  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Fit Failed!" << endmsg ;
439  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "There were: "
440  << totalNumberTRTHits << "TRT hits"
441  << endmsg;
442  }
443 
444  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Leaving stripSiFromTrack" <<endmsg;
445  return outputTrack;
446 }

◆ stripTrack()

Trk::Track * InDet::InDetTrackSplitterTool::stripTrack ( Trk::Track const input,
bool  removeSilicon = true,
bool  applyConstraint = true 
) const
virtual

Takes a combined ID track and either 1) if removeSilicon = true Strips off the Si hits.

Strips either the Si or the TRT and refits the track using constrants.


Then refits the remaining TRT hits using the original z0 and eta0 as constratins on the fit. 2) if removeSilicon = false Strips off the TRT hits. Then refits the remaining Si hits using the original pT and phi as constratins on the fit

The returned track

The strip the Si

The strip the TRT

Implements InDet::IInDetTrackSplitterTool.

Definition at line 362 of file InDetTrackSplitterTool.cxx.

363  {
364  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << " In stripTrack" <<endmsg;
365 
367  Trk::Track* outputTrack(nullptr);
368 
370  if(removeSilicon){
371  outputTrack = stripSiFromTrack(input);
372  }
374  else{
375  outputTrack = stripTRTFromTrack(input, applyConstraint);
376  }
377 
378  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << " Leaving stripTrack" <<endmsg;
379  return outputTrack;
380 }

◆ stripTRTFromTrack()

Trk::Track * InDet::InDetTrackSplitterTool::stripTRTFromTrack ( Trk::Track const input,
bool  applyConstraint = true 
) const
private

Strip the TRT hits, fit the remaining with a qOverP constraint.

The returned track

The measurements

Get the initial perigee parameters

Get the track particle hypothisis

Only add the constraint once

Get the position in space were the constraint will be added We'll chose the first TRT hit. (I dont think this matters, but a surface needs to be specified)

Create the psuesdoMeasurement with the constraints

Adding the constraint first

Only add the constraint once

Fit track

Definition at line 451 of file InDetTrackSplitterTool.cxx.

451  {
452  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "In stripTRTFromTrack" <<endmsg;
453 
455  Trk::Track* outputTrack(nullptr);
456 
458  Trk::MeasurementSet SiHits;
459 
461  Trk::Perigee const* originalPerigee = input.perigeeParameters();
462 
464  Trk::ParticleHypothesis hypo = input.info().particleHypothesis();
465 
467  bool addedConstraint = false;
468 
469  unsigned int totalNumberSiHits = 0;
470 
471  DataVector<Trk::MeasurementBase const>::const_iterator meas = input.measurementsOnTrack()->begin();
472  DataVector<Trk::MeasurementBase const>::const_iterator measEnd = input.measurementsOnTrack()->end();
473  for(;meas != measEnd; ++meas){
474  Trk::RIO_OnTrack const* rio = dynamic_cast<Trk::RIO_OnTrack const*>(*meas);
475 
476  if(!rio){
477  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "No ROT skipping measurement." <<endmsg;
478  continue;
479  }
480 
481  Identifier const& surfaceid = (rio->identify());
482 
483  if(applyConstraint && !addedConstraint && m_trtid->is_trt(surfaceid)){
484 
489  Trk::StraightLineSurface const* trtSurf = dynamic_cast<Trk::StraightLineSurface const*>(&(rio->associatedSurface()));
490  if (not trtSurf){
491  ATH_MSG_DEBUG("Cast of rio associated surface to StraightLineSurface failed.");
492  continue;
493  }
495  Trk::PseudoMeasurementOnTrack const* constraint = makePConstraint(originalPerigee,trtSurf);
496 
498  SiHits.push_back(constraint);
499 
501  addedConstraint = true;
502  }
503 
504  if(!m_trtid->is_sct(surfaceid) && !m_trtid->is_pixel(surfaceid)){
505  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "Removing Non-Si hit." <<endmsg;
506  continue;
507  }
508 
509  ++totalNumberSiHits;
510  SiHits.push_back(*meas);
511 
512  }
513 
515  // Should be Constrained !!!
516  //if(isConstrained(numberUpperPixelHits,numberUpperSCTHits,numberUpperTRTHits,numberUpperPseudoMeas)){
517 
518  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "before calling fit" << endmsg;
519  outputTrack = (m_trkfitter->fit(Gaudi::Hive::currentContext(),SiHits, *originalPerigee, false, hypo)).release();
520  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "after calling fit" << endmsg;
521 
522  if(!outputTrack){
523  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Fit Failed!" << endmsg ;
524  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "There were: " << totalNumberSiHits << "TRT hits" << endmsg;
525  }
526 
527  if(msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "Leaving stripTRTFromTrack" <<endmsg;
528  return outputTrack;
529 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::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.

◆ trackIsCandidate()

bool InDet::InDetTrackSplitterTool::trackIsCandidate ( Trk::Track const inputTrack) const
private

Track selection applied in the splitTracks method (for the moment this is just a d0 cut requiring the track went through TRT cavity.

This can be fleshed out, to have better track selection

Definition at line 847 of file InDetTrackSplitterTool.cxx.

847  {
848  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "In trackIsCandidate."<< endmsg;
849  Trk::Perigee const* trackPerigee = inputTrack.perigeeParameters();
850 
851  if (!trackPerigee)
852  {
853  msg(MSG::WARNING) << "Found track with invalid perigee parameters. Not splitting." << endmsg;
854  return false;
855  }
856 
857  //Trk::Perigee const* measuredperigee = dynamic_cast<Trk::Perigee const*>( trackPerigee );
858  double const d0 = trackPerigee->parameters()[Trk::d0];
859 
860  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "do is: "<< d0 << endmsg;
861 
864  //width of the cavity in the TRT
865  if( fabs(d0) < 600){
866  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "is a candidate" << endmsg;
867  return true;
868  }
869 
870  if(msgLvl(MSG::VERBOSE)) msg(MSG::VERBOSE) << "is NOT a candidate" << endmsg;
871  return false;
872 }

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::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  }

◆ UpperTracksKey()

std::string const InDet::InDetTrackSplitterTool::UpperTracksKey ( ) const
inlinevirtual

Return the names of the track collections stored in storeGate.

Implements InDet::IInDetTrackSplitterTool.

Definition at line 125 of file InDetTrackSplitterTool.h.

125 {return m_outputUpperTracksName.key();}

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_keepmaterial

bool InDet::InDetTrackSplitterTool::m_keepmaterial
private

Do we use the material on the input track.

Definition at line 176 of file InDetTrackSplitterTool.h.

◆ m_outputLowerTracksName

SG::WriteHandleKey<TrackCollection> InDet::InDetTrackSplitterTool::m_outputLowerTracksName
private

Definition at line 167 of file InDetTrackSplitterTool.h.

◆ m_outputUpperTracksName

SG::WriteHandleKey<TrackCollection> InDet::InDetTrackSplitterTool::m_outputUpperTracksName
private

Output track collection names recorded in storgate.

Definition at line 166 of file InDetTrackSplitterTool.h.

◆ m_sctid

SCT_ID const* InDet::InDetTrackSplitterTool::m_sctid {}
private

Definition at line 172 of file InDetTrackSplitterTool.h.

◆ m_trkfitter

ToolHandle<Trk::ITrackFitter> InDet::InDetTrackSplitterTool::m_trkfitter
private

Helper Functions.

Definition at line 170 of file InDetTrackSplitterTool.h.

◆ m_trtid

TRT_ID const* InDet::InDetTrackSplitterTool::m_trtid {}
private

Definition at line 171 of file InDetTrackSplitterTool.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
AtlasDetectorID::is_pixel
bool is_pixel(Identifier id) const
Definition: AtlasDetectorID.h:760
Trk::LocalParameters
Definition: LocalParameters.h:98
InDet::InDetTrackSplitterTool::stripTRTFromTrack
Trk::Track * stripTRTFromTrack(Trk::Track const &input, bool applyConstraint=true) const
Strip the TRT hits, fit the remaining with a qOverP constraint.
Definition: InDetTrackSplitterTool.cxx:451
Trk::TrackStateOnSurface::CaloDeposit
@ CaloDeposit
This TSOS contains a CaloEnergy object.
Definition: TrackStateOnSurface.h:135
InDet::InDetTrackSplitterTool::splitTracks
virtual void splitTracks(TrackCollection const *inputTracks) const
Takes a trackCollection, splits them according to upper and lower parts and fills two track collectio...
Definition: InDetTrackSplitterTool.cxx:794
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:27
get_generator_info.result
result
Definition: get_generator_info.py:21
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Trk::PerigeeSurface
Definition: PerigeeSurface.h:43
AtlasDetectorID::is_sct
bool is_sct(Identifier id) const
Definition: AtlasDetectorID.h:770
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
Trk::ParametersT
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
Definition: EMErrorDetail.h:25
skel.it
it
Definition: skel.GENtoEVGEN.py:396
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
Trk::z0
@ z0
Definition: ParamDefs.h:64
AthCommonMsg< AlgTool >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
InDet::InDetTrackSplitterTool::m_trkfitter
ToolHandle< Trk::ITrackFitter > m_trkfitter
Helper Functions.
Definition: InDetTrackSplitterTool.h:170
Trk::RIO_OnTrack
Definition: RIO_OnTrack.h:70
AtlasDetectorID::is_trt
bool is_trt(Identifier id) const
Definition: AtlasDetectorID.h:782
SCT_ID::phi_module
int phi_module(const Identifier &id) const
Definition: SCT_ID.h:740
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
IDTPM::nPixelHits
float nPixelHits(const U &p)
Definition: TrackParametersHelper.h:326
TruthTest.itE
itE
Definition: TruthTest.py:25
InDet::InDetTrackSplitterTool::isConstrained
bool isConstrained(unsigned int nPixelHits, unsigned int nSCTHits, unsigned int nTRTHits, unsigned int nPseudomeasurements) const
Logic to check if the track is constrained given the number of various types of hits.
Definition: InDetTrackSplitterTool.cxx:940
Trk::DefinedParameter
std::pair< double, ParamDefs > DefinedParameter
Definition: DefinedParameter.h:27
AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
Trk::TrackStateOnSurface::Outlier
@ Outlier
This TSoS contains an outlier, that is, it contains a MeasurementBase/RIO_OnTrack which was not used ...
Definition: TrackStateOnSurface.h:122
InDet::InDetTrackSplitterTool::makePConstraint
Trk::PseudoMeasurementOnTrack const * makePConstraint(Trk::Perigee const *originialPerigee, Trk::StraightLineSurface const *trtSurf) const
Make the qOverP constraint.
Definition: InDetTrackSplitterTool.cxx:533
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
Trk::PseudoMeasurementOnTrack
Class to handle pseudo-measurements in fitters and on track objects.
Definition: PseudoMeasurementOnTrack.h:44
Trk::ParticleHypothesis
ParticleHypothesis
Definition: ParticleHypothesis.h:25
InDet::InDetTrackSplitterTool::m_sctid
SCT_ID const * m_sctid
Definition: InDetTrackSplitterTool.h:172
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
InDet::InDetTrackSplitterTool::m_outputLowerTracksName
SG::WriteHandleKey< TrackCollection > m_outputLowerTracksName
Definition: InDetTrackSplitterTool.h:167
InDet::InDetTrackSplitterTool::splitInUpperLowerTrack
virtual std::pair< Trk::Track *, Trk::Track * > splitInUpperLowerTrack(Trk::Track const &input, bool siliconHitsOnly=false) const
Splits a single input track into upper and lower parts (based on global y) returns a pair of track th...
Definition: InDetTrackSplitterTool.cxx:142
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
InDet::InDetTrackSplitterTool::getSCTHits
std::vector< Trk::MeasurementBase const * > getSCTHits(Trk::Track const &input) const
Return a vector of the SCT hits on track.
Definition: InDetTrackSplitterTool.cxx:877
python.TrigInDetConfig.inputTracks
inputTracks
Definition: TrigInDetConfig.py:183
IDTPM::nSCTHits
float nSCTHits(const U &p)
Definition: TrackParametersHelper.h:365
IDTPM::nTRTHits
float nTRTHits(const U &p)
Definition: TrackParametersHelper.h:409
Trk::theta
@ theta
Definition: ParamDefs.h:66
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
Trk::CompetingRIOsOnTrack
Base class for all CompetingRIOsOnTack implementations, extends the common MeasurementBase.
Definition: CompetingRIOsOnTrack.h:64
TRT::Track::d0
@ d0
Definition: InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h:62
test_pyathena.parent
parent
Definition: test_pyathena.py:15
InDet::InDetTrackSplitterTool::m_trtid
TRT_ID const * m_trtid
Definition: InDetTrackSplitterTool.h:171
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
InDet::InDetTrackSplitterTool::m_outputUpperTracksName
SG::WriteHandleKey< TrackCollection > m_outputUpperTracksName
Output track collection names recorded in storgate.
Definition: InDetTrackSplitterTool.h:166
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
Trk::TrackStateOnSurface::BremPoint
@ BremPoint
This represents a brem point on the track, and so will contain TrackParameters and MaterialEffectsBas...
Definition: TrackStateOnSurface.h:109
InDet::InDetTrackSplitterTool::m_keepmaterial
bool m_keepmaterial
Do we use the material on the input track.
Definition: InDetTrackSplitterTool.h:176
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
Trk::MeasurementSet
std::vector< const MeasurementBase * > MeasurementSet
vector of fittable measurements
Definition: FitterTypes.h:30
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
Trk::MeasurementBase
Definition: MeasurementBase.h:58
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
python.EventInfoMgtInit.release
release
Definition: EventInfoMgtInit.py:24
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
Trk::d0
@ d0
Definition: ParamDefs.h:63
InDet::InDetTrackSplitterTool::findSCTHitsFromSameSpacePoint
std::vector< Trk::MeasurementBase const * >::iterator findSCTHitsFromSameSpacePoint(Trk::MeasurementBase const *sctHit, std::vector< Trk::MeasurementBase const * > &listOfSCTHits) const
Logic to check if there is another SCT hit associated with the input hit, which forms a space point.
Definition: InDetTrackSplitterTool.cxx:908
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
a
TList * a
Definition: liststreamerinfos.cxx:10
h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
Trk::RIO_OnTrack::identify
Identifier identify() const
return the identifier -extends MeasurementBase
Definition: RIO_OnTrack.h:152
DEBUG
#define DEBUG
Definition: page_access.h:11
SCT_ID::eta_module
int eta_module(const Identifier &id) const
Definition: SCT_ID.h:746
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
Trk::qOverP
@ qOverP
perigee
Definition: ParamDefs.h:67
Trk::TrackStateOnSurface::Scatterer
@ Scatterer
This represents a scattering point on the track, and so will contain TrackParameters and MaterialEffe...
Definition: TrackStateOnSurface.h:113
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
Trk::MeasurementBaseType::PseudoMeasurementOnTrack
@ PseudoMeasurementOnTrack
Definition: MeasurementBase.h:51
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
Trk::RIO_OnTrack::associatedSurface
virtual const Surface & associatedSurface() const override=0
returns the surface for the local to global transformation
python.Constants.VERBOSE
int VERBOSE
Definition: Control/AthenaCommon/python/Constants.py:14
InDet::InDetTrackSplitterTool::trackIsCandidate
bool trackIsCandidate(Trk::Track const &inputTrack) const
Track selection applied in the splitTracks method (for the moment this is just a d0 cut requiring the...
Definition: InDetTrackSplitterTool.cxx:847
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
InDet::InDetTrackSplitterTool::makeThetaZ0Constraint
Trk::PseudoMeasurementOnTrack const * makeThetaZ0Constraint(Trk::Perigee const *originialPerigee) const
Make the theta and z0 constraint.
Definition: InDetTrackSplitterTool.cxx:555
Trk::StraightLineSurface
Definition: StraightLineSurface.h:51
fitman.k
k
Definition: fitman.py:528
InDet::InDetTrackSplitterTool::stripSiFromTrack
Trk::Track * stripSiFromTrack(Trk::Track const &input) const
Strip the Si hits, fit the remaining with a theta, z0 constraint.
Definition: InDetTrackSplitterTool.cxx:384
Identifier
Definition: IdentifierFieldParser.cxx:14