ATLAS Offline Software
Loading...
Searching...
No Matches
RegionSelectorBase.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 RegionSelectorBase_H
6#define RegionSelectorBase_H
7
8#include "GaudiKernel/MsgStream.h"
9
10#include <iostream>
11#include <memory>
12#include <string>
13
14namespace MuonCalib {
15
16 class MuonFixedId;
17
19 public:
21 RegionSelectorBase() = default;
23 virtual ~RegionSelectorBase() = default;
25 virtual bool Result(const MuonFixedId& region) const = 0;
27 virtual void Print(std::ostream& os) const = 0;
29 static std::unique_ptr<RegionSelectorBase> GetRegion(const std::string& input);
30
31 private:
32 static std::unique_ptr<RegionSelectorBase> process_region(const std::string& input, unsigned int& i, bool is_in_braces);
33 static void print_position(const std::string& input, const unsigned int& position, MsgStream* msgStr);
34 };
35
36} // namespace MuonCalib
37
38#endif
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition MuonFixedId.h:50
static void print_position(const std::string &input, const unsigned int &position, MsgStream *msgStr)
static std::unique_ptr< RegionSelectorBase > GetRegion(const std::string &input)
create a region from a string
virtual bool Result(const MuonFixedId &region) const =0
return the result of the logical operation
static std::unique_ptr< RegionSelectorBase > process_region(const std::string &input, unsigned int &i, bool is_in_braces)
virtual ~RegionSelectorBase()=default
Destructor.
virtual void Print(std::ostream &os) const =0
character output of region
RegionSelectorBase()=default
Constructor.
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.