ATLAS Offline Software
Loading...
Searching...
No Matches
CaloTTDescrManager.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5/***************************************************************************
6 Calorimeter LVL1 TT description package
7 -----------------------------------------
8 ***************************************************************************/
9
10//<doc><file> $Id: CaloTTDescrManager.h,v 1.9 2007-06-19 12:58:56 fledroit Exp $
11//<version> $Name: not supported by cvs2svn $
12
13#ifndef CALODETDESCR_CALOTTDESCRMANAGER_H
14#define CALODETDESCR_CALOTTDESCRMANAGER_H
15
16#include "Identifier/Identifier.h"
18#include <vector>
19#include <map>
20
21// Forward declarations
24class CaloLVL1_ID;
25
68
70{
71 public:
72
73 typedef std::vector <CaloTTDescrRegion*> calo_region_vec;
74 typedef calo_region_vec::size_type calo_region_vec_size;
75 typedef calo_region_vec::const_iterator calo_region_const_iterator;
76
77 typedef std::vector <CaloTTDescriptor*> calo_descr_vec;
78 typedef calo_descr_vec::size_type calo_descr_size;
79 typedef calo_descr_vec::const_iterator calo_descr_const_iterator;
80
82
84
85
87 CaloTTDescrRegion* find_calo_region (const Identifier& tower_id) const;
94
101
103 const CaloLVL1_ID* get_lvl1_id (void) const;
104
105 void print (void) const;
106
108 void initialize (void);
109 bool is_initialized (void) const;
110
112 void add (CaloTTDescrRegion* region);
114 void add (CaloTTDescriptor* descriptor);
115
117 void set_helper (const CaloLVL1_ID* id_helper);
118
119
120 private:
121
122
126
128 void clear(void);
129
130 typedef std::map <Identifier, CaloTTDescrRegion* > calo_region_map;
131
140
141};
142
143//using the macros below we can assign an identifier (and a version)
144//This is required and checked at compile time when you try to record/retrieve
145CLASS_DEF( CaloTTDescrManager , 117659265 , 1 )
146
147#endif // CALODETDESCR_CALOTTDESCRMANAGER_H
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Helper class for offline TT identifiers.
Definition CaloLVL1_ID.h:66
This class is used to build the CaloTTDescriptors and CaloTTDetDescrRegions carrying the geometry inf...
const CaloLVL1_ID * m_calo_lvl1_id
Helper used to decode the TT offline identifiers.
std::map< Identifier, CaloTTDescrRegion * > calo_region_map
void add(CaloTTDescrRegion *region)
Insertion in the vector of Det Descr regions (== Trigger Towers)
calo_descr_vec m_calo_descr_vec
vector of descriptors
calo_descr_vec::size_type calo_descr_size
calo_region_vec m_calo_region_vec
vector of Det Descr regions (== Trigger Towers)
calo_descr_size calo_descriptors_size(void) const
Total number of descriptors.
void clear(void)
Delete towers and descriptors.
calo_descr_vec::const_iterator calo_descr_const_iterator
void set_helper(const CaloLVL1_ID *id_helper)
set the helper used to decode the TT offline identifiers
std::vector< CaloTTDescrRegion * > calo_region_vec
calo_region_vec_size calo_region_size(void) const
Total number of Det Descr regions (i.e.
calo_region_vec::const_iterator calo_region_const_iterator
const CaloLVL1_ID * get_lvl1_id(void) const
access to the offline identifier helper
calo_descr_const_iterator calo_descriptors_begin(void) const
Begin iterator on descriptors.
CaloTTDescrRegion * find_calo_region(const Identifier &tower_id) const
Access to the Det Descr region (==Trigger Tower) corresponding to a TT identifier.
calo_region_vec::size_type calo_region_vec_size
std::vector< CaloTTDescriptor * > calo_descr_vec
CaloTTDescrManager(const CaloTTDescrManager &)
undefined semantics
calo_region_map m_calo_region_map
calo_region_const_iterator calo_region_end(void) const
End iterator on Det Descr regions (== Trigger Towers)
void initialize(void)
dummy.
calo_region_const_iterator calo_region_begin(void) const
Begin iterator on Det Descr regions (== Trigger Towers)
bool is_initialized(void) const
CaloTTDescrManager & operator=(const CaloTTDescrManager &)
calo_descr_const_iterator calo_descriptors_end(void) const
End iterator on descriptors.
This class provides an interface to the geometrical description of the Calorimeter Trigger Towers.
This class holds the Calorimeter TriggerTower geometrical description.