ATLAS Offline Software
Public Member Functions | Public Attributes | Protected Attributes | List of all members
IdDictRegion Class Reference

#include <IdDictDefs.h>

Inheritance diagram for IdDictRegion:
Collaboration diagram for IdDictRegion:

Public Member Functions

 IdDictRegion ()=default
 
virtual ~IdDictRegion ()=default
 
std::string group_name () const
 
Range build_range () const
 
void set_index (size_t index)
 
void add_entry (IdDictRegionEntry *entry)
 
void resolve_references (const IdDictMgr &idd, IdDictDictionary &dictionary)
 
void generate_implementation (const IdDictMgr &idd, IdDictDictionary &dictionary, const std::string &tag="")
 
void find_neighbours (const IdDictDictionary &dictionary)
 
void reset_implementation ()
 
bool verify () const
 
void clear ()
 

Public Attributes

std::vector< IdDictRegionEntry * > m_entries
 
std::vector< IdDictFieldImplementationm_implementation
 
size_t m_index {}
 
std::string m_name
 
std::string m_group
 
std::string m_tag
 
bool m_is_empty {false}
 
std::string m_next_abs_eta_name
 
std::vector< std::string > m_prev_samp_names
 
std::vector< std::string > m_next_samp_names
 
std::vector< std::string > m_prev_subdet_names
 
std::vector< std::string > m_next_subdet_names
 
IdDictRegionm_prev_abs_eta {}
 
IdDictRegionm_next_abs_eta {}
 
std::vector< IdDictRegion * > m_prev_samp
 
std::vector< IdDictRegion * > m_next_samp
 
std::vector< IdDictRegion * > m_prev_subdet
 
std::vector< IdDictRegion * > m_next_subdet
 
float m_eta0 {}
 
float m_deta {}
 
float m_phi0 {}
 
float m_dphi {}
 

Protected Attributes

bool m_resolved_references {}
 
bool m_generated_implementation {}
 

Detailed Description

Definition at line 432 of file IdDictDefs.h.

Constructor & Destructor Documentation

◆ IdDictRegion()

IdDictRegion::IdDictRegion ( )
default

◆ ~IdDictRegion()

virtual IdDictRegion::~IdDictRegion ( )
virtualdefault

Member Function Documentation

◆ add_entry()

void IdDictRegion::add_entry ( IdDictRegionEntry entry)

Definition at line 2304 of file IdDictMgr.cxx.

2304  {
2305  m_entries.push_back (entry);
2306 }

◆ build_range()

Range IdDictRegion::build_range ( ) const
virtual

Implements IdDictDictEntry.

Definition at line 2420 of file IdDictMgr.cxx.

2420  {
2421  Range result;
2422  std::vector <IdDictRegionEntry*>::const_iterator it;
2423  for (it = m_entries.begin (); it != m_entries.end (); ++it){
2424  const IdDictRegionEntry& entry = *(*it);
2425  Range r = entry.build_range ();
2426  result.add (std::move(r));
2427  }
2428  return (result);
2429 }

◆ clear()

void IdDictRegion::clear ( )
virtual

Implements IdDictDictEntry.

Definition at line 2409 of file IdDictMgr.cxx.

2409  {
2411  for (it = m_entries.begin (); it != m_entries.end (); ++it){
2412  IdDictRegionEntry* entry = *it;
2413  entry->clear ();
2414  delete entry;
2415  }
2416  m_entries.clear ();
2417 }

◆ find_neighbours()

void IdDictRegion::find_neighbours ( const IdDictDictionary dictionary)

Definition at line 2336 of file IdDictMgr.cxx.

2336  {
2337  // Find the neighbours
2338  IdDictRegion* region = 0;
2339  if ("" != m_next_abs_eta_name) {
2340  region = dictionary.find_region(m_next_abs_eta_name,m_group );
2341  if (region) {
2342  region->m_prev_abs_eta = this;
2343  m_next_abs_eta = region;
2344  }
2345  }
2346  for (unsigned int i = 0; i < m_prev_samp_names.size(); ++i) {
2347  if ("" != m_prev_samp_names[i]) {
2348  region = dictionary.find_region(m_prev_samp_names[i],m_group );
2349  if (region) {
2350  m_prev_samp.push_back(region);
2351  }
2352  }
2353  }
2354  for (unsigned int i = 0; i < m_next_samp_names.size(); ++i) {
2355  if ("" != m_next_samp_names[i]) {
2356  region = dictionary.find_region(m_next_samp_names[i],m_group );
2357  if (region) {
2358  m_next_samp.push_back(region);
2359  }
2360  }
2361  }
2362 
2363  for (unsigned int i = 0; i < m_prev_subdet_names.size(); ++i) {
2364  if ("" != m_prev_subdet_names[i]) {
2365  region = dictionary.find_region(m_prev_subdet_names[i],m_group );
2366  if (region) {
2367  m_prev_subdet.push_back(region);
2368  }
2369  }
2370  }
2371  for (unsigned int i = 0; i < m_next_subdet_names.size(); ++i) {
2372  if ("" != m_next_subdet_names[i]) {
2373  region = dictionary.find_region(m_next_subdet_names[i],m_group );
2374  if (region) {
2375  m_next_subdet.push_back(region);
2376  }
2377 
2378  }
2379  }
2380 }

◆ generate_implementation()

void IdDictRegion::generate_implementation ( const IdDictMgr idd,
IdDictDictionary dictionary,
const std::string &  tag = "" 
)
virtual

Implements IdDictDictEntry.

Reimplemented in IdDictSubRegion.

Definition at line 2318 of file IdDictMgr.cxx.

2320  {
2321 
2322  if (Debugger::debug ()) {
2323  std::cout << "IdDictRegion::generate_implementation>" << std::endl;
2324  }
2327  for (it = m_entries.begin (); it != m_entries.end (); ++it) {
2328  IdDictRegionEntry* entry = *it;
2329  entry->generate_implementation (idd, dictionary, *this, tag);
2330  }
2332  }
2333 }

◆ group_name()

std::string IdDictRegion::group_name ( ) const
virtual

Implements IdDictDictEntry.

Definition at line 2294 of file IdDictMgr.cxx.

2294  {
2295  return (m_group);
2296 }

◆ reset_implementation()

void IdDictRegion::reset_implementation ( )
virtual

Implements IdDictDictEntry.

Reimplemented in IdDictSubRegion.

Definition at line 2384 of file IdDictMgr.cxx.

2384  {
2386  m_implementation.clear(); // remove implementation
2388  for (it = m_entries.begin (); it != m_entries.end (); ++it) {
2389  IdDictRegionEntry* entry = *it;
2390  entry->reset_implementation ();
2391  }
2392  // reset neighbours
2393  m_prev_abs_eta = 0;
2394  m_next_abs_eta = 0;
2395  m_prev_samp.clear();
2396  m_next_samp.clear();
2397  m_prev_subdet.clear();
2398  m_next_subdet.clear();
2399 
2401  }
2402 }

◆ resolve_references()

void IdDictRegion::resolve_references ( const IdDictMgr idd,
IdDictDictionary dictionary 
)
virtual

Implements IdDictDictEntry.

Definition at line 2309 of file IdDictMgr.cxx.

2309  {
2311  for (it = m_entries.begin (); it != m_entries.end (); ++it) {
2312  IdDictRegionEntry* entry = *it;
2313  entry->resolve_references (idd, dictionary, *this);
2314  }
2315 }

◆ set_index()

void IdDictRegion::set_index ( size_t  index)
virtual

Implements IdDictDictEntry.

Definition at line 2299 of file IdDictMgr.cxx.

2299  {
2300  m_index = index;
2301 }

◆ verify()

bool IdDictRegion::verify ( ) const
virtual

Implements IdDictDictEntry.

Definition at line 2404 of file IdDictMgr.cxx.

2404  {
2405  return (true);
2406 }

Member Data Documentation

◆ m_deta

float IdDictRegion::m_deta {}

Definition at line 477 of file IdDictDefs.h.

◆ m_dphi

float IdDictRegion::m_dphi {}

Definition at line 479 of file IdDictDefs.h.

◆ m_entries

std::vector<IdDictRegionEntry*> IdDictRegion::m_entries

Definition at line 458 of file IdDictDefs.h.

◆ m_eta0

float IdDictRegion::m_eta0 {}

Definition at line 476 of file IdDictDefs.h.

◆ m_generated_implementation

bool IdDictRegion::m_generated_implementation {}
protected

Definition at line 484 of file IdDictDefs.h.

◆ m_group

std::string IdDictRegion::m_group

Definition at line 462 of file IdDictDefs.h.

◆ m_implementation

std::vector<IdDictFieldImplementation> IdDictRegion::m_implementation

Definition at line 459 of file IdDictDefs.h.

◆ m_index

size_t IdDictRegion::m_index {}

Definition at line 460 of file IdDictDefs.h.

◆ m_is_empty

bool IdDictRegion::m_is_empty {false}

Definition at line 464 of file IdDictDefs.h.

◆ m_name

std::string IdDictRegion::m_name

Definition at line 461 of file IdDictDefs.h.

◆ m_next_abs_eta

IdDictRegion* IdDictRegion::m_next_abs_eta {}

Definition at line 471 of file IdDictDefs.h.

◆ m_next_abs_eta_name

std::string IdDictRegion::m_next_abs_eta_name

Definition at line 465 of file IdDictDefs.h.

◆ m_next_samp

std::vector<IdDictRegion*> IdDictRegion::m_next_samp

Definition at line 473 of file IdDictDefs.h.

◆ m_next_samp_names

std::vector<std::string> IdDictRegion::m_next_samp_names

Definition at line 467 of file IdDictDefs.h.

◆ m_next_subdet

std::vector<IdDictRegion*> IdDictRegion::m_next_subdet

Definition at line 475 of file IdDictDefs.h.

◆ m_next_subdet_names

std::vector<std::string> IdDictRegion::m_next_subdet_names

Definition at line 469 of file IdDictDefs.h.

◆ m_phi0

float IdDictRegion::m_phi0 {}

Definition at line 478 of file IdDictDefs.h.

◆ m_prev_abs_eta

IdDictRegion* IdDictRegion::m_prev_abs_eta {}

Definition at line 470 of file IdDictDefs.h.

◆ m_prev_samp

std::vector<IdDictRegion*> IdDictRegion::m_prev_samp

Definition at line 472 of file IdDictDefs.h.

◆ m_prev_samp_names

std::vector<std::string> IdDictRegion::m_prev_samp_names

Definition at line 466 of file IdDictDefs.h.

◆ m_prev_subdet

std::vector<IdDictRegion*> IdDictRegion::m_prev_subdet

Definition at line 474 of file IdDictDefs.h.

◆ m_prev_subdet_names

std::vector<std::string> IdDictRegion::m_prev_subdet_names

Definition at line 468 of file IdDictDefs.h.

◆ m_resolved_references

bool IdDictRegion::m_resolved_references {}
protected

Definition at line 483 of file IdDictDefs.h.

◆ m_tag

std::string IdDictRegion::m_tag

Definition at line 463 of file IdDictDefs.h.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
beamspotman.r
def r
Definition: beamspotman.py:676
IdDictRegion::m_next_samp
std::vector< IdDictRegion * > m_next_samp
Definition: IdDictDefs.h:473
get_generator_info.result
result
Definition: get_generator_info.py:21
IdDictRegion::m_prev_abs_eta
IdDictRegion * m_prev_abs_eta
Definition: IdDictDefs.h:470
skel.it
it
Definition: skel.GENtoEVGEN.py:396
IdDictRegion::m_prev_samp
std::vector< IdDictRegion * > m_prev_samp
Definition: IdDictDefs.h:472
IdDictRegion::m_prev_subdet
std::vector< IdDictRegion * > m_prev_subdet
Definition: IdDictDefs.h:474
IdDictRegion
Definition: IdDictDefs.h:433
IdDictRegion::m_next_subdet
std::vector< IdDictRegion * > m_next_subdet
Definition: IdDictDefs.h:475
IdDictRegion::m_next_abs_eta
IdDictRegion * m_next_abs_eta
Definition: IdDictDefs.h:471
IdDictRegion::m_index
size_t m_index
Definition: IdDictDefs.h:460
lumiFormat.i
int i
Definition: lumiFormat.py:85
Debugger::debug
static bool debug()
Definition: IdDictMgr.cxx:28
IdDictRegion::m_next_abs_eta_name
std::string m_next_abs_eta_name
Definition: IdDictDefs.h:465
IdDictRegion::m_entries
std::vector< IdDictRegionEntry * > m_entries
Definition: IdDictDefs.h:458
GetAllXsec.entry
list entry
Definition: GetAllXsec.py:132
IdDictRegion::m_group
std::string m_group
Definition: IdDictDefs.h:462
IdDictRegion::m_prev_samp_names
std::vector< std::string > m_prev_samp_names
Definition: IdDictDefs.h:466
master.dictionary
dictionary
Definition: master.py:47
Range
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
Definition: DetectorDescription/Identifier/Identifier/Range.h:29
IdDictRegion::m_next_samp_names
std::vector< std::string > m_next_samp_names
Definition: IdDictDefs.h:467
IdDictRegionEntry
Definition: IdDictDefs.h:507
IdDictRegion::m_prev_subdet_names
std::vector< std::string > m_prev_subdet_names
Definition: IdDictDefs.h:468
IdDictRegion::m_generated_implementation
bool m_generated_implementation
Definition: IdDictDefs.h:484
DeMoScan.index
string index
Definition: DeMoScan.py:364
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24
IdDictRegion::m_implementation
std::vector< IdDictFieldImplementation > m_implementation
Definition: IdDictDefs.h:459
IdDictRegion::m_next_subdet_names
std::vector< std::string > m_next_subdet_names
Definition: IdDictDefs.h:469