ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCalib
MuonCalibStandAlone
MuonCalibStandAloneBase
MuonCalibStandAloneBase
RegionSelectionSvc.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 RegionSelectionSvc_H
6
#define RegionSelectionSvc_H
7
8
#include <TChain.h>
9
10
#include <list>
11
#include <set>
12
#include <string>
13
#include <vector>
14
15
#include "
AthenaBaseComps/AthService.h
"
16
#include "GaudiKernel/ServiceHandle.h"
17
#include "GaudiKernel/ToolHandle.h"
18
#include "
MuonCalibITools/IIdToFixedIdTool.h
"
19
#include "
MuonCalibStandAloneBase/NtupleStationId.h
"
20
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
21
22
namespace
MuonCalib
{
23
class
RegionSelectorBase
;
24
class
MuonFixedId
;
25
}
// namespace MuonCalib
26
27
// interface to enable retrieving of a pointer to the singleton //
28
34
35
class
RegionSelectionSvc
:
public
AthService
{
36
public
:
38
RegionSelectionSvc
(
const
std::string &name, ISvcLocator *svc_locator);
40
virtual
~RegionSelectionSvc
();
42
virtual
StatusCode
initialize
()
override
;
44
void
Print
(std::ostream &os)
const
;
46
bool
isInRegion
(
const
MuonCalib::MuonFixedId
&
id
)
const
;
48
const
std::string&
GetRegionSelection
()
const
;
50
const
std::vector<MuonCalib ::NtupleStationId> &
GetStationsInRegions
()
const
;
52
int
AddRegionNtuples
(
const
std::string &infile, TChain *chain);
53
int
AddRegionNtuples
(
const
std::string &infile, TChain *chain, std::list<std::string> &dirnames);
54
55
private
:
57
Gaudi::Property<std::string>
m_region_string
{
this
,
"Region"
,
""
};
59
Gaudi::Property<bool>
m_print_list_of_selected_chambers
{
this
,
"PrintList"
,
false
};
61
std::unique_ptr<MuonCalib ::RegionSelectorBase>
m_master_region
;
63
std::vector<MuonCalib::NtupleStationId>
m_stations_in_region
;
64
std::set<MuonCalib::NtupleStationId>
m_unique_chambers
;
65
const
MuonGM::MuonDetectorManager
*
m_detMgr
{
nullptr
};
67
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
68
ToolHandle<MuonCalib::IIdToFixedIdTool>
m_idToFixedIdTool
{
this
,
"IdToFixedIdTool"
,
"MuonCalib::IdToFixedIdTool"
};
69
70
void
search_chambers_in_region
();
72
bool
ProcessString
(
const
std::string &input);
74
void
print_list_of_selected_chambers
()
const
;
76
void
convert_to_tower
(
int
station,
int
phi
,
int
eta
, std::vector<int> &tower)
const
;
77
};
78
79
#endif
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
AthService.h
IIdToFixedIdTool.h
IMuonIdHelperSvc.h
NtupleStationId.h
AthService::AthService
AthService()
MuonCalib::MuonFixedId
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition
MuonFixedId.h:50
MuonCalib::RegionSelectorBase
Definition
RegionSelectorBase.h:18
MuonGM::MuonDetectorManager
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Definition
MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonDetectorManager.h:51
RegionSelectionSvc::m_region_string
Gaudi::Property< std::string > m_region_string
region string - job option
Definition
RegionSelectionSvc.h:57
RegionSelectionSvc::print_list_of_selected_chambers
void print_list_of_selected_chambers() const
print a list of selected chambers - debug function
Definition
RegionSelectionSvc.cxx:137
RegionSelectionSvc::isInRegion
bool isInRegion(const MuonCalib::MuonFixedId &id) const
return true if id is in selected region
Definition
RegionSelectionSvc.cxx:51
RegionSelectionSvc::m_idToFixedIdTool
ToolHandle< MuonCalib::IIdToFixedIdTool > m_idToFixedIdTool
Definition
RegionSelectionSvc.h:68
RegionSelectionSvc::convert_to_tower
void convert_to_tower(int station, int phi, int eta, std::vector< int > &tower) const
convert station, eta, phi in tower vector
RegionSelectionSvc::GetStationsInRegions
const std::vector< MuonCalib ::NtupleStationId > & GetStationsInRegions() const
get stations/multilayers in region
Definition
RegionSelectionSvc.cxx:54
RegionSelectionSvc::m_print_list_of_selected_chambers
Gaudi::Property< bool > m_print_list_of_selected_chambers
print list of selected chambers if set to true - job option
Definition
RegionSelectionSvc.h:59
RegionSelectionSvc::search_chambers_in_region
void search_chambers_in_region()
Definition
RegionSelectionSvc.cxx:94
RegionSelectionSvc::AddRegionNtuples
int AddRegionNtuples(const std::string &infile, TChain *chain)
add region ntuples which are relevant for this region to TChain
Definition
RegionSelectionSvc.cxx:55
RegionSelectionSvc::GetRegionSelection
const std::string & GetRegionSelection() const
get region selection
Definition
RegionSelectionSvc.cxx:53
RegionSelectionSvc::RegionSelectionSvc
RegionSelectionSvc(const std::string &name, ISvcLocator *svc_locator)
contructor
Definition
RegionSelectionSvc.cxx:29
RegionSelectionSvc::m_detMgr
const MuonGM::MuonDetectorManager * m_detMgr
Definition
RegionSelectionSvc.h:65
RegionSelectionSvc::m_unique_chambers
std::set< MuonCalib::NtupleStationId > m_unique_chambers
Definition
RegionSelectionSvc.h:64
RegionSelectionSvc::ProcessString
bool ProcessString(const std::string &input)
process string
Definition
RegionSelectionSvc.cxx:132
RegionSelectionSvc::Print
void Print(std::ostream &os) const
debug print
Definition
RegionSelectionSvc.cxx:86
RegionSelectionSvc::initialize
virtual StatusCode initialize() override
initialize
Definition
RegionSelectionSvc.cxx:31
RegionSelectionSvc::m_stations_in_region
std::vector< MuonCalib::NtupleStationId > m_stations_in_region
chambers/mutlilayers in calibraition region
Definition
RegionSelectionSvc.h:63
RegionSelectionSvc::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
search for chambers and multilayers in selected region towers in selected region
Definition
RegionSelectionSvc.h:67
RegionSelectionSvc::~RegionSelectionSvc
virtual ~RegionSelectionSvc()
destructor
RegionSelectionSvc::m_master_region
std::unique_ptr< MuonCalib ::RegionSelectorBase > m_master_region
master region
Definition
RegionSelectionSvc.h:61
ServiceHandle
Definition
ClusterMakerTool.h:36
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition
CscCalcPed.cxx:21
Generated on
for ATLAS Offline Software by
1.17.0