ATLAS Offline Software
Loading...
Searching...
No Matches
TrigConf::MuonThresholdValue Class Reference

#include <MuonThresholdValue.h>

Inheritance diagram for TrigConf::MuonThresholdValue:
Collaboration diagram for TrigConf::MuonThresholdValue:

Public Member Functions

 MuonThresholdValue ()
virtual ~MuonThresholdValue () 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 MuonThresholdValue.h.

Constructor & Destructor Documentation

◆ MuonThresholdValue()

TrigConf::MuonThresholdValue::MuonThresholdValue ( )

◆ ~MuonThresholdValue()

virtual TrigConf::MuonThresholdValue::~MuonThresholdValue ( )
overridevirtualdefault

Member Function Documentation

◆ __str__()

string TrigConfData::__str__ ( ) const
virtualinherited

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

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 {
50 if (x == 0)
51 return 1.0;
52 else
53 return 1.0/x;
54}
#define x

◆ 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}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method

◆ createCopy()

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

Implements TrigConf::TriggerThresholdValue.

Definition at line 15 of file MuonThresholdValue.cxx.

15 {
16 return new MuonThresholdValue(*this);
17}

◆ etamax()

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

Definition at line 54 of file TriggerThresholdValue.h.

◆ etamin()

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

Definition at line 53 of file TriggerThresholdValue.h.

◆ 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}
const double width

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

◆ phimin()

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

Definition at line 51 of file TriggerThresholdValue.h.

◆ print()

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

Implements TrigConf::TriggerThresholdValue.

Definition at line 20 of file MuonThresholdValue.cxx.

20 {
21 cout << indent << "-----------------------" << endl;
22 cout << indent << "MuonThresholdValue: " << endl;
23 cout << indent << "\t id: " << id() << endl;
24 cout << indent << "\t Name: " << name() << endl;
25 cout << indent << "\t Version: " << version() << endl;
26 cout << indent << "\t Priority: " << m_Priority << endl;
27 cout << indent << "\t Type: " << m_Type << endl;
28 cout << indent << "\t ptcut: " << m_Ptcut
29 << " count=" << thresholdValueCount() << endl;
30}
unsigned int id() const
std::ostream & indent(std::ostream &o, int lvl, int size) const
const std::string & name() const
unsigned int version() const

◆ 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}
const std::string & comment() const

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

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

◆ 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; }
const std::string & type() const

◆ setVersion()

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

Definition at line 31 of file TrigConfData.h.

◆ setWindow()

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

Definition at line 60 of file TriggerThresholdValue.h.

◆ 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::EtThresholdValue, and TrigConf::JetThresholdValue.

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::MuonThresholdValue::writeXML ( std::ostream & xmlfile,
int indentLevel = 0,
int indentWidth = 2 ) const
overridevirtual

Reimplemented from TrigConf::TriggerThresholdValue.

Definition at line 33 of file MuonThresholdValue.cxx.

33 {
34 indent(xmlfile, indentLevel, indentWidth)
35 << "<TriggerThresholdValue em_isolation=\"63\" etamin=\"-49\" etamax=\"49\" had_isolation=\"63\" had_veto=\"63\" name=\"" << name()
36 << "\" phimin=\"0\" phimax=\"64\" priority=\""<< m_Priority
37 << "\" thresholdval=\"" << m_Ptcut
38 << "\" type=\"" << m_Type
39 << "\" window=\"0\"/>"
40 << endl;
41}
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29

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: