ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
FPGATrackSimGenScanStdTrkBinning Class Reference

#include <FPGATrackSimGenScanBinning.h>

Inheritance diagram for FPGATrackSimGenScanStdTrkBinning:
Collaboration diagram for FPGATrackSimGenScanStdTrkBinning:

Public Member Functions

 FPGATrackSimGenScanStdTrkBinning (const std::string &algname, const std::string &name, const IInterface *ifc)
 
virtual StatusCode initialize () override
 
virtual const std::string & parNames (unsigned i) const override
 
virtual unsigned rowParIdx () const override
 
virtual std::vector< unsigned > slicePars () const override
 
virtual std::vector< unsigned > scanPars () const override
 
virtual double etaHistScale () const override
 
virtual double phiHistScale () const override
 
virtual const ParSet trackParsToParSet (const FPGATrackSimTrackPars &pars) const override
 
virtual const FPGATrackSimTrackPars parSetToTrackPars (const ParSet &parset) const override
 
virtual double sliceVarExpected (const ParSet &pars, FPGATrackSimHit const *hit) const override
 
virtual double sliceVar (FPGATrackSimHit const *hit) const override
 
virtual double rowPar (const ParSet &pars, FPGATrackSimHit const *hit) const override
 
virtual double etaResidual (const ParSet &parset, FPGATrackSimHit const *hit, [[maybe_unused]] bool debug=false) const override
 
virtual double phiResidual (const ParSet &parset, FPGATrackSimHit const *hit, [[maybe_unused]] bool debug=false) const override
 

Private Attributes

const std::vector< std::string > m_parNames
 

Detailed Description

Definition at line 283 of file FPGATrackSimGenScanBinning.h.

Constructor & Destructor Documentation

◆ FPGATrackSimGenScanStdTrkBinning()

FPGATrackSimGenScanStdTrkBinning::FPGATrackSimGenScanStdTrkBinning ( const std::string &  algname,
const std::string &  name,
const IInterface *  ifc 
)
inline

Definition at line 286 of file FPGATrackSimGenScanBinning.h.

286  :
287  base_class(algname, name, ifc), m_parNames({"z0", "eta", "qOverPt", "d0", "phi"})
288  {
289  declareInterface<FPGATrackSimGenScanBinningBase>(this);
290  }

Member Function Documentation

◆ etaHistScale()

virtual double FPGATrackSimGenScanStdTrkBinning::etaHistScale ( ) const
inlineoverridevirtual

Definition at line 300 of file FPGATrackSimGenScanBinning.h.

300 {return 200.0;}

◆ etaResidual()

virtual double FPGATrackSimGenScanStdTrkBinning::etaResidual ( const ParSet &  parset,
FPGATrackSimHit const hit,
[[maybe_unused] ] bool  debug = false 
) const
inlineoverridevirtual

Definition at line 332 of file FPGATrackSimGenScanBinning.h.

332  {
333  // this uses a shift in "eta*radius" instead of "z"
334  double theta = FPGATrackSimGenScanGeomHelpers::ThetaFromEta(parset[1]); // 1 = eta
335  return (hit->getZ() - parset[0]) * sin(theta) - hit->getR() * cos(theta); // 0=z0
336  }

◆ initialize()

virtual StatusCode FPGATrackSimGenScanStdTrkBinning::initialize ( )
inlineoverridevirtual

Definition at line 292 of file FPGATrackSimGenScanBinning.h.

292 { return StatusCode::SUCCESS; }

◆ parNames()

virtual const std::string& FPGATrackSimGenScanStdTrkBinning::parNames ( unsigned  i) const
inlineoverridevirtual

Definition at line 294 of file FPGATrackSimGenScanBinning.h.

294 { return m_parNames[i]; }

◆ parSetToTrackPars()

virtual const FPGATrackSimTrackPars FPGATrackSimGenScanStdTrkBinning::parSetToTrackPars ( const ParSet &  parset) const
inlineoverridevirtual

Definition at line 308 of file FPGATrackSimGenScanBinning.h.

309  {
311  pars[FPGATrackSimTrackPars::IZ0] = parset[0];
312  pars[FPGATrackSimTrackPars::IETA] = parset[1];
313  pars[FPGATrackSimTrackPars::IHIP] = parset[2];
314  pars[FPGATrackSimTrackPars::ID0] = parset[3];
315  pars[FPGATrackSimTrackPars::IPHI] = parset[4];
316  return pars;
317  }

◆ phiHistScale()

virtual double FPGATrackSimGenScanStdTrkBinning::phiHistScale ( ) const
inlineoverridevirtual

Definition at line 301 of file FPGATrackSimGenScanBinning.h.

301 {return 0.1;}

◆ phiResidual()

virtual double FPGATrackSimGenScanStdTrkBinning::phiResidual ( const ParSet &  parset,
FPGATrackSimHit const hit,
[[maybe_unused] ] bool  debug = false 
) const
inlineoverridevirtual

Definition at line 337 of file FPGATrackSimGenScanBinning.h.

337  {
339  }

◆ rowPar()

virtual double FPGATrackSimGenScanStdTrkBinning::rowPar ( const ParSet &  pars,
FPGATrackSimHit const hit 
) const
inlineoverridevirtual

Definition at line 327 of file FPGATrackSimGenScanBinning.h.

◆ rowParIdx()

virtual unsigned FPGATrackSimGenScanStdTrkBinning::rowParIdx ( ) const
inlineoverridevirtual

Definition at line 295 of file FPGATrackSimGenScanBinning.h.

295 { return 4;}

◆ scanPars()

virtual std::vector<unsigned> FPGATrackSimGenScanStdTrkBinning::scanPars ( ) const
inlineoverridevirtual

Definition at line 298 of file FPGATrackSimGenScanBinning.h.

298 { return std::vector<unsigned>({2,3}); }

◆ slicePars()

virtual std::vector<unsigned> FPGATrackSimGenScanStdTrkBinning::slicePars ( ) const
inlineoverridevirtual

Definition at line 297 of file FPGATrackSimGenScanBinning.h.

297 { return std::vector<unsigned>({0,1}); }

◆ sliceVar()

virtual double FPGATrackSimGenScanStdTrkBinning::sliceVar ( FPGATrackSimHit const hit) const
inlineoverridevirtual

Definition at line 323 of file FPGATrackSimGenScanBinning.h.

324  {
325  return hit->getZ();
326  }

◆ sliceVarExpected()

virtual double FPGATrackSimGenScanStdTrkBinning::sliceVarExpected ( const ParSet &  pars,
FPGATrackSimHit const hit 
) const
inlineoverridevirtual

Definition at line 319 of file FPGATrackSimGenScanBinning.h.

320  {
322  }

◆ trackParsToParSet()

virtual const ParSet FPGATrackSimGenScanStdTrkBinning::trackParsToParSet ( const FPGATrackSimTrackPars pars) const
inlineoverridevirtual

Member Data Documentation

◆ m_parNames

const std::vector<std::string> FPGATrackSimGenScanStdTrkBinning::m_parNames
private

Definition at line 342 of file FPGATrackSimGenScanBinning.h.


The documentation for this class was generated from the following file:
make_hlt_rep.pars
pars
Definition: make_hlt_rep.py:90
FPGATrackSimGenScanGeomHelpers::phiFromPars
static double phiFromPars(double r, const FPGATrackSimTrackPars &pars)
Definition: FPGATrackSimGenScanBinning.cxx:197
FPGATrackSimTrackPars::IHIP
@ IHIP
Definition: FPGATrackSimTrackPars.h:49
FPGATrackSimTrackPars::ID0
@ ID0
Definition: FPGATrackSimTrackPars.h:49
getMenu.algname
algname
Definition: getMenu.py:54
FPGATrackSimTrackPars
Definition: FPGATrackSimTrackPars.h:22
FPGATrackSimTrackPars::IZ0
@ IZ0
Definition: FPGATrackSimTrackPars.h:49
FPGATrackSimGenScanGeomHelpers::ThetaFromEta
static double ThetaFromEta(double eta)
Definition: FPGATrackSimGenScanBinning.cxx:176
theta
Scalar theta() const
theta method
Definition: AmgMatrixBasePlugin.h:75
xAOD::P4Helpers::deltaPhi
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[
Definition: xAODP4Helpers.h:69
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
lumiFormat.i
int i
Definition: lumiFormat.py:85
FPGATrackSimGenScanStdTrkBinning::m_parNames
const std::vector< std::string > m_parNames
Definition: FPGATrackSimGenScanBinning.h:342
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
FPGATrackSimGenScanStdTrkBinning::parSetToTrackPars
virtual const FPGATrackSimTrackPars parSetToTrackPars(const ParSet &parset) const override
Definition: FPGATrackSimGenScanBinning.h:308
FPGATrackSimGenScanGeomHelpers::parsToTrkPhi
static double parsToTrkPhi(const FPGATrackSimTrackPars &pars, FPGATrackSimHit const *hit)
Definition: FPGATrackSimGenScanBinning.cxx:204
FPGATrackSimTrackPars::IPHI
@ IPHI
Definition: FPGATrackSimTrackPars.h:49
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
FPGATrackSimGenScanGeomHelpers::zFromPars
static double zFromPars(double r, const FPGATrackSimTrackPars &pars)
Definition: FPGATrackSimGenScanBinning.cxx:186
FPGATrackSimTrackPars::IETA
@ IETA
Definition: FPGATrackSimTrackPars.h:49