ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
TrigConf::TriggerThresholdValue Class Referenceabstract

#include <TriggerThresholdValue.h>

Inheritance diagram for TrigConf::TriggerThresholdValue:
Collaboration diagram for TrigConf::TriggerThresholdValue:

Public Member Functions

 TriggerThresholdValue ()
 
virtual ~TriggerThresholdValue () override=default
 
virtual TriggerThresholdValuecreateCopy () const =0
 
const std::string & type () const
 
float ptcut () const
 
float priority () const
 
int ptCutCount () const
 
virtual int thresholdValueCount () const
 
unsigned int window () const
 
virtual JetWindowSize::Size windowSize () const
 
int phimin () const
 
int phimax () const
 
int etamin () const
 
int etamax () const
 
void setType (const std::string &type)
 
void setPtcut (float pt)
 
void setPriority (float prio)
 
void setWindow (int value)
 
void setPhiMin (int value)
 
void setPhiMax (int value)
 
void setEtaMin (int value)
 
void setEtaMax (int value)
 
bool contains (float eta, float phi) const
 
const CaloInfocaloInfo () const
 
virtual void print (const std::string &indent="", unsigned int detail=1) const override=0
 
virtual void writeXML (std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
 
unsigned int lvl1MasterTableId () const
 
void setLvl1MasterTableId (unsigned int id)
 
int superMasterTableId () const
 
unsigned int smk () const
 
unsigned int id () const
 
const std::string & name () const
 
const std::string & comment () const
 
unsigned int version () const
 
void setSuperMasterTableId (int id)
 
void setSMK (int id)
 
void setId (unsigned int id)
 
void setName (const std::string &name)
 
void setVersion (unsigned int version)
 
void setComment (const std::string &c)
 
void printNameIdV (const std::string &indent="") const
 
virtual std::string __str__ () const
 

Static Public Member Functions

static void setCaloInfo (const CaloInfo &ci)
 
static float caloGlobalScale ()
 
static float caloGlobalScaleGeVToCount ()
 
static float caloGlobalScaleCountToGeV ()
 

Static Public Attributes

static const int fgCaloClusterOff = 0xff
 
static const int fgCaloJetOff = 0x3ff
 
static const int fgCaloEtSumOff = 0x7fff
 
static const int fgCaloEtMissOff = 0x7fff
 
static const int fgCaloJetEtOff = 0x33e6
 
static const int fgCaloIsolationOff = 0x3f
 

Protected Member Functions

std::ostream & indent (std::ostream &o, int lvl, int size) const
 

Protected Attributes

std::string m_Type
 
float m_Ptcut
 
unsigned int m_Priority
 
unsigned int m_Window
 
JetWindowSize::Size m_WindowSize
 
int m_PhiMin
 
int m_PhiMax
 
int m_EtaMin
 
int m_EtaMax
 

Private Attributes

unsigned int m_Lvl1MasterId
 
unsigned int m_smk
 
unsigned int m_id
 
std::string m_name
 
unsigned int m_version
 
std::string m_comment
 

Detailed Description

Definition at line 22 of file TriggerThresholdValue.h.

Constructor & Destructor Documentation

◆ TriggerThresholdValue()

TrigConf::TriggerThresholdValue::TriggerThresholdValue ( )

Definition at line 62 of file TriggerThresholdValue.cxx.

63  : L1DataBaseclass()
64  , m_Type("")
65  , m_Ptcut(0.0)
66  , m_Priority(0.0)
67  , m_Window(0)
69  , m_PhiMin(0)
70  , m_PhiMax(64)
71  , m_EtaMin(-49)
72  , m_EtaMax(49)
73 {}

◆ ~TriggerThresholdValue()

virtual TrigConf::TriggerThresholdValue::~TriggerThresholdValue ( )
overridevirtualdefault

Member Function Documentation

◆ __str__()

string TrigConfData::__str__ ( ) const
virtualinherited

Reimplemented in TrigConf::HLTChain, TrigConf::HLTPrescaleSet, TrigConf::TriggerItem, and TrigConf::HLTSequence.

Definition at line 50 of file TrigConfData.cxx.

50  {
51  stringstream s;
52  s << *this;
53  return s.str();
54 }

◆ caloGlobalScale()

float TrigConf::TriggerThresholdValue::caloGlobalScale ( )
static

Definition at line 41 of file TriggerThresholdValue.cxx.

41  {
42  if (fgCaloInfoPointer)
43  return fgCaloInfoPointer->globalScale();
44  return 1.0;
45 }

◆ caloGlobalScaleCountToGeV()

float TrigConf::TriggerThresholdValue::caloGlobalScaleCountToGeV ( )
static

Definition at line 57 of file TriggerThresholdValue.cxx.

57  {
58  return caloGlobalScale();
59 }

◆ caloGlobalScaleGeVToCount()

float TrigConf::TriggerThresholdValue::caloGlobalScaleGeVToCount ( )
static

Definition at line 48 of file TriggerThresholdValue.cxx.

48  {
49  float x = caloGlobalScaleCountToGeV();
50  if (x == 0)
51  return 1.0;
52  else
53  return 1.0/x;
54 }

◆ caloInfo()

const CaloInfo & TriggerThresholdValue::caloInfo ( ) const

Definition at line 35 of file TriggerThresholdValue.cxx.

35  {
36  return fgCaloInfo;
37 }

◆ comment()

const std::string& TrigConf::TrigConfData::comment ( ) const
inlineinherited

Definition at line 23 of file TrigConfData.h.

23 {return m_comment;}

◆ contains()

bool TrigConf::TriggerThresholdValue::contains ( float  eta,
float  phi 
) const

Definition at line 81 of file TriggerThresholdValue.cxx.

81  {
82  return ( eta >= etamin() && eta <= etamax() &&
83  phi >= phimin() && phi <= phimax());
84 }

◆ createCopy()

virtual TriggerThresholdValue* TrigConf::TriggerThresholdValue::createCopy ( ) const
pure virtual

◆ etamax()

int TrigConf::TriggerThresholdValue::etamax ( ) const
inline

Definition at line 54 of file TriggerThresholdValue.h.

54 { return m_EtaMax; }

◆ etamin()

int TrigConf::TriggerThresholdValue::etamin ( ) const
inline

Definition at line 53 of file TriggerThresholdValue.h.

53 { return m_EtaMin; }

◆ id()

unsigned int TrigConf::TrigConfData::id ( ) const
inlineinherited

Definition at line 21 of file TrigConfData.h.

21 {return m_id;}

◆ indent()

std::ostream & TrigConfData::indent ( std::ostream &  o,
int  lvl,
int  size 
) const
protectedinherited

Definition at line 23 of file TrigConfData.cxx.

23  {
24  int width = lvl*size;
25  if(width==0) return o;
26  o << setw(lvl*size) << " ";
27  return o;
28 }

◆ lvl1MasterTableId()

unsigned int TrigConf::L1DataBaseclass::lvl1MasterTableId ( ) const
inlineinherited

Definition at line 30 of file L1DataBaseclass.h.

30 { return m_Lvl1MasterId; }

◆ name()

const std::string& TrigConf::TrigConfData::name ( ) const
inlineinherited

Definition at line 22 of file TrigConfData.h.

22 {return m_name;}

◆ phimax()

int TrigConf::TriggerThresholdValue::phimax ( ) const
inline

Definition at line 52 of file TriggerThresholdValue.h.

52 { return m_PhiMax; }

◆ phimin()

int TrigConf::TriggerThresholdValue::phimin ( ) const
inline

Definition at line 51 of file TriggerThresholdValue.h.

51 { return m_PhiMin; }

◆ print()

void TrigConf::TriggerThresholdValue::print ( const std::string &  indent = "",
unsigned int  detail = 1 
) const
overridepure virtual

Implements TrigConf::TrigConfData.

Implemented in TrigConf::ClusterThresholdValue, TrigConf::JetThresholdValue, TrigConf::EtThresholdValue, TrigConf::MuonThresholdValue, TrigConf::NimThresholdValue, and TrigConf::XsThresholdValue.

Definition at line 87 of file TriggerThresholdValue.cxx.

87  {
88  cout << indent << "-----------------------" << endl;
89  cout << indent << "TriggerThresholdValue: " << endl;
90  cout << indent << "\t id: " << id() << endl;
91  cout << indent << "\t Name: " << name() << endl;
92  cout << indent << "\t Version: " << version() << endl;
93  cout << indent << "\t Priority: " << m_Priority << endl;
94  cout << indent << "\t Type: " << m_Type << endl;
95  cout << indent << "\t ptcut: " << m_Ptcut << endl;
96 }

◆ printNameIdV()

void TrigConfData::printNameIdV ( const std::string &  indent = "") const
inherited

Definition at line 31 of file TrigConfData.cxx.

31  {
32  cout << indent << name();
33  if(id()>0 || version()>0)
34  cout << " (id=" << id() << "/v=" << version() << ")";
35  cout << endl;
36  if(comment()!="")
37  cout << indent << "Comment: " << comment() << endl;
38 }

◆ priority()

float TrigConf::TriggerThresholdValue::priority ( ) const
inline

Definition at line 46 of file TriggerThresholdValue.h.

46 { return m_Priority; }

◆ ptcut()

float TrigConf::TriggerThresholdValue::ptcut ( ) const
inline

Definition at line 45 of file TriggerThresholdValue.h.

45 { return m_Ptcut; }

◆ ptCutCount()

int TrigConf::TriggerThresholdValue::ptCutCount ( ) const
inline

Definition at line 47 of file TriggerThresholdValue.h.

47 { return thresholdValueCount(); }

◆ setCaloInfo()

void TriggerThresholdValue::setCaloInfo ( const CaloInfo ci)
static

Definition at line 29 of file TriggerThresholdValue.cxx.

29  {
30  fgCaloInfo = ci;
31  fgCaloInfoPointer = &fgCaloInfo;
32 }

◆ setComment()

void TrigConf::TrigConfData::setComment ( const std::string &  c)
inlineinherited

Definition at line 32 of file TrigConfData.h.

32 { m_comment = c;}

◆ setEtaMax()

void TrigConf::TriggerThresholdValue::setEtaMax ( int  value)
inline

Definition at line 64 of file TriggerThresholdValue.h.

64 { m_EtaMax = value; }

◆ setEtaMin()

void TrigConf::TriggerThresholdValue::setEtaMin ( int  value)
inline

Definition at line 63 of file TriggerThresholdValue.h.

63 { m_EtaMin = value; }

◆ setId()

void TrigConf::TrigConfData::setId ( unsigned int  id)
inlineinherited

Definition at line 29 of file TrigConfData.h.

29 { m_id=id; }

◆ setLvl1MasterTableId()

void TrigConf::L1DataBaseclass::setLvl1MasterTableId ( unsigned int  id)
inlineinherited

Definition at line 31 of file L1DataBaseclass.h.

31 { m_Lvl1MasterId = id; }

◆ setName()

void TrigConf::TrigConfData::setName ( const std::string &  name)
inlineinherited

Definition at line 30 of file TrigConfData.h.

30 { m_name = name;}

◆ setPhiMax()

void TrigConf::TriggerThresholdValue::setPhiMax ( int  value)
inline

Definition at line 62 of file TriggerThresholdValue.h.

62 { m_PhiMax = value; }

◆ setPhiMin()

void TrigConf::TriggerThresholdValue::setPhiMin ( int  value)
inline

Definition at line 61 of file TriggerThresholdValue.h.

61 { m_PhiMin = value; }

◆ setPriority()

void TrigConf::TriggerThresholdValue::setPriority ( float  prio)
inline

Definition at line 59 of file TriggerThresholdValue.h.

59 { m_Priority = prio; }

◆ setPtcut()

void TrigConf::TriggerThresholdValue::setPtcut ( float  pt)
inline

Definition at line 58 of file TriggerThresholdValue.h.

58 { m_Ptcut = pt; }

◆ setSMK()

void TrigConf::TrigConfData::setSMK ( int  id)
inlineinherited

Definition at line 28 of file TrigConfData.h.

28 {m_smk=id;}

◆ setSuperMasterTableId()

void TrigConf::TrigConfData::setSuperMasterTableId ( int  id)
inlineinherited

Definition at line 27 of file TrigConfData.h.

27 {m_smk=id;}

◆ setType()

void TrigConf::TriggerThresholdValue::setType ( const std::string &  type)
inline

Definition at line 57 of file TriggerThresholdValue.h.

57 { m_Type = type; }

◆ setVersion()

void TrigConf::TrigConfData::setVersion ( unsigned int  version)
inlineinherited

Definition at line 31 of file TrigConfData.h.

31 { m_version = version;}

◆ setWindow()

void TrigConf::TriggerThresholdValue::setWindow ( int  value)
inline

Definition at line 60 of file TriggerThresholdValue.h.

60 { m_Window = value; }

◆ smk()

unsigned int TrigConf::TrigConfData::smk ( ) const
inlineinherited

Definition at line 20 of file TrigConfData.h.

20 {return m_smk;}

◆ superMasterTableId()

int TrigConf::TrigConfData::superMasterTableId ( ) const
inlineinherited

Definition at line 19 of file TrigConfData.h.

19 {return (int)m_smk;}

◆ thresholdValueCount()

int TrigConf::TriggerThresholdValue::thresholdValueCount ( ) const
virtual

Reimplemented in TrigConf::ClusterThresholdValue, TrigConf::JetThresholdValue, and TrigConf::EtThresholdValue.

Definition at line 76 of file TriggerThresholdValue.cxx.

76  {
77  return (int) ptcut(); // overriden in Cluster/JetThresholdValue
78 }

◆ type()

const std::string& TrigConf::TriggerThresholdValue::type ( ) const
inline

Definition at line 44 of file TriggerThresholdValue.h.

44 { return m_Type; }

◆ version()

unsigned int TrigConf::TrigConfData::version ( ) const
inlineinherited

Definition at line 24 of file TrigConfData.h.

24 {return m_version;}

◆ window()

unsigned int TrigConf::TriggerThresholdValue::window ( ) const
inline

Definition at line 49 of file TriggerThresholdValue.h.

49 { return m_Window; }

◆ windowSize()

virtual JetWindowSize::Size TrigConf::TriggerThresholdValue::windowSize ( ) const
inlinevirtual

Reimplemented in TrigConf::JetThresholdValue.

Definition at line 50 of file TriggerThresholdValue.h.

50 { return m_WindowSize; }

◆ writeXML()

void TrigConf::TriggerThresholdValue::writeXML ( std::ostream &  xmlfile,
int  indentLevel = 0,
int  indentWidth = 2 
) const
virtual

Reimplemented in TrigConf::ClusterThresholdValue, TrigConf::JetThresholdValue, TrigConf::EtThresholdValue, TrigConf::MuonThresholdValue, TrigConf::NimThresholdValue, and TrigConf::XsThresholdValue.

Definition at line 99 of file TriggerThresholdValue.cxx.

99  {
100  indent(xmlfile, indentLevel, indentWidth)
101  << "<TriggerThresholdValue " << m_Type << " NOT IMPLEMENTED/>"
102  << endl;
103 }

Member Data Documentation

◆ fgCaloClusterOff

const int TriggerThresholdValue::fgCaloClusterOff = 0xff
static

Definition at line 24 of file TriggerThresholdValue.h.

◆ fgCaloEtMissOff

const int TriggerThresholdValue::fgCaloEtMissOff = 0x7fff
static

Definition at line 27 of file TriggerThresholdValue.h.

◆ fgCaloEtSumOff

const int TriggerThresholdValue::fgCaloEtSumOff = 0x7fff
static

Definition at line 26 of file TriggerThresholdValue.h.

◆ fgCaloIsolationOff

const int TriggerThresholdValue::fgCaloIsolationOff = 0x3f
static

Definition at line 29 of file TriggerThresholdValue.h.

◆ fgCaloJetEtOff

const int TriggerThresholdValue::fgCaloJetEtOff = 0x33e6
static

Definition at line 28 of file TriggerThresholdValue.h.

◆ fgCaloJetOff

const int TriggerThresholdValue::fgCaloJetOff = 0x3ff
static

Definition at line 25 of file TriggerThresholdValue.h.

◆ m_comment

std::string TrigConf::TrigConfData::m_comment
privateinherited

Definition at line 48 of file TrigConfData.h.

◆ m_EtaMax

int TrigConf::TriggerThresholdValue::m_EtaMax
protected

Definition at line 84 of file TriggerThresholdValue.h.

◆ m_EtaMin

int TrigConf::TriggerThresholdValue::m_EtaMin
protected

Definition at line 83 of file TriggerThresholdValue.h.

◆ m_id

unsigned int TrigConf::TrigConfData::m_id
privateinherited

Definition at line 45 of file TrigConfData.h.

◆ m_Lvl1MasterId

unsigned int TrigConf::L1DataBaseclass::m_Lvl1MasterId
privateinherited

Definition at line 35 of file L1DataBaseclass.h.

◆ m_name

std::string TrigConf::TrigConfData::m_name
privateinherited

Definition at line 46 of file TrigConfData.h.

◆ m_PhiMax

int TrigConf::TriggerThresholdValue::m_PhiMax
protected

Definition at line 82 of file TriggerThresholdValue.h.

◆ m_PhiMin

int TrigConf::TriggerThresholdValue::m_PhiMin
protected

Definition at line 81 of file TriggerThresholdValue.h.

◆ m_Priority

unsigned int TrigConf::TriggerThresholdValue::m_Priority
protected

Definition at line 78 of file TriggerThresholdValue.h.

◆ m_Ptcut

float TrigConf::TriggerThresholdValue::m_Ptcut
protected

Definition at line 77 of file TriggerThresholdValue.h.

◆ m_smk

unsigned int TrigConf::TrigConfData::m_smk
privateinherited

Definition at line 44 of file TrigConfData.h.

◆ m_Type

std::string TrigConf::TriggerThresholdValue::m_Type
protected

Definition at line 76 of file TriggerThresholdValue.h.

◆ m_version

unsigned int TrigConf::TrigConfData::m_version
privateinherited

Definition at line 47 of file TrigConfData.h.

◆ m_Window

unsigned int TrigConf::TriggerThresholdValue::m_Window
protected

Definition at line 79 of file TriggerThresholdValue.h.

◆ m_WindowSize

JetWindowSize::Size TrigConf::TriggerThresholdValue::m_WindowSize
protected

Definition at line 80 of file TriggerThresholdValue.h.


The documentation for this class was generated from the following files:
TrigConf::TrigConfData::m_id
unsigned int m_id
Definition: TrigConfData.h:45
TrigConf::TriggerThresholdValue::m_Priority
unsigned int m_Priority
Definition: TriggerThresholdValue.h:78
TrigConf::TrigConfData::m_name
std::string m_name
Definition: TrigConfData.h:46
TrigConf::TrigConfData::name
const std::string & name() const
Definition: TrigConfData.h:22
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
TrigConf::TriggerThresholdValue::m_EtaMax
int m_EtaMax
Definition: TriggerThresholdValue.h:84
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
TrigConf::TrigConfData::comment
const std::string & comment() const
Definition: TrigConfData.h:23
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
TrigConf::TriggerThresholdValue::caloGlobalScaleCountToGeV
static float caloGlobalScaleCountToGeV()
Definition: TriggerThresholdValue.cxx:57
TrigConf::L1DataBaseclass::L1DataBaseclass
L1DataBaseclass()
Definition: L1DataBaseclass.h:24
TrigConf::TriggerThresholdValue::ptcut
float ptcut() const
Definition: TriggerThresholdValue.h:45
test_pyathena.pt
pt
Definition: test_pyathena.py:11
athena.value
value
Definition: athena.py:122
TrigConf::TriggerThresholdValue::m_Window
unsigned int m_Window
Definition: TriggerThresholdValue.h:79
TrigConf::TriggerThresholdValue::caloGlobalScale
static float caloGlobalScale()
Definition: TriggerThresholdValue.cxx:41
TrigConf::TrigConfData::m_version
unsigned int m_version
Definition: TrigConfData.h:47
x
#define x
TrigConf::L1DataBaseclass::m_Lvl1MasterId
unsigned int m_Lvl1MasterId
Definition: L1DataBaseclass.h:35
TrigConf::TriggerThresholdValue::m_WindowSize
JetWindowSize::Size m_WindowSize
Definition: TriggerThresholdValue.h:80
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
TrigConf::TriggerThresholdValue::m_EtaMin
int m_EtaMin
Definition: TriggerThresholdValue.h:83
TrigConf::TriggerThresholdValue::m_Type
std::string m_Type
Definition: TriggerThresholdValue.h:76
TrigConf::JetWindowSize::NONE
@ NONE
Definition: TriggerThresholdValue.h:17
TrigConf::TriggerThresholdValue::phimax
int phimax() const
Definition: TriggerThresholdValue.h:52
TrigConf::TriggerThresholdValue::etamax
int etamax() const
Definition: TriggerThresholdValue.h:54
TrigConf::TrigConfData::m_comment
std::string m_comment
Definition: TrigConfData.h:48
TrigConf::TrigConfData::version
unsigned int version() const
Definition: TrigConfData.h:24
TrigConf::TriggerThresholdValue::m_PhiMin
int m_PhiMin
Definition: TriggerThresholdValue.h:81
TrigConf::TriggerThresholdValue::type
const std::string & type() const
Definition: TriggerThresholdValue.h:44
TrigConf::TriggerThresholdValue::phimin
int phimin() const
Definition: TriggerThresholdValue.h:51
TrigConf::TriggerThresholdValue::m_PhiMax
int m_PhiMax
Definition: TriggerThresholdValue.h:82
TrigConf::TriggerThresholdValue::etamin
int etamin() const
Definition: TriggerThresholdValue.h:53
TrigConf::TrigConfData::id
unsigned int id() const
Definition: TrigConfData.h:21
TrigConf::TrigConfData::m_smk
unsigned int m_smk
Definition: TrigConfData.h:44
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
TrigConf::TriggerThresholdValue::thresholdValueCount
virtual int thresholdValueCount() const
Definition: TriggerThresholdValue.cxx:76
python.compressB64.c
def c
Definition: compressB64.py:93
TrigConf::TriggerThresholdValue::m_Ptcut
float m_Ptcut
Definition: TriggerThresholdValue.h:77