1 #ifndef CombineTools_Object_h
2 #define CombineTools_Object_h
17 virtual std::string
const&
bin()
const {
return bin_; }
20 virtual std::string
const&
process()
const {
return process_; }
23 bool signal()
const {
return signal_; }
26 virtual std::string
const&
analysis()
const {
return analysis_; }
29 virtual std::string
const&
era()
const {
return era_; }
32 virtual std::string
const&
channel()
const {
return channel_; }
35 virtual int bin_id()
const {
return bin_id_; }
38 virtual std::string
const&
mass()
const {
return mass_; }
40 virtual void set_attribute(std::string
const& attr_label, std::string
const& attr_value);
41 virtual void delete_attribute(std::string
const& attr_label) { attributes_.erase(attr_label); }
42 virtual void set_all_attributes(std::map<std::string,std::string>
const& attrs_) { attributes_ = attrs_;}
43 virtual std::map<std::string,std::string>
const&
all_attributes()
const {
return attributes_;}
44 virtual std::string
const attribute(std::string
const& attr_label)
const {
return attributes_.count(attr_label) >0 ? attributes_.at(attr_label) :
"" ; }
50 std::string analysis_;
55 std::map<std::string,std::string> attributes_;
virtual void set_analysis(std::string const &analysis)
virtual void set_process(std::string const &process)
virtual std::string const attribute(std::string const &attr_label) const
virtual void set_mass(std::string const &mass)
virtual std::string const & process() const
virtual void set_bin(std::string const &bin)
virtual std::string const & bin() const
virtual void set_attribute(std::string const &attr_label, std::string const &attr_value)
Object & operator=(Object other)
virtual void set_all_attributes(std::map< std::string, std::string > const &attrs_)
virtual int bin_id() const
friend void swap(Object &first, Object &second)
virtual std::string const & analysis() const
virtual std::string const & era() const
virtual std::string const & mass() const
virtual void set_era(std::string const &era)
void set_signal(bool const &signal)
virtual std::string const & channel() const
virtual std::map< std::string, std::string > const & all_attributes() const
virtual void set_channel(std::string const &channel)
virtual void set_bin_id(int const &bin_id)
virtual void delete_attribute(std::string const &attr_label)