#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 55 of file RegionSelectionSvc.cxx.
56 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 59 of file RegionSelectionSvc.cxx.
61 if (dirnames.empty()) {
63 std::unique_ptr<TFile>
inf{TFile::Open(
infile.c_str(),
"READ")};
64 TIter nextkey(
inf->GetListOfKeys());
67 while ((
key = (TKey *)nextkey())) { dirnames.push_back(
key->GetName()); }
73 std::string regname(
it->regionId(), 0, nt_it->size());
74 if (regname == (*nt_it)) {
75 chain->AddFile(
infile.c_str(), TChain::kBigNumber, ((*nt_it) +
"/" +
"Segments").c_str());
78 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 |
( |
| ) |
|
|
overridevirtual |
◆ 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 137 of file RegionSelectionSvc.cxx.
139 msg(MSG::INFO) <<
"Selected regions: ";
142 msg(MSG::INFO) <<
" " <<
it->regionId();
◆ ProcessString()
bool RegionSelectionSvc::ProcessString |
( |
const std::string & |
input | ) |
|
|
private |
◆ search_chambers_in_region()
void RegionSelectionSvc::search_chambers_in_region |
( |
| ) |
|
|
private |
Definition at line 94 of file RegionSelectionSvc.cxx.
97 for (;
it != it_end; ++
it) {
104 std::vector<MuonCalib::NtupleStationId> the_ids;
105 for (
int i = 1;
i <= n_mls;
i++) {
106 fixed_id.setMdtMultilayer(
i);
109 the_ids.push_back(the_id);
113 if (
static_cast<int>(the_ids.size()) == n_mls) {
115 full_station.SetMultilayer(0);
124 std::vector<int> tower(3);
127 station.SetMultilayer(0);
◆ m_detMgr
◆ m_idHelperSvc
search for chambers and multilayers in selected region towers in selected region
Definition at line 67 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 59 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: