Imperial Analysis
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TriggerPath.hh
Go to the documentation of this file.
1 #ifndef ICHiggsTauTau_TriggerPath_hh
2 #define ICHiggsTauTau_TriggerPath_hh
3 #include <string>
4 #include <vector>
5 #include "Rtypes.h"
6 
7 namespace ic {
8 
13 class TriggerPath {
14  public:
15  TriggerPath();
16  virtual ~TriggerPath();
17  virtual void Print() const;
18 
20 
21  inline std::string const& name() const { return name_; }
23 
25  inline bool accept() const { return accept_; }
26 
28  inline unsigned prescale() const { return prescale_; }
29 
31  inline std::size_t id() const { return id_; }
32 
34  inline unsigned version() const { return version_; }
37 
39  inline void set_name(std::string const& name) { name_ = name; }
41 
43  inline void set_accept(bool const& accept) { accept_ = accept; }
44 
46  inline void set_prescale(unsigned const& prescale) { prescale_ = prescale; }
47 
49  inline void set_id(std::size_t const& id) { id_ = id; }
50 
52  inline void set_version(unsigned const& version) { version_ = version; }
55  private:
56  std::string name_;
57  bool accept_;
58  unsigned prescale_;
59  std::size_t id_;
60  unsigned version_;
61 
62  #ifndef SKIP_CINT_DICT
63  public:
65  #endif
66 };
67 
68 typedef std::vector<ic::TriggerPath> TriggerPathCollection;
69 }
71 #endif
unsigned version() const
The trigger version number.
Definition: TriggerPath.hh:34
void set_name(std::string const &name)
The trigger path name.
Definition: TriggerPath.hh:40
void set_prescale(unsigned const &prescale)
The trigger prescale.
Definition: TriggerPath.hh:46
virtual void Print() const
Definition: TriggerPath.cc:12
Information on a trigger path, including accept, prescale and version information.
Definition: TriggerPath.hh:13
ClassDef(TriggerPath, 2)
std::vector< ic::TriggerPath > TriggerPathCollection
Definition: TriggerPath.hh:68
void set_version(unsigned const &version)
The trigger version number.
Definition: TriggerPath.hh:52
Definition: CaloJet.hh:9
bool accept() const
True if the trigger fired, false otherwise.
Definition: TriggerPath.hh:25
unsigned prescale() const
The trigger prescale.
Definition: TriggerPath.hh:28
void set_id(std::size_t const &id)
Unique identifier, usually a hash of the trigger name.
Definition: TriggerPath.hh:49
virtual ~TriggerPath()
Definition: TriggerPath.cc:10
void set_accept(bool const &accept)
True if the trigger fired, false otherwise.
Definition: TriggerPath.hh:43
std::size_t id() const
Unique identifier, usually a hash of the trigger name.
Definition: TriggerPath.hh:31
std::string const & name() const
The trigger path name.
Definition: TriggerPath.hh:22