ATLAS Offline Software
RegionElement.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef RegionElement_H
6 #define RegionElement_H
7 
9 
10 // c - c++
11 #include "set"
12 #include "string"
13 #include "vector"
14 
15 namespace MuonCalib {
16 
17  class MuonFixedId;
18 
20  public:
22  RegionElement() = default;
23  RegionElement(const std::string &region) : RegionSelectorBase(), m_region(region) {}
24  ~RegionElement() = default;
26  bool Initialize(const std::string &region);
28  bool Result(const MuonFixedId &region) const;
30  void Print(std::ostream &os) const;
31 
32  private:
33  std::string m_region;
35  std::set<int> m_stations;
36  std::vector<int> m_eta_start;
37  std::vector<int> m_eta_end;
38  std::vector<int> m_phi_start;
39  std::vector<int> m_phi_end;
40  int m_ml{-1};
42  bool process_station_name(std::string &name);
44  bool process_int_range(std::string &range, std::vector<int> &target_start, std::vector<int> &target_end);
45  };
46 
47 } // namespace MuonCalib
48 #endif
MuonCalib::RegionElement::Result
bool Result(const MuonFixedId &region) const
return true if in region
Definition: RegionElement.cxx:61
MuonCalib::RegionElement::Print
void Print(std::ostream &os) const
print region
Definition: RegionElement.cxx:59
MuonCalib::RegionElement::m_phi_start
std::vector< int > m_phi_start
Definition: RegionElement.h:38
MuonCalib::RegionElement::RegionElement
RegionElement()=default
constructor
MuonCalib::RegionElement::Initialize
bool Initialize(const std::string &region)
Initialize functions.
Definition: RegionElement.cxx:16
MuonCalib::RegionElement::~RegionElement
~RegionElement()=default
MuonCalib::RegionSelectorBase
Definition: RegionSelectorBase.h:16
MuonCalib::RegionElement::m_region
std::string m_region
Definition: RegionElement.h:33
MuonCalib::RegionElement::m_ml
int m_ml
Definition: RegionElement.h:40
MuonCalib::RegionElement::m_eta_start
std::vector< int > m_eta_start
Definition: RegionElement.h:36
MuonCalib::RegionElement::m_eta_end
std::vector< int > m_eta_end
Definition: RegionElement.h:37
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::RegionElement::process_int_range
bool process_int_range(std::string &range, std::vector< int > &target_start, std::vector< int > &target_end)
process a numerical id
Definition: RegionElement.cxx:118
MuonCalib::RegionElement::RegionElement
RegionElement(const std::string &region)
Definition: RegionElement.h:23
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
MuonCalib::RegionElement::process_station_name
bool process_station_name(std::string &name)
process a astation name string
Definition: RegionElement.cxx:93
MuonCalib::RegionElement::m_phi_end
std::vector< int > m_phi_end
Definition: RegionElement.h:39
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
MuonCalib::RegionElement::m_stations
std::set< int > m_stations
regions
Definition: RegionElement.h:35
RegionSelectorBase.h
MuonCalib::RegionElement
Definition: RegionElement.h:19