ATLAS Offline Software
Namespaces | Classes | Typedefs | Functions
GlobalSim Namespace Reference

AlgTool to obtain a selection of eFex RoIs read in from the event store. More...

Namespaces

 BDT
 

Classes

struct  ap_fixed
 
struct  ap_int
 
class  Count
 
class  cTauInputAlgTool
 
class  cTauMultiplicity
 
class  cTauMultiplicityAlgTool
 
class  cTauTOBArray
 
class  Decision
 
class  DeltaRSqrIncl2
 
class  DeltaRSqrIncl2AlgTool
 
class  eEmInputAlgTool
 
class  eEmSelect
 
class  eEmSelectAlgTool
 
class  eEmTOBArray
 
class  eFexRoIAlgTool
 
class  Egamma1_LArStrip_Fex
 
class  Egamma1BDTAlgTool
 
class  EMB1CellsFromCaloCells
 
class  EnergyThreshold_jXE
 
class  EnergyThresholdAlgTool_jXE
 
class  ERatio
 
class  ERatioAlgTool
 
class  GenericTOBArray
 
class  GlobalSimulationAlg
 
class  ICaloCellsProducer
 
class  IGlobalSimAlgTool
 
class  jJetInputAlgTool
 
class  jJetSelect
 
class  jJetSelectAlgTool
 
class  jJetTOBArray
 
class  jXEInputAlgTool
 
class  jXETOBArray
 
class  L1MenuResources
 
class  LArStripNeighborhood
 
struct  Round
 
class  SimpleCone
 
class  SimpleConeAlgTool
 
struct  StripData
 
struct  Tracer
 
struct  Trunc
 
struct  XilDef
 

Typedefs

typedef ap_int< 10 > input_t
 
typedef input_t input_arr_t[n_features]
 
typedef ap_int< 10 > threshold_t
 
typedef ap_fixed< 10, 5 > score_t
 
typedef score_t score_arr_t[n_classes]
 
typedef float accelerator_input_t
 
typedef float accelerator_output_t
 
typedef bool() sort_fnc(TCS::GenericTOB *tob1, TCS::GenericTOB *tob2)
 
using StripDataVector = std::vector< StripData >
 
using Coords = std::pair< double, double >
 
using LArStripNeighborhoodContainer = DataVector< LArStripNeighborhood >
 

Functions

template<typename T >
void dump (const std::string &fn, const T &t)
 
std::optional< std::vector< std::size_t > > wrap3 (std::size_t center)
 
void dump_stripdataVector (const StripDataVector &sdv, std::ostream &os)
 
void dump_n (const LArStripNeighborhood *n, std::ostream &os)
 
std::ostream & operator<< (std::ostream &os, const Decision &dec)
 
bool isocut (const std::string &threshold, const unsigned int bit)
 
bool isocut (const unsigned int threshold, const unsigned int bit)
 
template<std::size_t width, typename T >
constexpr T max_to_overflow ()
 

Detailed Description

AlgTool to obtain a selection of eFex RoIs read in from the event store.

AlgTool run the L1Topo SimpleCone DECISIOM Algorithm.

AlgTool to obtain a GlobalSim::jXETOBArray from a jFexMETRoIContainer.

AlgTool run the L1Topo jJetSelect SORT Algorithm.

AlgTool to obtain a GlobalSim::jJetTOBArray from a jFexSRJetRoIContainer.

AlgTool run the L1Topo EnergyThreshold COUNT Algorithm.

AlgTool run the L1Topo eEmSelect SORT Algorithm.

AlgTool to obtain a GlobalSim::eEmTOBArray.

AlgTool run the L1Topo DeltaRSqrIncl2 DECISION Algorithm.

AlgTool run the L1Topo cTauMultiplicty COUNT Algorithm.

AlgTool to obtain a GlobalSim::cTAUTOBArray This class uses ReadHandles to jFex and eFex Tau Rois If these objects are needed by another algorithm, runtime duplication will occur.

AlgTool to read in LArStripNeighborhoods, and run the ERatio Algorithm.

AlgTool to read in LArStripNeighborhoods, and run the BDT Algorithm.

Future impreovement : have separate input Algorithms for jFex and eFex RoIs, and have cTauInputAlgTool use these results.

Typedef Documentation

◆ accelerator_input_t

Definition at line 23 of file parameters.h.

◆ accelerator_output_t

Definition at line 24 of file parameters.h.

◆ Coords

using GlobalSim::Coords = typedef std::pair<double, double>

Definition at line 26 of file LArStripNeighborhood.h.

◆ input_arr_t

typedef input_t GlobalSim::input_arr_t[n_features]

Definition at line 19 of file parameters.h.

◆ input_t

Definition at line 18 of file parameters.h.

◆ LArStripNeighborhoodContainer

Definition at line 14 of file LArStripNeighborhoodContainer.h.

◆ score_arr_t

typedef score_t GlobalSim::score_arr_t[n_classes]

Definition at line 22 of file parameters.h.

◆ score_t

Definition at line 21 of file parameters.h.

◆ sort_fnc

typedef bool() GlobalSim::sort_fnc(TCS::GenericTOB *tob1, TCS::GenericTOB *tob2)

Definition at line 29 of file GenericTOBArray.h.

◆ StripDataVector

using GlobalSim::StripDataVector = typedef std::vector<StripData>

Definition at line 24 of file LArStripNeighborhood.h.

◆ threshold_t

Definition at line 20 of file parameters.h.

Function Documentation

◆ dump()

template<typename T >
void GlobalSim::dump ( const std::string &  fn,
const T &  t 
)

◆ dump_n()

void GlobalSim::dump_n ( const LArStripNeighborhood n,
std::ostream &  os 
)

Definition at line 332 of file Egamma1_LArStrip_Fex.cxx.

333  {
334  dump_stripdataVector(n->phi_low(), os);
335  dump_stripdataVector(n->phi_center(), os);
336  dump_stripdataVector(n->phi_high(), os);
337  }

◆ dump_stripdataVector()

void GlobalSim::dump_stripdataVector ( const StripDataVector sdv,
std::ostream &  os 
)

Definition at line 312 of file Egamma1_LArStrip_Fex.cxx.

312  {
313 
314  for(const auto& sd : sdv) {
315  os << sd.m_eta << ' ';
316  }
317  os << '\n';
318 
319 
320  for(const auto& sd : sdv) {
321  os << sd.m_phi << ' ';
322  }
323  os << '\n';
324 
325  for(const auto & sd : sdv) {
326  os << sd.m_e << ' ';
327  }
328  os << '\n';
329  os << '\n';
330  }

◆ isocut() [1/2]

bool GlobalSim::isocut ( const std::string &  threshold,
const unsigned int  bit 
)

Definition at line 10 of file isocut.cxx.

10  {
11  if (threshold == "None") {return true;}
12  if (threshold == "Loose") {return bit >= 1;}
13  if (threshold == "Medium") {return bit >= 2;}
14  if (threshold == "HadMedium") {return bit >= 2;}
15  if (threshold == "Tight") {return bit>= 3;}
16 
17  throw std::runtime_error("GlobalSim isocut() unnown threshold " +
18  threshold);
19  }

◆ isocut() [2/2]

bool GlobalSim::isocut ( const unsigned int  threshold,
const unsigned int  bit 
)

Definition at line 22 of file isocut.cxx.

22  {
23  if (bit >= threshold) {return true;}
24  return false;
25  }

◆ max_to_overflow()

template<std::size_t width, typename T >
constexpr T GlobalSim::max_to_overflow ( )
constexpr

Definition at line 30 of file ap_fixed.h.

30  {
31  T t{0};
32  static_assert(8*sizeof(t) >= width, "ap_fixed underlying int to small");
33  for (std::size_t i = 0; i <= sizeof(t)*8-width; ++i){
34  T bit{1};
35  t = t+(bit<<i);
36  }
37 
38  t = t << (width-1);
39  return t;
40  }

◆ operator<<()

std::ostream& GlobalSim::operator<< ( std::ostream &  os,
const Decision dec 
)

Definition at line 34 of file Global/GlobalSimulation/src/IO/Decision.cxx.

35  {
36  unsigned int bit = dec.nBits();
37  if(dec.nBits()==1) {
38  os << "decision (1 bit, position " << dec.firstBit() << "): ";
39  } else {
40  os << "decision (" << dec.nBits()
41  << " bits, position " << dec.firstBit()
42  << " - "
43  << dec.lastBit() << "): ";
44  }
45 
46  while(bit!=0) {
47  os << (dec.bit(--bit)?1:0);
48  }
49  os << "(overflow "<<dec.overflow()<<")";
50  return os;
51  }

◆ wrap3()

std::optional<std::vector<std::size_t> > GlobalSim::wrap3 ( std::size_t  center)

Definition at line 22 of file Egamma1_LArStrip_Fex.cxx.

22  {
23  if (center > 63) {
24  return std::optional<std::vector<std::size_t>>{};
25  }
26 
27  if (center == 63) {
28  return std::make_optional(std::vector<std::size_t>({62ul, 63ul, 0ul}));
29  }
30 
31  if (center == 0) {
32  return std::make_optional(std::vector<std::size_t>({63ul, 0ul, 1ul}));
33  }
34 
35  return std::make_optional(std::vector<std::size_t>(
36  {center-1,
37  center,
38  center+1}));
39  }
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.selector.AtlRunQuerySelectorLhcOlc.sd
sd
Definition: AtlRunQuerySelectorLhcOlc.py:612
lumiFormat.i
int i
Definition: lumiFormat.py:85
beamspotman.n
n
Definition: beamspotman.py:731
detail::ul
unsigned long ul
Definition: PrimitiveHelpers.h:46
GlobalSim::dump_stripdataVector
void dump_stripdataVector(const StripDataVector &sdv, std::ostream &os)
Definition: Egamma1_LArStrip_Fex.cxx:312
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
threshold
Definition: chainparser.cxx:74
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35