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

#include <ToyDetectorManager.h>

Inheritance diagram for ToyDetectorManager:
Collaboration diagram for ToyDetectorManager:

Public Types

enum  Type { CENTRAL, FORWARD }
 

Public Member Functions

 ToyDetectorManager ()
 
 ~ToyDetectorManager ()
 
virtual unsigned int getNumTreeTops () const
 
virtual PVConstLink getTreeTop (unsigned int i) const
 
const ForwardScrutinizergetForwardScrutinizer (unsigned int i) const
 
const CentralScrutinizergetCentralScrutinizer (unsigned int i) const
 
unsigned int getNumScrutinizers (Type type) const
 
void addTreeTop (PVLink)
 
void addCentralScrutinizer (const CentralScrutinizer *)
 
void addForwardScrutinizer (const ForwardScrutinizer *)
 

Private Member Functions

const ToyDetectorManageroperator= (const ToyDetectorManager &right)
 
 ToyDetectorManager (const ToyDetectorManager &right)
 

Private Attributes

std::vector< const CentralScrutinizer * > m_centralScrutinizer
 
std::vector< const ForwardScrutinizer * > m_forwardScrutinizer
 
std::vector< PVLink > m_volume
 

Detailed Description

Definition at line 13 of file ToyDetectorManager.h.

Member Enumeration Documentation

◆ Type

Enumerator
CENTRAL 
FORWARD 

Definition at line 16 of file ToyDetectorManager.h.

16 {CENTRAL, FORWARD};

Constructor & Destructor Documentation

◆ ToyDetectorManager() [1/2]

ToyDetectorManager::ToyDetectorManager ( )

Definition at line 9 of file ToyDetectorManager.cxx.

10 {
11  setName("Toy");
12 }

◆ ~ToyDetectorManager()

ToyDetectorManager::~ToyDetectorManager ( )

Definition at line 15 of file ToyDetectorManager.cxx.

16 {
17  // Clean up the central scrutinizers:
18  for (size_t ic=0;ic<m_centralScrutinizer.size();ic++) {
19  delete m_centralScrutinizer[ic];
20  }
21  // Clean up the forward scrutinizers:
22  for (size_t ix=0;ix<m_forwardScrutinizer.size();ix++) {
23  delete m_forwardScrutinizer[ix];
24  }
25 }

◆ ToyDetectorManager() [2/2]

ToyDetectorManager::ToyDetectorManager ( const ToyDetectorManager right)
private

Member Function Documentation

◆ addCentralScrutinizer()

void ToyDetectorManager::addCentralScrutinizer ( const CentralScrutinizer scrut)

Definition at line 58 of file ToyDetectorManager.cxx.

58  {
59  m_centralScrutinizer.push_back(scrut);
60 }

◆ addForwardScrutinizer()

void ToyDetectorManager::addForwardScrutinizer ( const ForwardScrutinizer scrut)

Definition at line 63 of file ToyDetectorManager.cxx.

63  {
64  m_forwardScrutinizer.push_back(scrut);
65 }

◆ addTreeTop()

void ToyDetectorManager::addTreeTop ( PVLink  vol)

Definition at line 53 of file ToyDetectorManager.cxx.

53  {
54  m_volume.push_back(vol);
55 }

◆ getCentralScrutinizer()

const CentralScrutinizer * ToyDetectorManager::getCentralScrutinizer ( unsigned int  i) const

Definition at line 43 of file ToyDetectorManager.cxx.

44 {
45  return m_centralScrutinizer[i];
46 }

◆ getForwardScrutinizer()

const ForwardScrutinizer * ToyDetectorManager::getForwardScrutinizer ( unsigned int  i) const

Definition at line 38 of file ToyDetectorManager.cxx.

39 {
40  return m_forwardScrutinizer[i];
41 }

◆ getNumScrutinizers()

unsigned int ToyDetectorManager::getNumScrutinizers ( Type  type) const

Definition at line 48 of file ToyDetectorManager.cxx.

49 {
50  return (type==CENTRAL) ? m_centralScrutinizer.size() : m_forwardScrutinizer.size();
51 }

◆ getNumTreeTops()

unsigned int ToyDetectorManager::getNumTreeTops ( ) const
virtual

Definition at line 28 of file ToyDetectorManager.cxx.

29 {
30  return m_volume.size();
31 }

◆ getTreeTop()

PVConstLink ToyDetectorManager::getTreeTop ( unsigned int  i) const
virtual

Definition at line 33 of file ToyDetectorManager.cxx.

34 {
35  return m_volume[i];
36 }

◆ operator=()

const ToyDetectorManager& ToyDetectorManager::operator= ( const ToyDetectorManager right)
private

Member Data Documentation

◆ m_centralScrutinizer

std::vector<const CentralScrutinizer *> ToyDetectorManager::m_centralScrutinizer
private

Definition at line 57 of file ToyDetectorManager.h.

◆ m_forwardScrutinizer

std::vector<const ForwardScrutinizer *> ToyDetectorManager::m_forwardScrutinizer
private

Definition at line 58 of file ToyDetectorManager.h.

◆ m_volume

std::vector<PVLink> ToyDetectorManager::m_volume
private

Definition at line 59 of file ToyDetectorManager.h.


The documentation for this class was generated from the following files:
ToyDetectorManager::m_volume
std::vector< PVLink > m_volume
Definition: ToyDetectorManager.h:59
ToyDetectorManager::m_forwardScrutinizer
std::vector< const ForwardScrutinizer * > m_forwardScrutinizer
Definition: ToyDetectorManager.h:58
ToyDetectorManager::m_centralScrutinizer
std::vector< const CentralScrutinizer * > m_centralScrutinizer
Definition: ToyDetectorManager.h:57
lumiFormat.i
int i
Definition: lumiFormat.py:85
grepfile.ic
int ic
Definition: grepfile.py:33
ToyDetectorManager::CENTRAL
@ CENTRAL
Definition: ToyDetectorManager.h:16
ToyDetectorManager::FORWARD
@ FORWARD
Definition: ToyDetectorManager.h:16
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78