ATLAS Offline Software
TrigConfiguration/TrigConfL1Data/TrigConfL1Data/Random.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef TrigConf_Random
8 #define TrigConf_Random
9 
10 #include <iosfwd>
11 #include <string>
12 #include <cstdint>
14 
15 namespace TrigConf {
16  class Random : public L1DataBaseclass {
17  public:
18  Random();
19  virtual ~Random() override = default;
20 
21  // getters
22  uint32_t cuts(unsigned int idx) const { return m_cuts[idx]; }
23  const std::string & rndmName(unsigned int idx) const { return m_names[idx]; }
24  int rate1() const { return m_rate1; }
25  int rate2() const { return m_rate2; }
26  float getRateFromCut(unsigned int idx) const;
27 
28  // setters
29  void setRndmName( uint32_t idx, const std::string& name ) { m_names[idx] = name; }
31  void setRate1( int rate ) { m_rate1 = rate; }
32  void setRate2( int rate ) { m_rate2 = rate; }
33 
34  virtual void print(const std::string& indent="", unsigned int detail=1) const override;
35  virtual void writeXML(std::ostream & xmlfile, int indentLevel=0, int indentWidth=2) const;
36 
37  private:
38  int m_rate1;
39  int m_rate2;
40  std::string m_names[4];
42  };
43 }
44 #endif
TrigConf::Random::setRate2
void setRate2(int rate)
Definition: TrigConfiguration/TrigConfL1Data/TrigConfL1Data/Random.h:32
TrigConf::TrigConfData::name
const std::string & name() const
Definition: TrigConfData.h:22
TrigConf::Random::m_rate2
int m_rate2
Definition: TrigConfiguration/TrigConfL1Data/TrigConfL1Data/Random.h:39
TrigConf::Random::setRndmName
void setRndmName(uint32_t idx, const std::string &name)
Definition: TrigConfiguration/TrigConfL1Data/TrigConfL1Data/Random.h:29
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TrigConf::Random::rndmName
const std::string & rndmName(unsigned int idx) const
Definition: TrigConfiguration/TrigConfL1Data/TrigConfL1Data/Random.h:23
TrigConf::Random::setRate1
void setRate1(int rate)
Definition: TrigConfiguration/TrigConfL1Data/TrigConfL1Data/Random.h:31
TrigConf::Random::rate1
int rate1() const
Definition: TrigConfiguration/TrigConfL1Data/TrigConfL1Data/Random.h:24
TrigConf::Random::getRateFromCut
float getRateFromCut(unsigned int idx) const
Definition: Random.cxx:21
detail
Definition: extract_histogram_tag.cxx:14
TrigConf::Random::cuts
uint32_t cuts(unsigned int idx) const
Definition: TrigConfiguration/TrigConfL1Data/TrigConfL1Data/Random.h:22
TrigConf::Random::m_names
std::string m_names[4]
Definition: TrigConfiguration/TrigConfL1Data/TrigConfL1Data/Random.h:40
TrigConf::Random::~Random
virtual ~Random() override=default
TrigConf::Random::m_cuts
uint32_t m_cuts[4]
Definition: TrigConfiguration/TrigConfL1Data/TrigConfL1Data/Random.h:41
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::Random
Definition: TrigConfiguration/TrigConfL1Data/TrigConfL1Data/Random.h:16
BindingsTest.cut
cut
This script demonstrates how to call a C++ class from Python Also how to use PyROOT is shown.
Definition: BindingsTest.py:13
TrigConf::name
Definition: HLTChainList.h:35
TrigConf::Random::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition: Random.cxx:28
TrigConf::Random::Random
Random()
Definition: Random.cxx:12
TrigConf::Random::m_rate1
int m_rate1
Definition: TrigConfiguration/TrigConfL1Data/TrigConfL1Data/Random.h:38
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
TrigConf::L1DataBaseclass
Definition: L1DataBaseclass.h:22
TrigConf::Random::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition: Random.cxx:49
L1DataBaseclass.h
TrigConf::Random::setCut
void setCut(uint32_t idx, uint32_t cut)
Definition: TrigConfiguration/TrigConfL1Data/TrigConfL1Data/Random.h:30
TrigConf::Random::rate2
int rate2() const
Definition: TrigConfiguration/TrigConfL1Data/TrigConfL1Data/Random.h:25