ATLAS Offline Software
Classes | Functions
FTF Namespace Reference

header for factorised IRoiDescriptor interface More...

Classes

class  BaseSpacePointFilter
 
class  LayerCalculator
 
class  RoI_Filter
 
class  SpacePointSelector
 
class  SpacePointShifter
 
class  SpacePointTransform
 

Functions

bool isGoodTrackUTT (const Trk::Track *track, trackInfo &theTrackInfo, const float shift_x, const float shift_y, float trkcut_ptgev)
 
void getBeamSpotShift (float &shift_x, float &shift_y, const InDet::BeamSpotData &beamSpotHandle)
 

Detailed Description

header for factorised IRoiDescriptor interface

Function Documentation

◆ getBeamSpotShift()

void FTF::getBeamSpotShift ( float &  shift_x,
float &  shift_y,
const InDet::BeamSpotData beamSpotHandle 
)

Definition at line 30 of file TrigInDetUtils.cxx.

30  {
31  Amg::Vector3D vertex = beamSpotHandle.beamPos();
32  //ATH_MSG_VERBOSE("Beam spot position " << vertex);
33  double xVTX = vertex.x();
34  double yVTX = vertex.y();
35  double zVTX = vertex.z();
36  double tiltXZ = beamSpotHandle.beamTilt(0);
37  double tiltYZ = beamSpotHandle.beamTilt(1);
38  shift_x = xVTX - tiltXZ*zVTX;//correction for tilt
39  shift_y = yVTX - tiltYZ*zVTX;//correction for tilt
40  //ATH_MSG_VERBOSE("Beam center position: " << shift_x <<" "<< shift_y);
41 }

◆ isGoodTrackUTT()

bool FTF::isGoodTrackUTT ( const Trk::Track track,
trackInfo theTrackInfo,
const float  shift_x,
const float  shift_y,
float  trkcut_ptgev 
)

Definition at line 4 of file TrigInDetUtils.cxx.

4  {
5  static constexpr int TRKCUT_N_HITS_INNER = 1;
6  static constexpr int TRKCUT_N_HITS_PIX = 2;
7  static constexpr float TRKCUT_A0BEAM = 2.5;
8  static constexpr int TRKCUT_N_HITS = 4;
9 
10  if ( track->perigeeParameters()==nullptr ) return false;
11  if ( track->trackSummary()==nullptr ) return false;
13  float n_hits_next_to_innermost = track->trackSummary()->get(Trk::SummaryType::numberOfNextToInnermostPixelLayerHits);
14  theTrackInfo.n_hits_inner = theTrackInfo.n_hits_innermost + n_hits_next_to_innermost;
15  theTrackInfo.n_hits_pix = track->trackSummary()->get(Trk::SummaryType::numberOfPixelHits);
16  theTrackInfo.n_hits_sct = track->trackSummary()->get(Trk::SummaryType::numberOfSCTHits);
17  if( theTrackInfo.n_hits_inner < TRKCUT_N_HITS_INNER ) return false;
18  if( theTrackInfo.n_hits_pix < TRKCUT_N_HITS_PIX ) return false;
19  if( (theTrackInfo.n_hits_pix+theTrackInfo.n_hits_sct) < TRKCUT_N_HITS ) return false;
20  theTrackInfo.eta = track->perigeeParameters()->eta();
21  theTrackInfo.ptGeV = track->perigeeParameters()->pT()/Gaudi::Units::GeV;
22  if( theTrackInfo.ptGeV < trkcut_ptgev ) return false;
23  float a0 = track->perigeeParameters()->parameters()[Trk::d0];
24  theTrackInfo.phi0 = track->perigeeParameters()->parameters()[Trk::phi0];
25  theTrackInfo.a0beam = a0 + shift_x*sin(theTrackInfo.phi0)-shift_y*cos(theTrackInfo.phi0);
26  if( std::abs(theTrackInfo.a0beam) > TRKCUT_A0BEAM ) {return false;}
27  return true;
28 }
GeV
#define GeV
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
trackInfo::ptGeV
float ptGeV
Definition: TrigInDetUtils.h:15
trackInfo::n_hits_inner
int n_hits_inner
Definition: TrigInDetUtils.h:14
xAOD::numberOfPixelHits
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
Definition: TrackingPrimitives.h:259
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
trackInfo::eta
float eta
Definition: TrigInDetUtils.h:15
trackInfo::n_hits_pix
int n_hits_pix
Definition: TrigInDetUtils.h:14
trackInfo::n_hits_sct
int n_hits_sct
Definition: TrigInDetUtils.h:14
a0
double a0
Definition: globals.cxx:27
InDet::BeamSpotData::beamPos
const Amg::Vector3D & beamPos() const noexcept
Definition: BeamSpotData.h:68
xAOD::numberOfNextToInnermostPixelLayerHits
@ numberOfNextToInnermostPixelLayerHits
these are the hits in the 1st pixel barrel layer
Definition: TrackingPrimitives.h:248
trackInfo::a0beam
float a0beam
Definition: TrigInDetUtils.h:15
Trk::d0
@ d0
Definition: ParamDefs.h:63
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
trackInfo::phi0
float phi0
Definition: TrigInDetUtils.h:15
xAOD::numberOfSCTHits
@ numberOfSCTHits
number of hits in SCT [unit8_t].
Definition: TrackingPrimitives.h:268
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
trackInfo::n_hits_innermost
int n_hits_innermost
Definition: TrigInDetUtils.h:14
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
Trk::phi0
@ phi0
Definition: ParamDefs.h:65
xAOD::numberOfInnermostPixelLayerHits
@ numberOfInnermostPixelLayerHits
these are the hits in the 0th pixel barrel layer
Definition: TrackingPrimitives.h:237
InDet::BeamSpotData::beamTilt
float beamTilt(int i) const noexcept
Returns the beam sigma for the i+3-th error matrix element (the 'tilt')
Definition: BeamSpotData.h:74