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

#include <FPGATrackSimGenScanBinning.h>

Inheritance diagram for FPGATrackSimGenScanKeyLyrBinning:
Collaboration diagram for FPGATrackSimGenScanKeyLyrBinning:

Public Types

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

Public Member Functions

 FPGATrackSimGenScanKeyLyrBinning (double r_in, double r_out)
 
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
 
ParSet keyparsToParSet (const FPGATrackSimGenScanKeyLyrHelper::KeyLyrPars &keypars) const
 
FPGATrackSimGenScanKeyLyrHelper::KeyLyrPars parSetToKeyPars (const ParSet &parset) const
 
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 &parset, 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

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

Detailed Description

Definition at line 382 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

◆ FPGATrackSimGenScanKeyLyrBinning()

FPGATrackSimGenScanKeyLyrBinning::FPGATrackSimGenScanKeyLyrBinning ( double  r_in,
double  r_out 
)
inline

Definition at line 386 of file FPGATrackSimGenScanBinning.h.

386  :
387  m_keylyrtool(r_in,r_out), m_parNames({"zR1", "zR2", "phiR1", "phiR2", "xm"}) {}

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 FPGATrackSimGenScanKeyLyrBinning::etaHistScale ( ) const
inlineoverridevirtual

Implements FPGATrackSimGenScanBinningBase.

Definition at line 393 of file FPGATrackSimGenScanBinning.h.

393 {return 300.0;}

◆ etaResidual()

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

Implements FPGATrackSimGenScanBinningBase.

Definition at line 427 of file FPGATrackSimGenScanBinning.h.

427  {
428  return hit->getZ()- m_keylyrtool.zExpected(parSetToKeyPars(parset),hit->getR());
429  }

◆ 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])); }

◆ keyparsToParSet()

ParSet FPGATrackSimGenScanKeyLyrBinning::keyparsToParSet ( const FPGATrackSimGenScanKeyLyrHelper::KeyLyrPars keypars) const
inline

Definition at line 396 of file FPGATrackSimGenScanBinning.h.

396  {
397  return ParSet({keypars.z1,keypars.z2,keypars.phi1,keypars.phi2,keypars.xm});
398  }

◆ 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& FPGATrackSimGenScanKeyLyrBinning::parNames ( unsigned  i) const
inlineoverridevirtual

Implements FPGATrackSimGenScanBinningBase.

Definition at line 388 of file FPGATrackSimGenScanBinning.h.

388 { return m_parNames[i]; }

◆ parSetToKeyPars()

FPGATrackSimGenScanKeyLyrHelper::KeyLyrPars FPGATrackSimGenScanKeyLyrBinning::parSetToKeyPars ( const ParSet parset) const
inline

Definition at line 400 of file FPGATrackSimGenScanBinning.h.

400  {
402  keypars.z1 = parset[0];
403  keypars.z2 = parset[1];
404  keypars.phi1 = parset[2];
405  keypars.phi2 = parset[3];
406  keypars.xm = parset[4];
407  return keypars;
408  }

◆ parSetToTrackPars()

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

Implements FPGATrackSimGenScanBinningBase.

Definition at line 413 of file FPGATrackSimGenScanBinning.h.

413  {
415  }

◆ 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 FPGATrackSimGenScanKeyLyrBinning::phiHistScale ( ) const
inlineoverridevirtual

Implements FPGATrackSimGenScanBinningBase.

Definition at line 394 of file FPGATrackSimGenScanBinning.h.

394 {return 60.0;}

◆ phiResidual()

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

Implements FPGATrackSimGenScanBinningBase.

Definition at line 431 of file FPGATrackSimGenScanBinning.h.

431  {
432  return m_keylyrtool.deltaX(parSetToKeyPars(parset),hit);
433  }

◆ 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 FPGATrackSimGenScanKeyLyrBinning::rowPar ( const ParSet parset,
FPGATrackSimHit const hit 
) const
inlineoverridevirtual

Definition at line 423 of file FPGATrackSimGenScanBinning.h.

424  {
425  return m_keylyrtool.xmForHit(parSetToKeyPars(parset),hit);
426  }

◆ rowParBinIdx()

unsigned FPGATrackSimGenScanBinningBase::rowParBinIdx ( double  val) const
inlineinherited

Definition at line 174 of file FPGATrackSimGenScanBinning.h.

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

◆ rowParIdx()

virtual unsigned FPGATrackSimGenScanKeyLyrBinning::rowParIdx ( ) const
inlineoverridevirtual

Implements FPGATrackSimGenScanBinningBase.

Definition at line 389 of file FPGATrackSimGenScanBinning.h.

389 { 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> FPGATrackSimGenScanKeyLyrBinning::scanPars ( ) const
inlineoverridevirtual

Implements FPGATrackSimGenScanBinningBase.

Definition at line 391 of file FPGATrackSimGenScanBinning.h.

391 { 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> FPGATrackSimGenScanKeyLyrBinning::slicePars ( ) const
inlineoverridevirtual

Implements FPGATrackSimGenScanBinningBase.

Definition at line 390 of file FPGATrackSimGenScanBinning.h.

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

◆ sliceVar()

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

Definition at line 420 of file FPGATrackSimGenScanBinning.h.

420  {
421  return hit->getZ();
422  }

◆ sliceVarExpected()

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

Definition at line 416 of file FPGATrackSimGenScanBinning.h.

417  {
418  return m_keylyrtool.zExpected(parSetToKeyPars(pars),hit->getR());
419  }

◆ 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 FPGATrackSimGenScanKeyLyrBinning::trackParsToParSet ( const FPGATrackSimTrackPars pars) const
inlineoverridevirtual

Implements FPGATrackSimGenScanBinningBase.

Definition at line 410 of file FPGATrackSimGenScanBinning.h.

410  {
412  }

Member Data Documentation

◆ m_invalidBin

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

◆ m_keylyrtool

FPGATrackSimGenScanKeyLyrHelper FPGATrackSimGenScanKeyLyrBinning::m_keylyrtool
private

Definition at line 436 of file FPGATrackSimGenScanBinning.h.

◆ 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> FPGATrackSimGenScanKeyLyrBinning::m_parNames
private

Definition at line 437 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
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
FPGATrackSimGenScanKeyLyrHelper::deltaX
double deltaX(KeyLyrPars keypars, const FPGATrackSimHit *hit) const
Definition: FPGATrackSimGenScanBinning.cxx:363
FPGATrackSimGenScanBinningBase::inRange
bool inRange(unsigned par, double val) const
Definition: FPGATrackSimGenScanBinning.h:177
FPGATrackSimGenScanKeyLyrHelper::KeyLyrPars::z1
double z1
Definition: FPGATrackSimGenScanBinning.h:319
FPGATrackSimGenScanKeyLyrHelper::KeyLyrPars::xm
double xm
Definition: FPGATrackSimGenScanBinning.h:323
FPGATrackSimGenScanKeyLyrHelper::xmForHit
double xmForHit(KeyLyrPars keypars, const FPGATrackSimHit *hit) const
Definition: FPGATrackSimGenScanBinning.cxx:339
FPGATrackSimGenScanKeyLyrHelper::keyParsToTrackPars
FPGATrackSimTrackPars keyParsToTrackPars(const KeyLyrPars &keypars) const
Definition: FPGATrackSimGenScanBinning.cxx:286
bin
Definition: BinsDiffFromStripMedian.h:43
FPGATrackSimGenScanBinningBase::m_parBins
std::vector< unsigned > m_parBins
Definition: FPGATrackSimGenScanBinning.h:205
FPGATrackSimGenScanKeyLyrBinning::m_parNames
const std::vector< std::string > m_parNames
Definition: FPGATrackSimGenScanBinning.h:437
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
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
FPGATrackSimGenScanKeyLyrHelper::KeyLyrPars::phi2
double phi2
Definition: FPGATrackSimGenScanBinning.h:322
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
FPGATrackSimGenScanKeyLyrHelper::KeyLyrPars::phi1
double phi1
Definition: FPGATrackSimGenScanBinning.h:321
FPGATrackSimGenScanKeyLyrHelper::KeyLyrPars::z2
double z2
Definition: FPGATrackSimGenScanBinning.h:320
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
FPGATrackSimGenScanKeyLyrHelper::KeyLyrPars
Definition: FPGATrackSimGenScanBinning.h:318
min
#define min(a, b)
Definition: cfImp.cxx:40
FPGATrackSimGenScanKeyLyrBinning::m_keylyrtool
FPGATrackSimGenScanKeyLyrHelper m_keylyrtool
Definition: FPGATrackSimGenScanBinning.h:436
debug
const bool debug
Definition: MakeUncertaintyPlots.cxx:53
createCoolChannelIdFile.par
par
Definition: createCoolChannelIdFile.py:29
FPGATrackSimGenScanKeyLyrHelper::zExpected
double zExpected(KeyLyrPars keypars, double r) const
Definition: FPGATrackSimGenScanBinning.cxx:333
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
FPGATrackSimGenScanBinningBase::sliceVarExpected
virtual double sliceVarExpected([[maybe_unused]] const ParSet &pars, [[maybe_unused]] FPGATrackSimHit const *hit) const
Definition: FPGATrackSimGenScanBinning.cxx:166
FPGATrackSimGenScanKeyLyrHelper::trackParsToKeyPars
KeyLyrPars trackParsToKeyPars(const FPGATrackSimTrackPars &pars) const
Definition: FPGATrackSimGenScanBinning.cxx:260
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
FPGATrackSimGenScanKeyLyrBinning::keyparsToParSet
ParSet keyparsToParSet(const FPGATrackSimGenScanKeyLyrHelper::KeyLyrPars &keypars) const
Definition: FPGATrackSimGenScanBinning.h:396
FPGATrackSimGenScanKeyLyrBinning::parSetToKeyPars
FPGATrackSimGenScanKeyLyrHelper::KeyLyrPars parSetToKeyPars(const ParSet &parset) const
Definition: FPGATrackSimGenScanBinning.h:400