6#include "GaudiKernel/MsgStream.h"
28 declareInterface<ITrackGradeFactory>(
this );
37 std::vector<TrackGrade> myGrades;
41 myGrades.push_back(
TrackGrade(0,std::string(
"Good")));
45 myGrades.push_back(
TrackGrade(0,std::string(
"Good")));
46 myGrades.push_back(
TrackGrade(1,std::string(
"Shared")));
51 return StatusCode::SUCCESS;
56 return StatusCode::SUCCESS;
69 bool sharedClass(
false);
74 uint8_t nbs=0, nps=0, nss=0;
76 ATH_MSG_ERROR(
"#BTAG# Cannot retrieve numberOfBLayerSharedHists for TrackGrade!");
80 ATH_MSG_ERROR(
"#BTAG# Cannot retrieve numberOfPixelSharedHists for TrackGrade!");
84 ATH_MSG_ERROR(
"#BTAG# Cannot retrieve numberOfSCTSharedHists for TrackGrade!");
117 if (gradeToReturn==0)
int m_nSharedPix
max. number of shared hits in B layer
StatusCode initialize()
AlgTool initailize method.
TrackGrade * getGrade(const xAOD::TrackParticle &track, const xAOD::IParticle::FourMom_t &) const
StatusCode finalize()
AlgTool finalize method.
virtual const TrackGradesDefinition & getTrackGradesDefinition() const
TrackGradesDefinition m_trackGradesDefinition
int m_nSharedBLayer
if false the following cuts are ignored
BasicTrackGradeFactory(const std::string &, const std::string &, const IInterface *)
int m_nSharedSct
max. number of shared hits in pixels
virtual ~BasicTrackGradeFactory()
int m_nSharedSi
max. number of shared hits in SCT
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
TLorentzVector FourMom_t
Definition of the 4-momentum type.
The namespace of all packages in PhysicsAnalysis/JetTagging.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
@ numberOfInnermostPixelLayerSharedHits
number of Pixel 0th layer barrel hits shared by several tracks.
@ numberOfPixelSharedHits
number of Pixel all-layer hits shared by several tracks [unit8_t].
@ numberOfSCTSharedHits
number of SCT hits shared by several tracks [unit8_t].