|
ATLAS Offline Software
|
Go to the documentation of this file.
22 #include "TDirectory.h"
37 return AthService::queryInterface(riid, ppvUnknown);
40 return StatusCode::SUCCESS;
49 SmartIF<StoreGateSvc>
detStore{service(
"DetectorStore")};
60 return StatusCode::SUCCESS;
68 std::list<std::string> dirnames;
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);
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++) {
121 the_ids.push_back(the_id);
125 if (
static_cast<int>(the_ids.size()) == n_mls) {
136 std::vector<int> tower(3);
151 msg(MSG::INFO) <<
"Selected regions: ";
154 msg(MSG::INFO) <<
" " <<
it->regionId();
JetConstituentVector::iterator iterator
StatusCode initialize()
initialize
bool setMdtMultilayer(int num)
Mdt specific: set multilayer to num.
void SetMultilayer(const int &ml)
Gaudi::Property< std::string > m_region_string
region string - job option
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
just some crazy atheta function
ToolHandle< MuonCalib::IIdToFixedIdTool > m_idToFixedIdTool
virtual ~RegionSelectionSvc()
destructor
static const InterfaceID & interfaceID()
#define ATH_MSG_VERBOSE(x)
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