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

#include <FPGATrackSimGenScanBinning.h>

Inheritance diagram for FPGATrackSimGenScanStdTrkBinning:
Collaboration diagram for FPGATrackSimGenScanStdTrkBinning:

Public Types

typedef std::vector< double > ParSet
 
typedef std::vector< unsigned int > IdxSet
 

Public Member Functions

 FPGATrackSimGenScanStdTrkBinning ()
 
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
 
virtual bool hitInSlice (const IdxSet &idx, FPGATrackSimHit const *hit) const
 
virtual std::pair< unsigned, unsigned > idxsetToRowParBinRange (const IdxSet &idx, FPGATrackSimHit const *hit) const
 
std::vector< unsigned > sliceAndScanPars () const
 
double phiShift (const IdxSet &idx, FPGATrackSimHit const *hit, bool debug=false) const
 
double etaShift (const IdxSet &idx, FPGATrackSimHit const *hit, bool debug=false) const
 
virtual std::vector< unsigned > sliceBins () const
 
virtual std::vector< unsigned > scanBins () const
 
virtual std::vector< unsigned > sliceAndScanBins () const
 
virtual unsigned rowBin () const
 
virtual std::vector< unsigned > sliceIdx (const IdxSet &idx) const
 
virtual std::vector< unsigned > scanIdx (const IdxSet &idx) const
 
virtual std::vector< unsigned > sliceAndScanIdx (const IdxSet &idx) const
 
virtual unsigned rowIdx (const IdxSet &idx) const
 
double binCenter (unsigned par, unsigned bin) const
 
ParSet binCenter (const IdxSet &idx) const
 
double binLowEdge (unsigned par, unsigned bin) const
 
ParSet binLowEdge (const IdxSet &idx) const
 
double binHighEdge (unsigned par, unsigned bin) const
 
ParSet center () const
 
unsigned binIdx (unsigned par, double val) const
 
IdxSet binIdx (const ParSet &pars) const
 
unsigned rowParBinIdx (double val) const
 
bool inRange (unsigned par, double val) const
 
bool inRange (const ParSet &pars) const
 
const IdxSet parsToBin (FPGATrackSimTrackPars &pars) const
 
std::vector< unsigned > subVec (const std::vector< unsigned > &elems, const std::vector< unsigned > &invec) const
 
StatusCode setIdxSubVec (IdxSet &idx, const std::vector< unsigned > &subvecelems, const std::vector< unsigned > &subvecidx) const
 
std::vector< ParSetmakeVariationSet (const std::vector< unsigned > &scanpars, const IdxSet &idx) const
 

Public Attributes

std::vector< double > m_parMin
 
std::vector< double > m_parMax
 
std::vector< double > m_parStep
 
std::vector< unsigned > m_parBins
 
const std::vector< unsigned > m_invalidBin
 

Static Public Attributes

static constexpr unsigned NPars = 5
 

Private Attributes

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

Detailed Description

Definition at line 247 of file FPGATrackSimGenScanBinning.h.

Member Typedef Documentation

◆ IdxSet

typedef std::vector<unsigned int> FPGATrackSimGenScanBinningBase::IdxSet
inherited

Definition at line 79 of file FPGATrackSimGenScanBinning.h.

◆ ParSet

typedef std::vector<double> FPGATrackSimGenScanBinningBase::ParSet
inherited

Definition at line 78 of file FPGATrackSimGenScanBinning.h.

Constructor & Destructor Documentation

◆ FPGATrackSimGenScanStdTrkBinning()

FPGATrackSimGenScanStdTrkBinning::FPGATrackSimGenScanStdTrkBinning ( )
inline

Definition at line 250 of file FPGATrackSimGenScanBinning.h.

250 : m_parNames({"z0", "eta", "qOverPt", "d0", "phi"}) {}

Member Function Documentation

◆ binCenter() [1/2]

FPGATrackSimGenScanBinningBase::ParSet FPGATrackSimGenScanBinningBase::binCenter ( const IdxSet idx) const
inherited

Definition at line 67 of file FPGATrackSimGenScanBinning.cxx.

68 {
69  ParSet parset(NPars);
70  for (unsigned i = 0; i < NPars; i++)
71  {
72  parset[i] = binCenter(i, idx[i]);
73  }
74  return parset;
75 }

◆ binCenter() [2/2]

double FPGATrackSimGenScanBinningBase::binCenter ( unsigned  par,
unsigned  bin 
) const
inlineinherited

Definition at line 163 of file FPGATrackSimGenScanBinning.h.

163 { return m_parMin[par] + m_parStep[par] * (double(bin) + 0.5); }

◆ binHighEdge()

double FPGATrackSimGenScanBinningBase::binHighEdge ( unsigned  par,
unsigned  bin 
) const
inlineinherited

Definition at line 165 of file FPGATrackSimGenScanBinning.h.

165 { return m_parMin[par] + m_parStep[par] * (double(bin) + 1.0); }

◆ binIdx() [1/2]

FPGATrackSimGenScanBinningBase::IdxSet FPGATrackSimGenScanBinningBase::binIdx ( const ParSet pars) const
inherited

Definition at line 28 of file FPGATrackSimGenScanBinning.cxx.

29 {
30  IdxSet retv(NPars);
31  for (unsigned i = 0; i < NPars; i++)
32  {
33  retv[i] = binIdx(i, pars[i]);
34  }
35  return retv;
36 }

◆ binIdx() [2/2]

unsigned FPGATrackSimGenScanBinningBase::binIdx ( unsigned  par,
double  val 
) const
inlineinherited

Definition at line 173 of file FPGATrackSimGenScanBinning.h.

173 { return (val > m_parMin[par]) ? unsigned(floor((val - m_parMin[par]) / m_parStep[par])) : 0; }

◆ binLowEdge() [1/2]

FPGATrackSimGenScanBinningBase::ParSet FPGATrackSimGenScanBinningBase::binLowEdge ( const IdxSet idx) const
inherited

Definition at line 57 of file FPGATrackSimGenScanBinning.cxx.

58 {
59  ParSet parset(NPars);
60  for (unsigned i = 0; i < NPars; i++)
61  {
62  parset[i] = binLowEdge(i, idx[i]);
63  }
64  return parset;
65 }

◆ binLowEdge() [2/2]

double FPGATrackSimGenScanBinningBase::binLowEdge ( unsigned  par,
unsigned  bin 
) const
inlineinherited

Definition at line 164 of file FPGATrackSimGenScanBinning.h.

164 { return m_parMin[par] + m_parStep[par] * (double(bin)); }

◆ center()

FPGATrackSimGenScanBinningBase::ParSet FPGATrackSimGenScanBinningBase::center ( ) const
inherited

Definition at line 47 of file FPGATrackSimGenScanBinning.cxx.

48 {
49  ParSet parset(NPars);
50  for (unsigned i = 0; i < NPars; i++)
51  {
52  parset[i] = (m_parMin[i] + m_parMin[i]) / 2.0;
53  }
54  return parset;
55 }

◆ etaHistScale()

virtual double FPGATrackSimGenScanStdTrkBinning::etaHistScale ( ) const
inlineoverridevirtual

Implements FPGATrackSimGenScanBinningBase.

Definition at line 257 of file FPGATrackSimGenScanBinning.h.

257 {return 200.0;}

◆ etaResidual()

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

Implements FPGATrackSimGenScanBinningBase.

Definition at line 289 of file FPGATrackSimGenScanBinning.h.

289  {
290  // this uses a shift in "eta*radius" instead of "z"
291  double theta = FPGATrackSimGenScanGeomHelpers::ThetaFromEta(parset[1]); // 1 = eta
292  return (hit->getZ() - parset[0]) * sin(theta) - hit->getR() * cos(theta); // 0=z0
293  }

◆ etaShift()

double FPGATrackSimGenScanBinningBase::etaShift ( const IdxSet idx,
FPGATrackSimHit const hit,
bool  debug = false 
) const
inlineinherited

Definition at line 148 of file FPGATrackSimGenScanBinning.h.

148 { return etaResidual(binCenter(idx),hit,debug);}

◆ hitInSlice()

bool FPGATrackSimGenScanBinningBase::hitInSlice ( const IdxSet idx,
FPGATrackSimHit const hit 
) const
virtualinherited

Reimplemented in FPGATrackSimGenScanPhiSlicedKeyLyrBinning.

Definition at line 122 of file FPGATrackSimGenScanBinning.cxx.

123 {
124  // Get float values
125  double slicevarmin = std::numeric_limits<double>::max();
126  double slicevarmax = std::numeric_limits<double>::min();
127 
129 
130  for (auto &pars : variations)
131  {
132  double slicevarhit = sliceVarExpected(pars, hit);
133  slicevarmin = std::min(slicevarmin, slicevarhit);
134  slicevarmax = std::max(slicevarmax, slicevarhit);
135  }
136  double slicevar = sliceVar(hit);
137  return ( slicevar > slicevarmin) && (slicevar < slicevarmax);
138 }

◆ idxsetToRowParBinRange()

std::pair< unsigned, unsigned > FPGATrackSimGenScanBinningBase::idxsetToRowParBinRange ( const IdxSet idx,
FPGATrackSimHit const hit 
) const
virtualinherited

Definition at line 142 of file FPGATrackSimGenScanBinning.cxx.

143 {
144  // Get float values
145  double rowparmin = std::numeric_limits<double>::max();
146  double rowparmax = std::numeric_limits<double>::min();
147 
149 
150  for (auto &pars : variations)
151  {
152  double rowparhit = rowPar(pars, hit);
153  rowparmin = std::min(rowparmin, rowparhit);
154  rowparmax = std::max(rowparmax, rowparhit);
155  }
156 
157  // only consider parameter bins in range
158  unsigned lowbin = std::max(rowParBinIdx(rowparmin), unsigned(0));
159  unsigned highbin = std::min(rowParBinIdx(rowparmax) + 1, m_parBins[rowParIdx()] );
160 
161  return {lowbin, highbin};
162 }

◆ inRange() [1/2]

bool FPGATrackSimGenScanBinningBase::inRange ( const ParSet pars) const
inherited

Definition at line 18 of file FPGATrackSimGenScanBinning.cxx.

19 {
20  for (unsigned i = 0; i < NPars; i++)
21  {
22  if (!inRange(i, pars[i]))
23  return false;
24  }
25  return true;
26 }

◆ inRange() [2/2]

bool FPGATrackSimGenScanBinningBase::inRange ( unsigned  par,
double  val 
) const
inlineinherited

Definition at line 177 of file FPGATrackSimGenScanBinning.h.

177 { return ((val < m_parMax[par]) && (val > m_parMin[par])); }

◆ makeVariationSet()

std::vector< FPGATrackSimGenScanBinningBase::ParSet > FPGATrackSimGenScanBinningBase::makeVariationSet ( const std::vector< unsigned > &  scanpars,
const IdxSet idx 
) const
inherited

Definition at line 104 of file FPGATrackSimGenScanBinning.cxx.

105 {
106  std::vector<ParSet> retv;
107  for (unsigned corners = 0; corners < unsigned((1 << scanpars.size())); corners++)
108  {
109  IdxSet newidx = idx;
110  int scanDimCnt = 0;
111  for (auto &par : scanpars)
112  {
113  newidx[par] = idx[par] + ((corners >> scanDimCnt) & 1);
114  scanDimCnt++;
115  }
116  retv.push_back(binLowEdge(newidx));
117  }
118  return retv;
119 }

◆ parNames()

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

Implements FPGATrackSimGenScanBinningBase.

Definition at line 251 of file FPGATrackSimGenScanBinning.h.

251 { return m_parNames[i]; }

◆ parSetToTrackPars()

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

Implements FPGATrackSimGenScanBinningBase.

Definition at line 265 of file FPGATrackSimGenScanBinning.h.

266  {
268  pars[FPGATrackSimTrackPars::IZ0] = parset[0];
269  pars[FPGATrackSimTrackPars::IETA] = parset[1];
270  pars[FPGATrackSimTrackPars::IHIP] = parset[2];
271  pars[FPGATrackSimTrackPars::ID0] = parset[3];
272  pars[FPGATrackSimTrackPars::IPHI] = parset[4];
273  return pars;
274  }

◆ parsToBin()

const FPGATrackSimGenScanBinningBase::IdxSet FPGATrackSimGenScanBinningBase::parsToBin ( FPGATrackSimTrackPars pars) const
inherited

Definition at line 37 of file FPGATrackSimGenScanBinning.cxx.

38 {
39  ParSet parset = trackParsToParSet(pars);
40  if (inRange(parset))
41  {
42  return binIdx(parset);
43  }
44  return m_invalidBin;
45 }

◆ phiHistScale()

virtual double FPGATrackSimGenScanStdTrkBinning::phiHistScale ( ) const
inlineoverridevirtual

Implements FPGATrackSimGenScanBinningBase.

Definition at line 258 of file FPGATrackSimGenScanBinning.h.

258 {return 0.1;}

◆ phiResidual()

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

Implements FPGATrackSimGenScanBinningBase.

Definition at line 294 of file FPGATrackSimGenScanBinning.h.

294  {
296  }

◆ phiShift()

double FPGATrackSimGenScanBinningBase::phiShift ( const IdxSet idx,
FPGATrackSimHit const hit,
bool  debug = false 
) const
inlineinherited

Definition at line 147 of file FPGATrackSimGenScanBinning.h.

147 { return phiResidual(binCenter(idx),hit,debug);}

◆ rowBin()

virtual unsigned FPGATrackSimGenScanBinningBase::rowBin ( ) const
inlinevirtualinherited

Definition at line 154 of file FPGATrackSimGenScanBinning.h.

154 { return m_parBins[rowParIdx()]; }

◆ rowIdx()

virtual unsigned FPGATrackSimGenScanBinningBase::rowIdx ( const IdxSet idx) const
inlinevirtualinherited

Definition at line 160 of file FPGATrackSimGenScanBinning.h.

160 { return idx[rowParIdx()]; }

◆ rowPar()

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

Definition at line 284 of file FPGATrackSimGenScanBinning.h.

◆ rowParBinIdx()

unsigned FPGATrackSimGenScanBinningBase::rowParBinIdx ( double  val) const
inlineinherited

Definition at line 174 of file FPGATrackSimGenScanBinning.h.

174 { return binIdx(rowParIdx(), val); }

◆ rowParIdx()

virtual unsigned FPGATrackSimGenScanStdTrkBinning::rowParIdx ( ) const
inlineoverridevirtual

Implements FPGATrackSimGenScanBinningBase.

Definition at line 252 of file FPGATrackSimGenScanBinning.h.

252 { return 4;}

◆ scanBins()

virtual std::vector<unsigned> FPGATrackSimGenScanBinningBase::scanBins ( ) const
inlinevirtualinherited

Definition at line 152 of file FPGATrackSimGenScanBinning.h.

152 { return subVec(scanPars(), m_parBins); }

◆ scanIdx()

virtual std::vector<unsigned> FPGATrackSimGenScanBinningBase::scanIdx ( const IdxSet idx) const
inlinevirtualinherited

Definition at line 158 of file FPGATrackSimGenScanBinning.h.

158 { return subVec(scanPars(), idx); }

◆ scanPars()

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

Implements FPGATrackSimGenScanBinningBase.

Definition at line 255 of file FPGATrackSimGenScanBinning.h.

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

◆ setIdxSubVec()

StatusCode FPGATrackSimGenScanBinningBase::setIdxSubVec ( IdxSet idx,
const std::vector< unsigned > &  subvecelems,
const std::vector< unsigned > &  subvecidx 
) const
inherited

Definition at line 87 of file FPGATrackSimGenScanBinning.cxx.

88 {
89  if (subvecelems.size()!=subvecidx.size()) {
90  return StatusCode::FAILURE;
91  }
92  for (unsigned i = 0; i < subvecelems.size(); i++)
93  {
94  if (subvecelems[i] >= idx.size()) {
95  return StatusCode::FAILURE;
96  }
97  idx[subvecelems[i]] = subvecidx[i];
98  }
99  return StatusCode::SUCCESS;
100 }

◆ sliceAndScanBins()

virtual std::vector<unsigned> FPGATrackSimGenScanBinningBase::sliceAndScanBins ( ) const
inlinevirtualinherited

Definition at line 153 of file FPGATrackSimGenScanBinning.h.

153 { return subVec(sliceAndScanPars(), m_parBins); }

◆ sliceAndScanIdx()

virtual std::vector<unsigned> FPGATrackSimGenScanBinningBase::sliceAndScanIdx ( const IdxSet idx) const
inlinevirtualinherited

Definition at line 159 of file FPGATrackSimGenScanBinning.h.

159 { return subVec(sliceAndScanPars(), idx); }

◆ sliceAndScanPars()

std::vector<unsigned> FPGATrackSimGenScanBinningBase::sliceAndScanPars ( ) const
inlineinherited

Definition at line 139 of file FPGATrackSimGenScanBinning.h.

139  {
140  std::vector<unsigned> retv = slicePars();
141  std::vector<unsigned> scan = scanPars();
142  retv.insert(retv.end(), scan.begin(), scan.end());
143  return retv;
144  };

◆ sliceBins()

virtual std::vector<unsigned> FPGATrackSimGenScanBinningBase::sliceBins ( ) const
inlinevirtualinherited

Definition at line 151 of file FPGATrackSimGenScanBinning.h.

151 { return subVec(slicePars(), m_parBins); }

◆ sliceIdx()

virtual std::vector<unsigned> FPGATrackSimGenScanBinningBase::sliceIdx ( const IdxSet idx) const
inlinevirtualinherited

Definition at line 157 of file FPGATrackSimGenScanBinning.h.

157 { return subVec(slicePars(), idx); }

◆ slicePars()

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

Implements FPGATrackSimGenScanBinningBase.

Definition at line 254 of file FPGATrackSimGenScanBinning.h.

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

◆ sliceVar()

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

Definition at line 280 of file FPGATrackSimGenScanBinning.h.

281  {
282  return hit->getZ();
283  }

◆ sliceVarExpected()

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

Definition at line 276 of file FPGATrackSimGenScanBinning.h.

277  {
279  }

◆ subVec()

std::vector< unsigned > FPGATrackSimGenScanBinningBase::subVec ( const std::vector< unsigned > &  elems,
const std::vector< unsigned > &  invec 
) const
inherited

Definition at line 77 of file FPGATrackSimGenScanBinning.cxx.

78 {
79  std::vector<unsigned> retv;
80  for (auto elem : elems)
81  {
82  retv.push_back(invec[elem]);
83  }
84  return retv;
85 }

◆ trackParsToParSet()

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

Member Data Documentation

◆ m_invalidBin

const std::vector<unsigned> FPGATrackSimGenScanBinningBase::m_invalidBin
inherited

◆ m_parBins

std::vector<unsigned> FPGATrackSimGenScanBinningBase::m_parBins
inherited

Definition at line 205 of file FPGATrackSimGenScanBinning.h.

◆ m_parMax

std::vector<double> FPGATrackSimGenScanBinningBase::m_parMax
inherited

Definition at line 203 of file FPGATrackSimGenScanBinning.h.

◆ m_parMin

std::vector<double> FPGATrackSimGenScanBinningBase::m_parMin
inherited

Definition at line 202 of file FPGATrackSimGenScanBinning.h.

◆ m_parNames

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

Definition at line 299 of file FPGATrackSimGenScanBinning.h.

◆ m_parStep

std::vector<double> FPGATrackSimGenScanBinningBase::m_parStep
inherited

Definition at line 204 of file FPGATrackSimGenScanBinning.h.

◆ NPars

constexpr unsigned FPGATrackSimGenScanBinningBase::NPars = 5
staticconstexprinherited

Definition at line 201 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
FPGATrackSimGenScanBinningBase::IdxSet
std::vector< unsigned int > IdxSet
Definition: FPGATrackSimGenScanBinning.h:79
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
FPGATrackSimGenScanBinningBase::m_parStep
std::vector< double > m_parStep
Definition: FPGATrackSimGenScanBinning.h:204
max
#define max(a, b)
Definition: cfImp.cxx:41
FPGATrackSimGenScanBinningBase::ParSet
std::vector< double > ParSet
Definition: FPGATrackSimGenScanBinning.h:78
FPGATrackSimGenScanBinningBase::rowPar
virtual double rowPar([[maybe_unused]] const ParSet &pars, [[maybe_unused]] FPGATrackSimHit const *hit) const
Definition: FPGATrackSimGenScanBinning.cxx:167
yodamerge_tmp.variations
variations
Definition: yodamerge_tmp.py:257
FPGATrackSimTrackPars
Definition: FPGATrackSimTrackPars.h:22
FPGATrackSimGenScanBinningBase::inRange
bool inRange(unsigned par, double val) const
Definition: FPGATrackSimGenScanBinning.h:177
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
bin
Definition: BinsDiffFromStripMedian.h:43
FPGATrackSimGenScanBinningBase::m_parBins
std::vector< unsigned > m_parBins
Definition: FPGATrackSimGenScanBinning.h:205
xAOD::P4Helpers::deltaPhi
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[
Definition: xAODP4Helpers.h:69
FPGATrackSimGenScanBinningBase::etaResidual
virtual double etaResidual(const ParSet &parset, FPGATrackSimHit const *hit, [[maybe_unused]] bool debug=false) const =0
FPGATrackSimGenScanBinningBase::binIdx
unsigned binIdx(unsigned par, double val) const
Definition: FPGATrackSimGenScanBinning.h:173
FPGATrackSimGenScanBinningBase::m_invalidBin
const std::vector< unsigned > m_invalidBin
Definition: FPGATrackSimGenScanBinning.h:208
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
xAOD::unsigned
unsigned
Definition: RingSetConf_v1.cxx:662
FPGATrackSimGenScanBinningBase::trackParsToParSet
virtual const ParSet trackParsToParSet(const FPGATrackSimTrackPars &pars) const =0
FPGATrackSimGenScanBinningBase::sliceVar
virtual double sliceVar([[maybe_unused]] FPGATrackSimHit const *hit) const
Definition: FPGATrackSimGenScanBinning.cxx:165
FPGATrackSimGenScanBinningBase::m_parMax
std::vector< double > m_parMax
Definition: FPGATrackSimGenScanBinning.h:203
FPGATrackSimGenScanBinningBase::rowParBinIdx
unsigned rowParBinIdx(double val) const
Definition: FPGATrackSimGenScanBinning.h:174
FPGATrackSimGenScanBinningBase::sliceAndScanPars
std::vector< unsigned > sliceAndScanPars() const
Definition: FPGATrackSimGenScanBinning.h:139
FPGATrackSimGenScanBinningBase::m_parMin
std::vector< double > m_parMin
Definition: FPGATrackSimGenScanBinning.h:202
FPGATrackSimGenScanBinningBase::NPars
static constexpr unsigned NPars
Definition: FPGATrackSimGenScanBinning.h:201
FPGATrackSimGenScanBinningBase::scanPars
virtual std::vector< unsigned > scanPars() const =0
FPGATrackSimGenScanBinningBase::slicePars
virtual std::vector< unsigned > slicePars() const =0
FPGATrackSimGenScanBinningBase::phiResidual
virtual double phiResidual(const ParSet &parset, FPGATrackSimHit const *hit, [[maybe_unused]] bool debug=false) const =0
lumiFormat.i
int i
Definition: lumiFormat.py:85
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
min
#define min(a, b)
Definition: cfImp.cxx:40
FPGATrackSimGenScanStdTrkBinning::m_parNames
const std::vector< std::string > m_parNames
Definition: FPGATrackSimGenScanBinning.h:299
debug
const bool debug
Definition: MakeUncertaintyPlots.cxx:53
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29
FPGATrackSimGenScanStdTrkBinning::parSetToTrackPars
virtual const FPGATrackSimTrackPars parSetToTrackPars(const ParSet &parset) const override
Definition: FPGATrackSimGenScanBinning.h:265
FPGATrackSimGenScanGeomHelpers::parsToTrkPhi
static double parsToTrkPhi(const FPGATrackSimTrackPars &pars, FPGATrackSimHit const *hit)
Definition: FPGATrackSimGenScanBinning.cxx:204
FPGATrackSimTrackPars::IPHI
@ IPHI
Definition: FPGATrackSimTrackPars.h:49
scan
void scan(TDirectory *td=0, int depth=0)
Definition: listroot.cxx:440
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
FPGATrackSimGenScanBinningBase::binLowEdge
double binLowEdge(unsigned par, unsigned bin) const
Definition: FPGATrackSimGenScanBinning.h:164
FPGATrackSimGenScanBinningBase::subVec
std::vector< unsigned > subVec(const std::vector< unsigned > &elems, const std::vector< unsigned > &invec) const
Definition: FPGATrackSimGenScanBinning.cxx:77
FPGATrackSimGenScanBinningBase::rowParIdx
virtual unsigned rowParIdx() const =0
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
FPGATrackSimGenScanBinningBase::sliceVarExpected
virtual double sliceVarExpected([[maybe_unused]] const ParSet &pars, [[maybe_unused]] FPGATrackSimHit const *hit) const
Definition: FPGATrackSimGenScanBinning.cxx:166
FPGATrackSimGenScanBinningBase::makeVariationSet
std::vector< ParSet > makeVariationSet(const std::vector< unsigned > &scanpars, const IdxSet &idx) const
Definition: FPGATrackSimGenScanBinning.cxx:104
FPGATrackSimGenScanBinningBase::binCenter
double binCenter(unsigned par, unsigned bin) const
Definition: FPGATrackSimGenScanBinning.h:163
FPGATrackSimGenScanGeomHelpers::zFromPars
static double zFromPars(double r, const FPGATrackSimTrackPars &pars)
Definition: FPGATrackSimGenScanBinning.cxx:186
FPGATrackSimTrackPars::IETA
@ IETA
Definition: FPGATrackSimTrackPars.h:49