 |
ATLAS Offline Software
|
Go to the documentation of this file.
22 #include "TDirectory.h"
37 SmartIF<StoreGateSvc>
detStore{service(
"DetectorStore")};
48 return StatusCode::SUCCESS;
56 std::list<std::string> dirnames;
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);
97 for (;
it != it_end; ++
it) {
104 std::vector<MuonCalib::NtupleStationId> the_ids;
105 for (
int i = 1;
i <= n_mls;
i++) {
109 the_ids.push_back(the_id);
113 if (
static_cast<int>(the_ids.size()) == n_mls) {
124 std::vector<int> tower(3);
JetConstituentVector::iterator iterator
bool setMdtMultilayer(int num)
Mdt specific: set multilayer to num.
void SetMultilayer(const int &ml)
virtual StatusCode initialize() override
initialize
Gaudi::Property< std::string > m_region_string
region string - job option
ToolHandle< MuonCalib::IIdToFixedIdTool > m_idToFixedIdTool
virtual ~RegionSelectionSvc()
destructor
const MuonGM::MuonDetectorManager * m_detMgr
bool ProcessString(const std::string &input)
process string
std::vector< MuonCalib::NtupleStationId > m_stations_in_region
chambers/mutlilayers in calibraition region
bool isInRegion(const MuonCalib::MuonFixedId &id) const
return true if id is in selected region
RegionSelectionSvc(const std::string &name, ISvcLocator *svc_locator)
contructor
const std::vector< MuonCalib ::NtupleStationId > & GetStationsInRegions() const
get stations/multilayers in region
const MdtReadoutElement * getMdtReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
::StatusCode StatusCode
StatusCode definition for legacy code.
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
void search_chambers_in_region()
void print_list_of_selected_chambers() const
print a list of selected chambers - debug function
Gaudi::Property< bool > m_print_list_of_selected_chambers
print list of selected chambers if set to true - job option
std::set< MuonCalib::NtupleStationId > m_unique_chambers
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
search for chambers and multilayers in selected region towers in selected region
std::vector< Identifier >::const_iterator const_id_iterator
void Print(std::ostream &os) const
debug print
std::unique_ptr< MuonCalib ::RegionSelectorBase > m_master_region
master region
int AddRegionNtuples(const std::string &infile, TChain *chain)
add region ntuples which are relevant for this region to TChain
const std::string & GetRegionSelection() const
get region selection