ATLAS Offline Software
Loading...
Searching...
No Matches
TileRawRoISelector.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TILERAWUTILS_TILERAWROISELECTOR_H
6#define TILERAWUTILS_TILERAWROISELECTOR_H
7
8
12#include "Identifier/Identifier.h"
13#include <vector>
14#include <map>
15
16class TileRoI_Map;
17
19{
20
21 public:
26
27
30
36
38
39 // a vector of ROI_ID
40 // typedef TileRoI_ID ROI_ID;
41 typedef Identifier TT_ID;
42 typedef std::vector<TT_ID> VEC_TT_ID;
43 typedef VEC_TT_ID::const_iterator TT_ID_IT;
44
45 typedef std::pair<OBJ_IT,OBJ_IT> ITPAIR;
46 typedef std::vector<ITPAIR> VEC_ITPAIR;
47 typedef VEC_ITPAIR::const_iterator ITPAIR_IT;
48
49 // a map of Collection ID and vector
50 // a Collection is associated with a list of TT_ID
51 typedef std::map<const COLLECTION*, VEC_TT_ID> MAP_COLL_ROI ;
52 typedef MAP_COLL_ROI::const_iterator MAP_IT ;
53
55 {
56 friend class TileRawRoISelector ;
57 public:
59
61
63
64 const OBJECT* operator * () ;
65
66 bool operator != ( const const_iterator& it ) const ;
67
68 bool operator == ( const const_iterator& it ) const ;
69
70
71 private:
72 const_iterator( const VEC_ITPAIR* v ) ;
73 const_iterator( const VEC_ITPAIR* v, const ITPAIR_IT& it ) ;
74
79
80 };
81
82 friend class const_iterator;
83
86
87 virtual ~TileRawRoISelector () = default;
88
89 void setMap(TileRoI_Map* map) ;
91 void setRoIs( const VEC_TT_ID& ids) ;
92
93 const_iterator begin() const ;
94 const_iterator end() const ;
95
96 private:
97 void initialize();
98
101
103
104};
105
106
107#endif
DataModel_detail::const_iterator< DataVector > const_iterator
Standard const_iterator.
Definition DataVector.h:838
bool operator!=(const const_iterator &it) const
bool operator==(const const_iterator &it) const
void setRoIs(const VEC_TT_ID &ids)
const_iterator end() const
std::vector< TT_ID > VEC_TT_ID
virtual ~TileRawRoISelector()=default
std::map< const COLLECTION *, VEC_TT_ID > MAP_COLL_ROI
CONTAINER::const_iterator COLL_IT
VEC_TT_ID::const_iterator TT_ID_IT
std::vector< ITPAIR > VEC_ITPAIR
TileRawChannelContainer CONTAINER
Constructors.
void setContainer(TileRawChannelContainer *c)
std::pair< OBJ_IT, OBJ_IT > ITPAIR
TileRawChannelContainer * m_container
const_iterator begin() const
COLLECTION::const_iterator OBJ_IT
TileRawChannelCollection COLLECTION
VEC_ITPAIR::const_iterator ITPAIR_IT
void setMap(TileRoI_Map *map)
TileRawRoISelector(TileRoI_Map *map=NULL, TileRawChannelContainer *c=NULL)
MAP_COLL_ROI::const_iterator MAP_IT
TileCal RoI map to offline Identifier.
Definition TileRoI_Map.h:32
STL class.