#include <RegionSelectionSvc.h>
Seolect calibration region
- Author
- rausc.nosp@m.her@.nosp@m.cern..nosp@m.ch
Definition at line 35 of file RegionSelectionSvc.h.
◆ RegionSelectionSvc()
RegionSelectionSvc::RegionSelectionSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svc_locator |
|
) |
| |
◆ ~RegionSelectionSvc()
RegionSelectionSvc::~RegionSelectionSvc |
( |
| ) |
|
|
virtualdefault |
◆ AddRegionNtuples() [1/2]
int RegionSelectionSvc::AddRegionNtuples |
( |
const std::string & |
infile, |
|
|
TChain * |
chain |
|
) |
| |
add region ntuples which are relevant for this region to TChain
Definition at line 67 of file RegionSelectionSvc.cxx.
68 std::list<std::string> dirnames;
◆ AddRegionNtuples() [2/2]
int RegionSelectionSvc::AddRegionNtuples |
( |
const std::string & |
infile, |
|
|
TChain * |
chain, |
|
|
std::list< std::string > & |
dirnames |
|
) |
| |
Definition at line 71 of file RegionSelectionSvc.cxx.
73 if (dirnames.empty()) {
75 std::unique_ptr<TFile>
inf{TFile::Open(
infile.c_str(),
"READ")};
76 TIter nextkey(
inf->GetListOfKeys());
79 while ((
key = (TKey *)nextkey())) { dirnames.push_back(
key->GetName()); }
85 std::string regname(
it->regionId(), 0, nt_it->size());
86 if (regname == (*nt_it)) {
87 chain->AddFile(
infile.c_str(), TChain::kBigNumber, ((*nt_it) +
"/" +
"Segments").c_str());
90 dirnames.erase(nt_it);
◆ convert_to_tower()
void RegionSelectionSvc::convert_to_tower |
( |
int |
station, |
|
|
int |
phi, |
|
|
int |
eta, |
|
|
std::vector< int > & |
tower |
|
) |
| const |
|
private |
convert station, eta, phi in tower vector
◆ GetRegionSelection()
const std::string & RegionSelectionSvc::GetRegionSelection |
( |
| ) |
const |
◆ GetStationsInRegions()
◆ initialize()
StatusCode RegionSelectionSvc::initialize |
( |
| ) |
|
◆ interfaceID()
static const InterfaceID& RegionSelectionSvc::interfaceID |
( |
| ) |
|
|
inlinestatic |
Definition at line 41 of file RegionSelectionSvc.h.
42 static const InterfaceID IID_IRegionSelectionSvc(
"RegionSelectionSvc", 1, 0);
43 return IID_IRegionSelectionSvc;
◆ isInRegion()
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ Print()
void RegionSelectionSvc::Print |
( |
std::ostream & |
os | ) |
const |
◆ print_list_of_selected_chambers()
void RegionSelectionSvc::print_list_of_selected_chambers |
( |
| ) |
const |
|
private |
print a list of selected chambers - debug function
Definition at line 149 of file RegionSelectionSvc.cxx.
151 msg(MSG::INFO) <<
"Selected regions: ";
154 msg(MSG::INFO) <<
" " <<
it->regionId();
◆ ProcessString()
bool RegionSelectionSvc::ProcessString |
( |
const std::string & |
input | ) |
|
|
private |
◆ queryInterface()
StatusCode RegionSelectionSvc::queryInterface |
( |
const InterfaceID & |
riid, |
|
|
void ** |
ppvUnknown |
|
) |
| |
|
virtual |
just some crazy atheta function
Definition at line 31 of file RegionSelectionSvc.cxx.
37 return AthService::queryInterface(riid, ppvUnknown);
40 return StatusCode::SUCCESS;
◆ search_chambers_in_region()
void RegionSelectionSvc::search_chambers_in_region |
( |
| ) |
|
|
private |
Definition at line 106 of file RegionSelectionSvc.cxx.
109 for (;
it != it_end; ++
it) {
111 if (!detEl)
continue;
116 std::vector<MuonCalib::NtupleStationId> the_ids;
117 for (
int i = 1;
i <= n_mls;
i++) {
118 fixed_id.setMdtMultilayer(
i);
121 the_ids.push_back(the_id);
125 if (
static_cast<int>(the_ids.size()) == n_mls) {
127 full_station.SetMultilayer(0);
136 std::vector<int> tower(3);
139 station.SetMultilayer(0);
◆ m_detMgr
◆ m_idHelperSvc
search for chambers and multilayers in selected region towers in selected region
Definition at line 73 of file RegionSelectionSvc.h.
◆ m_idToFixedIdTool
◆ m_master_region
std::unique_ptr<MuonCalib ::RegionSelectorBase> RegionSelectionSvc::m_master_region |
|
private |
◆ m_print_list_of_selected_chambers
Gaudi::Property<bool> RegionSelectionSvc::m_print_list_of_selected_chambers {this, "PrintList", false} |
|
private |
print list of selected chambers if set to true - job option
Definition at line 65 of file RegionSelectionSvc.h.
◆ m_region_string
Gaudi::Property<std::string> RegionSelectionSvc::m_region_string {this, "Region", ""} |
|
private |
◆ m_stations_in_region
◆ m_unique_chambers
The documentation for this class was generated from the following files: