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::NimThresholdValue Class Reference

#include <NimThresholdValue.h>

Inheritance diagram for TrigConf::NimThresholdValue:
Collaboration diagram for TrigConf::NimThresholdValue:

Public Member Functions

 NimThresholdValue ()
 
virtual ~NimThresholdValue () override=default
 
virtual TriggerThresholdValuecreateCopy () const override
 
virtual void print (const std::string &indent="", unsigned int detail=1) const override
 
virtual void writeXML (std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const override
 
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
 
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 11 of file NimThresholdValue.h.

Constructor & Destructor Documentation

◆ NimThresholdValue()

TrigConf::NimThresholdValue::NimThresholdValue ( )

Definition at line 11 of file NimThresholdValue.cxx.

11  :
13 {}

◆ ~NimThresholdValue()

virtual TrigConf::NimThresholdValue::~NimThresholdValue ( )
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 ( )
staticinherited

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 ( )
staticinherited

Definition at line 57 of file TriggerThresholdValue.cxx.

57  {
58  return caloGlobalScale();
59 }

◆ caloGlobalScaleGeVToCount()

float TrigConf::TriggerThresholdValue::caloGlobalScaleGeVToCount ( )
staticinherited

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
inherited

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
inherited

Definition at line 81 of file TriggerThresholdValue.cxx.

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

◆ createCopy()

TrigConf::TriggerThresholdValue * TrigConf::NimThresholdValue::createCopy ( ) const
overridevirtual

Implements TrigConf::TriggerThresholdValue.

Definition at line 16 of file NimThresholdValue.cxx.

16  {
17  return new NimThresholdValue(*this);
18 }

◆ etamax()

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

Definition at line 54 of file TriggerThresholdValue.h.

54 { return m_EtaMax; }

◆ etamin()

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

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
inlineinherited

Definition at line 52 of file TriggerThresholdValue.h.

52 { return m_PhiMax; }

◆ phimin()

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

Definition at line 51 of file TriggerThresholdValue.h.

51 { return m_PhiMin; }

◆ print()

void TrigConf::NimThresholdValue::print ( const std::string &  indent = "",
unsigned int  detail = 1 
) const
overridevirtual

Implements TrigConf::TriggerThresholdValue.

Definition at line 21 of file NimThresholdValue.cxx.

21  {
22 
23  cout << indent << "-----------------------" << endl;
24  cout << indent << "NimThresholdValue: " << endl;
25  cout << indent << "\t id: " << id() << endl;
26  cout << indent << "\t Name: " << name() << endl;
27  cout << indent << "\t Version: " << version() << endl;
28  cout << indent << "\t Priority: " << m_Priority << endl;
29  cout << indent << "\t Type: " << m_Type << endl;
30  cout << indent << "\t ptcut: " << m_Ptcut
31  << " count=" << thresholdValueCount() << endl;
32 }

◆ 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
inlineinherited

Definition at line 46 of file TriggerThresholdValue.h.

46 { return m_Priority; }

◆ ptcut()

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

Definition at line 45 of file TriggerThresholdValue.h.

45 { return m_Ptcut; }

◆ ptCutCount()

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

Definition at line 47 of file TriggerThresholdValue.h.

47 { return thresholdValueCount(); }

◆ setCaloInfo()

void TriggerThresholdValue::setCaloInfo ( const CaloInfo ci)
staticinherited

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)
inlineinherited

Definition at line 64 of file TriggerThresholdValue.h.

64 { m_EtaMax = value; }

◆ setEtaMin()

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

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)
inlineinherited

Definition at line 62 of file TriggerThresholdValue.h.

62 { m_PhiMax = value; }

◆ setPhiMin()

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

Definition at line 61 of file TriggerThresholdValue.h.

61 { m_PhiMin = value; }

◆ setPriority()

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

Definition at line 59 of file TriggerThresholdValue.h.

59 { m_Priority = prio; }

◆ setPtcut()

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

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)
inlineinherited

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)
inlineinherited

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
virtualinherited

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
inlineinherited

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
inlineinherited

Definition at line 49 of file TriggerThresholdValue.h.

49 { return m_Window; }

◆ windowSize()

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

Reimplemented in TrigConf::JetThresholdValue.

Definition at line 50 of file TriggerThresholdValue.h.

50 { return m_WindowSize; }

◆ writeXML()

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

Reimplemented from TrigConf::TriggerThresholdValue.

Definition at line 35 of file NimThresholdValue.cxx.

35  {
36  indent(xmlfile, indentLevel, indentWidth)
37  << "<TriggerThresholdValue em_isolation=\"63\" etamin=\"-49\" etamax=\"49\" had_isolation=\"63\" had_veto=\"63\""
38  << " name=\"" << name()
39  << "\" phimin=\"0\" phimax=\"64\" priority=\"" << m_Priority
40  << "\" thresholdval=\"" << m_Ptcut
41  << "\" type=\"" << m_Type
42  << "\" window=\"0\"/>"
43  << endl;
44 }

Member Data Documentation

◆ fgCaloClusterOff

const int TriggerThresholdValue::fgCaloClusterOff = 0xff
staticinherited

Definition at line 24 of file TriggerThresholdValue.h.

◆ fgCaloEtMissOff

const int TriggerThresholdValue::fgCaloEtMissOff = 0x7fff
staticinherited

Definition at line 27 of file TriggerThresholdValue.h.

◆ fgCaloEtSumOff

const int TriggerThresholdValue::fgCaloEtSumOff = 0x7fff
staticinherited

Definition at line 26 of file TriggerThresholdValue.h.

◆ fgCaloIsolationOff

const int TriggerThresholdValue::fgCaloIsolationOff = 0x3f
staticinherited

Definition at line 29 of file TriggerThresholdValue.h.

◆ fgCaloJetEtOff

const int TriggerThresholdValue::fgCaloJetEtOff = 0x33e6
staticinherited

Definition at line 28 of file TriggerThresholdValue.h.

◆ fgCaloJetOff

const int TriggerThresholdValue::fgCaloJetOff = 0x3ff
staticinherited

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
protectedinherited

Definition at line 84 of file TriggerThresholdValue.h.

◆ m_EtaMin

int TrigConf::TriggerThresholdValue::m_EtaMin
protectedinherited

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
protectedinherited

Definition at line 82 of file TriggerThresholdValue.h.

◆ m_PhiMin

int TrigConf::TriggerThresholdValue::m_PhiMin
protectedinherited

Definition at line 81 of file TriggerThresholdValue.h.

◆ m_Priority

unsigned int TrigConf::TriggerThresholdValue::m_Priority
protectedinherited

Definition at line 78 of file TriggerThresholdValue.h.

◆ m_Ptcut

float TrigConf::TriggerThresholdValue::m_Ptcut
protectedinherited

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
protectedinherited

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
protectedinherited

Definition at line 79 of file TriggerThresholdValue.h.

◆ m_WindowSize

JetWindowSize::Size TrigConf::TriggerThresholdValue::m_WindowSize
protectedinherited

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
TrigConf::NimThresholdValue::NimThresholdValue
NimThresholdValue()
Definition: NimThresholdValue.cxx:11
TrigConf::TrigConfData::comment
const std::string & comment() const
Definition: TrigConfData.h:23
TrigConf::TriggerThresholdValue::caloGlobalScaleCountToGeV
static float caloGlobalScaleCountToGeV()
Definition: TriggerThresholdValue.cxx:57
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:124
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::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::TriggerThresholdValue
TriggerThresholdValue()
Definition: TriggerThresholdValue.cxx:62
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