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

#include <CaloInfo.h>

Inheritance diagram for TrigConf::CaloInfo:
Collaboration diagram for TrigConf::CaloInfo:

Public Member Functions

 CaloInfo ()
virtual ~CaloInfo () override=default
double globalScale () const
float globalEmScale () const
float globalJetScale () const
const std::vector< int > & jetWeights () const
const std::vector< CaloSinCos > & caloSinCos () const
METSigParammetSigParam ()
const METSigParammetSigParam () const
const std::vector< IsolationParam > & isolationHAIsoForEMthr () const
const std::vector< IsolationParam > & isolationEMIsoForEMthr () const
const std::vector< IsolationParam > & isolationEMIsoForTAUthr () const
unsigned int jetWindowSizeSmall () const
unsigned int jetWindowSizeLarge () const
const MinTOBPtminTobEM () const
const MinTOBPtminTobTau () const
const MinTOBPtminTobJetSmall () const
const MinTOBPtminTobJetLarge () const
void setGlobalScale (double val)
void setGlobalEmScale (float val)
void setGlobalJetScale (float val)
void addJetWeight (int)
void addCaloSinCos (const CaloSinCos &)
void setIsolation (const std::string &isothrtype, unsigned int bit, const IsolationParam &isopar)
void setMinTobEM (const MinTOBPt &m)
void setMinTobTau (const MinTOBPt &m)
void setMinTobJetSmall (const MinTOBPt &m)
void setMinTobJetLarge (const MinTOBPt &m)
void setJetWindowSizeSmall (unsigned int window)
void setJetWindowSizeLarge (unsigned int window)
virtual void print (const std::string &indent="", unsigned int detail=1) const override
void writeXML (std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
void clear ()
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

Protected Member Functions

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

Protected Attributes

float m_GlobalScale {1}
float m_GlobalEmScale {1}
float m_GlobalJetScale {1}
std::vector< int > m_JetWeights
std::vector< CaloSinCosm_CaloSinCos
METSigParam m_METSigParam
std::vector< IsolationParamm_IsolationHAIsoForEMthr
std::vector< IsolationParamm_IsolationEMIsoForEMthr
std::vector< IsolationParamm_IsolationEMIsoForTAUthr
MinTOBPt m_tobEM
MinTOBPt m_tobTau
MinTOBPt m_tobJetSmall
MinTOBPt m_tobJetLarge
unsigned int m_JetWindowSizeSmall {4}
unsigned int m_JetWindowSizeLarge {8}

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 35 of file CaloInfo.h.

Constructor & Destructor Documentation

◆ CaloInfo()

CaloInfo::CaloInfo ( )

Definition at line 11 of file CaloInfo.cxx.

13 m_GlobalScale( 1 ),
20 m_tobEM(),
21 m_tobTau(),
26{}
std::vector< IsolationParam > m_IsolationHAIsoForEMthr
Definition CaloInfo.h:96
std::vector< int > m_JetWeights
Definition CaloInfo.h:92
MinTOBPt m_tobJetSmall
Definition CaloInfo.h:102
std::vector< IsolationParam > m_IsolationEMIsoForEMthr
Definition CaloInfo.h:97
unsigned int m_JetWindowSizeSmall
Definition CaloInfo.h:105
unsigned int m_JetWindowSizeLarge
Definition CaloInfo.h:106
MinTOBPt m_tobJetLarge
Definition CaloInfo.h:103
METSigParam m_METSigParam
Definition CaloInfo.h:94
std::vector< CaloSinCos > m_CaloSinCos
Definition CaloInfo.h:93
std::vector< IsolationParam > m_IsolationEMIsoForTAUthr
Definition CaloInfo.h:98
MinTOBPt m_tobTau
Definition CaloInfo.h:101

◆ ~CaloInfo()

virtual TrigConf::CaloInfo::~CaloInfo ( )
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}

◆ addCaloSinCos()

void CaloInfo::addCaloSinCos ( const CaloSinCos & csc)

Definition at line 35 of file CaloInfo.cxx.

35 {
36 m_CaloSinCos.push_back(csc);
37}

◆ addJetWeight()

void CaloInfo::addJetWeight ( int jw)

Definition at line 29 of file CaloInfo.cxx.

29 {
30 m_JetWeights.push_back(jw);
31}

◆ caloSinCos()

const std::vector< CaloSinCos > & TrigConf::CaloInfo::caloSinCos ( ) const
inline

Definition at line 48 of file CaloInfo.h.

48{ return m_CaloSinCos; }

◆ clear()

void CaloInfo::clear ( )

Definition at line 40 of file CaloInfo.cxx.

40 {
41 m_GlobalScale = 1;
42 m_CaloSinCos.clear();
43 m_JetWeights.clear();
44
48
52
53}

◆ comment()

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

Definition at line 23 of file TrigConfData.h.

23{return m_comment;}

◆ globalEmScale()

float TrigConf::CaloInfo::globalEmScale ( ) const
inline

Definition at line 43 of file CaloInfo.h.

43{ return m_GlobalEmScale; }
float m_GlobalEmScale
Definition CaloInfo.h:90

◆ globalJetScale()

float TrigConf::CaloInfo::globalJetScale ( ) const
inline

Definition at line 44 of file CaloInfo.h.

44{ return m_GlobalJetScale; }
float m_GlobalJetScale
Definition CaloInfo.h:91

◆ globalScale()

double TrigConf::CaloInfo::globalScale ( ) const
inline

Definition at line 42 of file CaloInfo.h.

42{ return m_GlobalScale; }

◆ 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

◆ isolationEMIsoForEMthr()

const std::vector< IsolationParam > & TrigConf::CaloInfo::isolationEMIsoForEMthr ( ) const
inline

Definition at line 54 of file CaloInfo.h.

◆ isolationEMIsoForTAUthr()

const std::vector< IsolationParam > & TrigConf::CaloInfo::isolationEMIsoForTAUthr ( ) const
inline

Definition at line 55 of file CaloInfo.h.

◆ isolationHAIsoForEMthr()

const std::vector< IsolationParam > & TrigConf::CaloInfo::isolationHAIsoForEMthr ( ) const
inline

Definition at line 53 of file CaloInfo.h.

◆ jetWeights()

const std::vector< int > & TrigConf::CaloInfo::jetWeights ( ) const
inline

Definition at line 46 of file CaloInfo.h.

46{ return m_JetWeights; }

◆ jetWindowSizeLarge()

unsigned int TrigConf::CaloInfo::jetWindowSizeLarge ( ) const
inline

Definition at line 58 of file CaloInfo.h.

58{ return m_JetWindowSizeLarge; }

◆ jetWindowSizeSmall()

unsigned int TrigConf::CaloInfo::jetWindowSizeSmall ( ) const
inline

Definition at line 57 of file CaloInfo.h.

57{ return m_JetWindowSizeSmall; }

◆ lvl1MasterTableId()

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

Definition at line 30 of file L1DataBaseclass.h.

30{ return m_Lvl1MasterId; }

◆ metSigParam() [1/2]

METSigParam & TrigConf::CaloInfo::metSigParam ( )
inline

Definition at line 50 of file CaloInfo.h.

50{ return m_METSigParam; }

◆ metSigParam() [2/2]

const METSigParam & TrigConf::CaloInfo::metSigParam ( ) const
inline

Definition at line 51 of file CaloInfo.h.

51{ return m_METSigParam; }

◆ minTobEM()

const MinTOBPt & TrigConf::CaloInfo::minTobEM ( ) const
inline

Definition at line 60 of file CaloInfo.h.

60{ return m_tobEM; }

◆ minTobJetLarge()

const MinTOBPt & TrigConf::CaloInfo::minTobJetLarge ( ) const
inline

Definition at line 63 of file CaloInfo.h.

63{ return m_tobJetLarge; }

◆ minTobJetSmall()

const MinTOBPt & TrigConf::CaloInfo::minTobJetSmall ( ) const
inline

Definition at line 62 of file CaloInfo.h.

62{ return m_tobJetSmall; }

◆ minTobTau()

const MinTOBPt & TrigConf::CaloInfo::minTobTau ( ) const
inline

Definition at line 61 of file CaloInfo.h.

61{ return m_tobTau; }

◆ name()

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

Definition at line 22 of file TrigConfData.h.

22{return m_name;}

◆ print()

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

Implements TrigConf::TrigConfData.

Definition at line 75 of file CaloInfo.cxx.

75 {
76
77 cout << indent << "================================================ " << endl;
78 cout << indent << "CaloInfo: " << endl;
80 cout << indent << " Global em scale : " << globalEmScale() << endl;
81 cout << indent << " Global jet scale: " << globalJetScale() << endl;
82 if(m_JetWeights.size()>0) {
83 cout << indent << " JetWeights: ";
84 for(unsigned int i=0; i<m_JetWeights.size(); ++i) {
85 cout << i << ": " << m_JetWeights[i] << ", ";
86 if((i+1)%6==0) cout << endl;
87 if(i==5) cout << indent << " ";
88 }
89 }
90 m_METSigParam.print(indent);
91 for(const IsolationParam & isop : m_IsolationHAIsoForEMthr) {
92 isop.print(indent);
93 }
94 cout << "================================================ " << endl;
95}
float globalEmScale() const
Definition CaloInfo.h:43
float globalJetScale() const
Definition CaloInfo.h:44
std::ostream & indent(std::ostream &o, int lvl, int size) const
void printNameIdV(const std::string &indent="") 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}
unsigned int id() const
const std::string & name() const
const std::string & comment() const
unsigned int version() const

◆ setComment()

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

Definition at line 32 of file TrigConfData.h.

◆ setGlobalEmScale()

void TrigConf::CaloInfo::setGlobalEmScale ( float val)
inline

◆ setGlobalJetScale()

void TrigConf::CaloInfo::setGlobalJetScale ( float val)
inline

Definition at line 68 of file CaloInfo.h.

◆ setGlobalScale()

void TrigConf::CaloInfo::setGlobalScale ( double val)
inline

Definition at line 66 of file CaloInfo.h.

66{ m_GlobalScale = val; }

◆ setId()

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

Definition at line 29 of file TrigConfData.h.

29{ m_id=id; }

◆ setIsolation()

void CaloInfo::setIsolation ( const std::string & isothrtype,
unsigned int bit,
const IsolationParam & isopar )

Definition at line 57 of file CaloInfo.cxx.

57 {
58 if(bit<1 || bit>5) {
59 cout << "Isolation bit is outside the range [1,5] : " << bit << " - not being used" << endl;
60 return;
61 }
62 if(isothrtype=="HAIsoForEMthr") {
63 m_IsolationHAIsoForEMthr[bit-1] = isopar;
64 } else if(isothrtype=="EMIsoForEMthr") {
65 m_IsolationEMIsoForEMthr[bit-1] = isopar;
66 } else if(isothrtype=="EMIsoForTAUthr") {
67 m_IsolationEMIsoForTAUthr[bit-1] = isopar;
68 } else {
69 cout << "Isolation threshold " << isothrtype << " is unknown [HAIsoForEMthr, EMIsoForEMthr, EMIsoForTAUthr] - not being used" << endl;
70 }
71}

◆ setJetWindowSizeLarge()

void TrigConf::CaloInfo::setJetWindowSizeLarge ( unsigned int window)
inline

Definition at line 80 of file CaloInfo.h.

80{ m_JetWindowSizeLarge = window; }

◆ setJetWindowSizeSmall()

void TrigConf::CaloInfo::setJetWindowSizeSmall ( unsigned int window)
inline

Definition at line 79 of file CaloInfo.h.

79{ m_JetWindowSizeSmall = window; }

◆ setLvl1MasterTableId()

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

Definition at line 31 of file L1DataBaseclass.h.

31{ m_Lvl1MasterId = id; }

◆ setMinTobEM()

void TrigConf::CaloInfo::setMinTobEM ( const MinTOBPt & m)
inline

Definition at line 74 of file CaloInfo.h.

◆ setMinTobJetLarge()

void TrigConf::CaloInfo::setMinTobJetLarge ( const MinTOBPt & m)
inline

Definition at line 77 of file CaloInfo.h.

77{ m_tobJetLarge = m; }

◆ setMinTobJetSmall()

void TrigConf::CaloInfo::setMinTobJetSmall ( const MinTOBPt & m)
inline

Definition at line 76 of file CaloInfo.h.

76{ m_tobJetSmall = m; }

◆ setMinTobTau()

void TrigConf::CaloInfo::setMinTobTau ( const MinTOBPt & m)
inline

Definition at line 75 of file CaloInfo.h.

75{ m_tobTau = m; }

◆ setName()

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

Definition at line 30 of file TrigConfData.h.

30{ m_name = name;}

◆ 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;}

◆ setVersion()

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

Definition at line 31 of file TrigConfData.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;}

◆ version()

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

Definition at line 24 of file TrigConfData.h.

24{return m_version;}

◆ writeXML()

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

Definition at line 98 of file CaloInfo.cxx.

98 {
99
100 indent(xmlfile, indentLevel, indentWidth)
101 << "<CaloInfo name=\""<< name() <<"\" global_em_scale=\""<< globalEmScale() <<"\" global_jet_scale=\""<< globalJetScale() <<"\">" << endl;
102
103 bool hasJetWeights(false);
104 for(int jw : m_JetWeights) // check if there is a jetweight that is not 0
105 if(jw!=0) hasJetWeights = true;
106
107 if(hasJetWeights) {
108 unsigned int num(1);
109 for(int jw : m_JetWeights)
110 indent(xmlfile, indentLevel+1, indentWidth)
111 << "<JetWeight num=\"" << num++ << "\" weight=\""<< jw <<"\"/>" << endl;
112 }
113
114 metSigParam().writeXML(xmlfile, indentLevel+1, indentWidth);
115
116 // isolation parametrization
117 indent(xmlfile, indentLevel+1, indentWidth)
118 << "<Isolation thrtype=\"HAIsoForEMthr\">" << endl;
119 for(const IsolationParam & isop : m_IsolationHAIsoForEMthr)
120 isop.writeXML(xmlfile, indentLevel+2, indentWidth);
121 indent(xmlfile, indentLevel+1, indentWidth)
122 << "</Isolation>" << endl;
123
124 indent(xmlfile, indentLevel+1, indentWidth)
125 << "<Isolation thrtype=\"EMIsoForEMthr\">" << endl;
126 for(const IsolationParam & isop : m_IsolationEMIsoForEMthr)
127 isop.writeXML(xmlfile, indentLevel+2, indentWidth);
128 indent(xmlfile, indentLevel+1, indentWidth)
129 << "</Isolation>" << endl;
130
131 indent(xmlfile, indentLevel+1, indentWidth)
132 << "<Isolation thrtype=\"EMIsoForTAUthr\">" << endl;
133 for(const IsolationParam & isop : m_IsolationEMIsoForTAUthr)
134 isop.writeXML(xmlfile, indentLevel+2, indentWidth);
135 indent(xmlfile, indentLevel+1, indentWidth)
136 << "</Isolation>" << endl;
137
138
139 indent(xmlfile, indentLevel+1, indentWidth)
140 << "<MinimumTOBPt thrtype=\"EM\" ptmin=\"" << m_tobEM.ptmin << "\" etamin=\"" << m_tobEM.etamin << "\" etamax=\"" << m_tobEM.etamax << "\" priority=\"" << m_tobEM.priority << "\"/>" << endl;
141 indent(xmlfile, indentLevel+1, indentWidth)
142 << "<MinimumTOBPt thrtype=\"TAU\" ptmin=\"" << m_tobTau.ptmin << "\" etamin=\"" << m_tobTau.etamin << "\" etamax=\"" << m_tobTau.etamax << "\" priority=\"" << m_tobTau.priority << "\"/>" << endl;
143 indent(xmlfile, indentLevel+1, indentWidth)
144 << "<MinimumTOBPt thrtype=\"JETS\" window=\"" << m_JetWindowSizeSmall << "\" ptmin=\"" << m_tobJetSmall.ptmin << "\" etamin=\"" << m_tobJetSmall.etamin << "\" etamax=\"" << m_tobJetSmall.etamax << "\" priority=\"" << m_tobJetSmall.priority << "\"/>" << endl;
145 indent(xmlfile, indentLevel+1, indentWidth)
146 << "<MinimumTOBPt thrtype=\"JETL\" window=\"" << m_JetWindowSizeLarge << "\" ptmin=\"" << m_tobJetLarge.ptmin << "\" etamin=\"" << m_tobJetLarge.etamin << "\" etamax=\"" << m_tobJetLarge.etamax << "\" priority=\"" << m_tobJetLarge.priority << "\"/>" << endl;
147
148
149 indent(xmlfile, indentLevel, indentWidth) << "</CaloInfo>" << endl;
150
151}
METSigParam & metSigParam()
Definition CaloInfo.h:50
virtual void writeXML(std::ostream &xmlfile, int indentLevel, int indentWidth) const
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29

Member Data Documentation

◆ m_CaloSinCos

std::vector<CaloSinCos> TrigConf::CaloInfo::m_CaloSinCos
protected

Definition at line 93 of file CaloInfo.h.

◆ m_comment

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

Definition at line 48 of file TrigConfData.h.

◆ m_GlobalEmScale

float TrigConf::CaloInfo::m_GlobalEmScale {1}
protected

Definition at line 90 of file CaloInfo.h.

90{1};

◆ m_GlobalJetScale

float TrigConf::CaloInfo::m_GlobalJetScale {1}
protected

Definition at line 91 of file CaloInfo.h.

91{1};

◆ m_GlobalScale

float TrigConf::CaloInfo::m_GlobalScale {1}
protected

Definition at line 89 of file CaloInfo.h.

89{1};

◆ m_id

unsigned int TrigConf::TrigConfData::m_id
privateinherited

Definition at line 45 of file TrigConfData.h.

◆ m_IsolationEMIsoForEMthr

std::vector<IsolationParam> TrigConf::CaloInfo::m_IsolationEMIsoForEMthr
protected

Definition at line 97 of file CaloInfo.h.

◆ m_IsolationEMIsoForTAUthr

std::vector<IsolationParam> TrigConf::CaloInfo::m_IsolationEMIsoForTAUthr
protected

Definition at line 98 of file CaloInfo.h.

◆ m_IsolationHAIsoForEMthr

std::vector<IsolationParam> TrigConf::CaloInfo::m_IsolationHAIsoForEMthr
protected

Definition at line 96 of file CaloInfo.h.

◆ m_JetWeights

std::vector<int> TrigConf::CaloInfo::m_JetWeights
protected

Definition at line 92 of file CaloInfo.h.

◆ m_JetWindowSizeLarge

unsigned int TrigConf::CaloInfo::m_JetWindowSizeLarge {8}
protected

Definition at line 106 of file CaloInfo.h.

106{8};

◆ m_JetWindowSizeSmall

unsigned int TrigConf::CaloInfo::m_JetWindowSizeSmall {4}
protected

Definition at line 105 of file CaloInfo.h.

105{4};

◆ m_Lvl1MasterId

unsigned int TrigConf::L1DataBaseclass::m_Lvl1MasterId
privateinherited

Definition at line 35 of file L1DataBaseclass.h.

◆ m_METSigParam

METSigParam TrigConf::CaloInfo::m_METSigParam
protected

Definition at line 94 of file CaloInfo.h.

◆ m_name

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

Definition at line 46 of file TrigConfData.h.

◆ m_smk

unsigned int TrigConf::TrigConfData::m_smk
privateinherited

Definition at line 44 of file TrigConfData.h.

◆ m_tobEM

MinTOBPt TrigConf::CaloInfo::m_tobEM
protected

Definition at line 100 of file CaloInfo.h.

◆ m_tobJetLarge

MinTOBPt TrigConf::CaloInfo::m_tobJetLarge
protected

Definition at line 103 of file CaloInfo.h.

◆ m_tobJetSmall

MinTOBPt TrigConf::CaloInfo::m_tobJetSmall
protected

Definition at line 102 of file CaloInfo.h.

◆ m_tobTau

MinTOBPt TrigConf::CaloInfo::m_tobTau
protected

Definition at line 101 of file CaloInfo.h.

◆ m_version

unsigned int TrigConf::TrigConfData::m_version
privateinherited

Definition at line 47 of file TrigConfData.h.


The documentation for this class was generated from the following files: