ATLAS Offline Software
ToyDetectorManager.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "ForwardScrutinizer.h"
7 #include "CentralScrutinizer.h"
8 
10 {
11  setName("Toy");
12 }
13 
14 
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 }
26 
27 
29 {
30  return m_volume.size();
31 }
32 
33 PVConstLink ToyDetectorManager::getTreeTop(unsigned int i) const
34 {
35  return m_volume[i];
36 }
37 
39 {
40  return m_forwardScrutinizer[i];
41 }
42 
44 {
45  return m_centralScrutinizer[i];
46 }
47 
49 {
50  return (type==CENTRAL) ? m_centralScrutinizer.size() : m_forwardScrutinizer.size();
51 }
52 
54  m_volume.push_back(vol);
55 }
56 
57 
59  m_centralScrutinizer.push_back(scrut);
60 }
61 
62 
64  m_forwardScrutinizer.push_back(scrut);
65 }
ToyDetectorManager::getNumTreeTops
virtual unsigned int getNumTreeTops() const
Definition: ToyDetectorManager.cxx:28
ToyDetectorManager::ToyDetectorManager
ToyDetectorManager()
Definition: ToyDetectorManager.cxx:9
ToyDetectorManager::m_volume
std::vector< PVLink > m_volume
Definition: ToyDetectorManager.h:59
ToyDetectorManager::~ToyDetectorManager
~ToyDetectorManager()
Definition: ToyDetectorManager.cxx:15
ForwardScrutinizer.h
ForwardScrutinizer
Definition: ForwardScrutinizer.h:14
ToyDetectorManager::getTreeTop
virtual PVConstLink getTreeTop(unsigned int i) const
Definition: ToyDetectorManager.cxx:33
ToyDetectorManager::m_forwardScrutinizer
std::vector< const ForwardScrutinizer * > m_forwardScrutinizer
Definition: ToyDetectorManager.h:58
ToyDetectorManager::addForwardScrutinizer
void addForwardScrutinizer(const ForwardScrutinizer *)
Definition: ToyDetectorManager.cxx:63
ToyDetectorManager::m_centralScrutinizer
std::vector< const CentralScrutinizer * > m_centralScrutinizer
Definition: ToyDetectorManager.h:57
lumiFormat.i
int i
Definition: lumiFormat.py:85
CentralScrutinizer.h
ToyDetectorManager::getCentralScrutinizer
const CentralScrutinizer * getCentralScrutinizer(unsigned int i) const
Definition: ToyDetectorManager.cxx:43
xAODType
Definition: ObjectType.h:13
grepfile.ic
int ic
Definition: grepfile.py:33
ToyDetectorManager::CENTRAL
@ CENTRAL
Definition: ToyDetectorManager.h:16
ToyDetectorManager.h
ToyDetectorManager::addCentralScrutinizer
void addCentralScrutinizer(const CentralScrutinizer *)
Definition: ToyDetectorManager.cxx:58
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CentralScrutinizer
Definition: CentralScrutinizer.h:14
ToyDetectorManager::getNumScrutinizers
unsigned int getNumScrutinizers(Type type) const
Definition: ToyDetectorManager.cxx:48
ToyDetectorManager::getForwardScrutinizer
const ForwardScrutinizer * getForwardScrutinizer(unsigned int i) const
Definition: ToyDetectorManager.cxx:38
ToyDetectorManager::addTreeTop
void addTreeTop(PVLink)
Definition: ToyDetectorManager.cxx:53