ATLAS Offline Software
RegSelROB.h
Go to the documentation of this file.
1 // emacs: this is -*- c++ -*-
2 /*
3  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
4 */
5 //
6 // @file RegSelROB.h
7 //
8 //
9 //
10 //
11 // $Id: RegSelROB.h, v0.0 Thu 14 Oct 2010 18:06:34 BST sutt $
12 
13 
14 #ifndef REGSELROB_H
15 #define REGSELROB_H
16 
17 #include <iostream>
18 #include <set>
19 #include <vector>
20 
21 #include "RegSelLUT/ZRObject.h"
22 #include "RegSelLUT/RegSelModule.h"
23 
24 
25 class RegSelROB : public ZRObject {
26 
27 public:
28 
29  RegSelROB(const RegSelModule* m);
30 
31  virtual ~RegSelROB() { }
32 
33  void addModule(const RegSelModule* m);
34 
35  double phiMin() const { return m_phiMin; }
36  double phiMax() const { return m_phiMax; }
37 
38  uint32_t robID() const { return m_robID; }
39 
40  unsigned size() const { return m_modules.size(); }
41 
42  double etaMin() const { return m_etaMin; }
43  double etaMax() const { return m_etaMax; }
44 
45 protected:
46 
47  double caletaMin();
48  double caletaMax();
49 
50 protected:
51 
53 
54  double m_phiMin;
55  double m_phiMax;
56 
57  double m_etaMin;
58  double m_etaMax;
59 
60  std::set<const RegSelModule*> m_modules;
61 
62 };
63 
64 inline std::ostream& operator<<( std::ostream& s, const RegSelROB& r ) {
65  return s << "[ robID 0x" << std::hex << r.robID() << std::dec
66  << "\tr: " << r.rMin() << " " << r.rMax()
67  << "\tz: " << r.zMin() << " " << r.zMax()
68  << "\tphi: " << r.phiMin() << " " << r.phiMax()
69  << "\teta: " << r.etaMin() << " " << r.etaMax()
70  << "\tsize " << r.size() << " ]";
71 
72 }
73 
74 
75 
76 class RegSelROBList {
77 
78 public:
79 
80  RegSelROBList(const std::vector<RegSelModule>& modules);
81 
82  virtual ~RegSelROBList() { }
83 
84 };
85 
86 
87 
88 
89 
90 
91 #endif // __REGSELROB_H
92 
93 
94 
95 
96 
97 
98 
99 
100 
101 
beamspotman.r
def r
Definition: beamspotman.py:676
RegSelModule
Definition: RegSelModule.h:38
operator<<
std::ostream & operator<<(std::ostream &s, const RegSelROB &r)
Definition: RegSelROB.h:64
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
RegSelROBList::RegSelROBList
RegSelROBList(const std::vector< RegSelModule > &modules)
Definition: RegSelROB.cxx:58
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
RegSelROB::caletaMin
double caletaMin()
RegSelROB::robID
uint32_t robID() const
Definition: RegSelROB.h:38
RegSelROB::addModule
void addModule(const RegSelModule *m)
Definition: RegSelROB.cxx:36
RegSelROB::m_etaMax
double m_etaMax
Definition: RegSelROB.h:58
RegSelROB::RegSelROB
RegSelROB(const RegSelModule *m)
Definition: RegSelROB.cxx:18
RegSelModule.h
RegSelROB::phiMax
double phiMax() const
Definition: RegSelROB.h:36
RegSelROB::m_modules
std::set< const RegSelModule * > m_modules
Definition: RegSelROB.h:60
RegSelROBList::~RegSelROBList
virtual ~RegSelROBList()
Definition: RegSelROB.h:82
RegSelROB::m_etaMin
double m_etaMin
Definition: RegSelROB.h:57
RegSelROB::etaMin
double etaMin() const
Definition: RegSelROB.h:42
RegSelROBList
Definition: RegSelROB.h:76
RegSelROB::m_robID
uint32_t m_robID
Definition: RegSelROB.h:52
RegSelROB
Definition: RegSelROB.h:25
RegSelROB::m_phiMin
double m_phiMin
Definition: RegSelROB.h:54
RegSelROB::m_phiMax
double m_phiMax
Definition: RegSelROB.h:55
RegSelROB::size
unsigned size() const
Definition: RegSelROB.h:40
RegSelROB::~RegSelROB
virtual ~RegSelROB()
Definition: RegSelROB.h:31
ZRObject
Definition: ZRObject.h:41
ZRObject.h
RegSelROB::caletaMax
double caletaMax()
RegSelROB::etaMax
double etaMax() const
Definition: RegSelROB.h:43
RegSelROB::phiMin
double phiMin() const
Definition: RegSelROB.h:35