ATLAS Offline Software
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
TCS::AnomalyDetectionBDT Class Reference

#include <AnomalyDetectionBDT.h>

Inheritance diagram for TCS::AnomalyDetectionBDT:
Collaboration diagram for TCS::AnomalyDetectionBDT:

Public Member Functions

 AnomalyDetectionBDT (const std::string &name)
 
virtual ~AnomalyDetectionBDT ()
 
virtual StatusCode initialize ()
 
virtual StatusCode processBitCorrect (const std::vector< TCS::TOBArray const * > &input, const std::vector< TCS::TOBArray * > &output, Decision &decision)
 
virtual StatusCode process (const std::vector< TCS::TOBArray const * > &input, const std::vector< TCS::TOBArray * > &output, Decision &decision)
 
unsigned int numberOutputBits () const
 
void setNumberOutputBits (unsigned int numberOutputBits)
 
DecisionAlgsetHardwareBits (const unsigned int &bitNumber, const bool &valueDecision, const bool &valueOverflow)
 propagate the hardware decision bits for each output bit of this algo More...
 
DecisionAlgresetHardwareBits ()
 ! reset all hardware bits for this algo More...
 
bool getDecisionHardwareBit (const unsigned int &bitNumber) const
 ! get one hardware decision bit from this algo More...
 
bool getOverflowHardwareBit (const unsigned int &bitNumber) const
 ! get one hardware overflow bit from this algo More...
 
DecisionAlgsetFillHistosBasedOnHardware (const bool &value)
 ! toggle m_fillHistosBasedOnHardware More...
 
bool fillHistosBasedOnHardware () const
 ! getter More...
 
DecisionAlgsetSkipHistos (const bool &value)
 ! toggle m_skipHistos (see TopoSteering::setOutputAlgosSkipHistograms) More...
 
bool skipHistos () const
 ! getter More...
 
bool fillHistos () const
 whether the monitoring histograms should be filled More...
 
void setClassName (const std::string &className)
 
void setLegacyMode (bool isLegacyTopo)
 
const std::string & name () const
 
const std::string & className () const
 
std::string fullname () const
 
unsigned int algoId () const
 
StatusCode reset ()
 
bool isSortingAlg () const
 
bool isDecisionAlg () const
 
bool isCountingAlg () const
 
bool isLegacyTopo () const
 
unsigned int calcDeltaPhiBW (const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
 
unsigned int calcDeltaEtaBW (const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
 
unsigned int calcInvMassBW (const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
 
unsigned int calcTMassBW (const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
 
unsigned int calcDeltaR2BW (const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
 
unsigned long quadraticSumBW (int i1, int i2)
 
unsigned int calcDeltaPhi (const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
 
unsigned int calcDeltaEta (const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
 
unsigned int calcInvMass (const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
 
unsigned int calcTMass (const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
 
unsigned int calcDeltaR2 (const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
 
const Parameterparameter (const std::string &parameterName) const
 
const Parameterparameter (const std::string &parameterName, unsigned int selection) const
 
const ParameterSpaceparameters () const
 
void setParameters (const ParameterSpace &)
 
void setAlgoId (unsigned int algoId)
 
void setL1TopoHistSvc (std::shared_ptr< IL1TopoHistSvc >)
 sets the external hist service More...
 
void bookHistMult (std::vector< std::string > &regName, const std::string &name, const std::string &title, const std::string &xtitle, const int binx, const int xmin, const int xmax)
 
void bookHistMult (std::vector< std::string > &regName, const std::string &name, const std::string &title, const std::string &xtitle, const std::string &ytitle, const int binx, const int xmin, const int xmax, const int biny, const int ymin, const int ymax)
 
void bookHist (std::vector< std::string > &regName, const std::string &name, const std::string &title, const int binx, const int xmin, const int xmax)
 
void bookHist (std::vector< std::string > &regName, const std::string &name, const std::string &title, const int binx, const int xmin, const int xmax, const int biny, const int ymin, const int ymax)
 
bool msgLvl (const MSGTC::Level lvl) const
 Test the output level. More...
 
MsgStreamTC & msg () const
 The standard message stream. More...
 
MsgStreamTC & msg (const MSGTC::Level lvl) const
 The standard message stream. More...
 

Protected Types

enum  AlgType { NONE, SORT, DECISION, COUNT }
 

Protected Member Functions

void defineParameter (const std::string &name, TCS::parType_t value)
 
void defineParameter (const std::string &name, TCS::parType_t value, unsigned int selection)
 
void registerHist (TH1 *)
 
void registerHist (TH2 *)
 
void fillHist1D (const std::string &histName, double x)
 
void fillHist2D (const std::string &histName, double x, double y)
 
bool isocut (const std::string &threshold, const unsigned int bit) const
 
bool isocut (const unsigned int threshold, const unsigned int bit) const
 

Protected Attributes

std::vector< std::string > m_histAccept
 
std::vector< std::string > m_histReject
 
std::vector< std::string > m_histAcceptM
 
std::vector< std::string > m_histRejectM
 
std::vector< std::string > m_histAcceptX
 
std::vector< std::string > m_histRejectX
 
std::vector< std::string > m_histAcceptEta1Eta2
 
std::vector< std::string > m_histRejectEta1Eta2
 
std::vector< std::string > m_histAcceptEta2Eta3
 
std::vector< std::string > m_histRejectEta2Eta3
 
std::vector< std::string > m_histAcceptEta3Eta1
 
std::vector< std::string > m_histRejectEta3Eta1
 

Private Member Functions

virtual StatusCode doReset ()
 
void defineParameter (const Parameter &)
 
std::string ToString (const int val)
 

Private Attributes

std::vector< Treem_trees
 
int m_nVar {0}
 
int64_t m_totalScore {0}
 
float m_mu1_ptmin {0}
 
float m_mu1_ptmax {0}
 
float m_mu1_etamin {0}
 
float m_mu1_etamax {0}
 
float m_mu1_phimin {0}
 
float m_mu1_phimax {0}
 
float m_mu2_ptmin {0}
 
float m_mu2_ptmax {0}
 
float m_mu2_etamin {0}
 
float m_mu2_etamax {0}
 
float m_mu2_phimin {0}
 
float m_mu2_phimax {0}
 
std::string m_sim_mode
 
parType_t p_ScoreThreshold [2] = { 0, 0 }
 
parType_t p_minEt1 {0}
 
parType_t p_minEt2 {0}
 
size_t p_MaxTob {3}
 
unsigned int m_numberOutputBits {1}
 
uint32_t m_hardwareDecisionBits {0}
 ! decision bits from hardware (assume the algo won't have >31 output bits) More...
 
uint32_t m_hardwareOverflowBits {0}
 ! overflow bits from hardware (assume the algo won't have >31 output bits) More...
 
bool m_fillHistosBasedOnHardware {0}
 ! fill accept/reject monitoring histos based on hdw decision More...
 
bool m_skipHistos {0}
 ! skip filling monitoring histos, used only when m_fillHistosBasedOnHardware==true More...
 
std::unique_ptr< ConfigurableAlgImplm_impl
 
std::string m_name {""}
 
std::string m_className {""}
 
unsigned int m_algoId {0}
 
ParameterSpace m_parameters {""}
 
AlgType m_algType
 
bool m_isLegacyTopo
 
boost::thread_specific_ptr< MsgStreamTC > m_msg_tls
 MsgStreamTC instance (a std::cout like with print-out levels) More...
 

Detailed Description

Definition at line 49 of file AnomalyDetectionBDT.h.

Member Enumeration Documentation

◆ AlgType

enum TCS::ConfigurableAlg::AlgType
protectedinherited
Enumerator
NONE 
SORT 
DECISION 
COUNT 

Definition at line 32 of file ConfigurableAlg.h.

32 { NONE, SORT, DECISION, COUNT };

Constructor & Destructor Documentation

◆ AnomalyDetectionBDT()

TCS::AnomalyDetectionBDT::AnomalyDetectionBDT ( const std::string &  name)

Definition at line 383 of file AnomalyDetectionBDT.cxx.

384 : DecisionAlg(name) {
385  defineParameter("MinET1",0);
386  defineParameter("MinET2",0);
387  defineParameter("ScoreThreshold", 1, 0);
388  defineParameter("ScoreThreshold", 1, 1);
389  defineParameter("MaxTob",3);
390  defineParameter("NumResultBits",2);
391  setNumberOutputBits(2); // 2 decision bits for 2 different score thresholds
392  // (BDT Regression score is calculated internally)
393 }

◆ ~AnomalyDetectionBDT()

TCS::AnomalyDetectionBDT::~AnomalyDetectionBDT ( )
virtual

Definition at line 396 of file AnomalyDetectionBDT.cxx.

397 {}

Member Function Documentation

◆ algoId()

unsigned int TCS::ConfigurableAlg::algoId ( ) const
inlineinherited

Definition at line 53 of file ConfigurableAlg.h.

53 { return m_algoId; }

◆ bookHist() [1/2]

void ConfigurableAlg::bookHist ( std::vector< std::string > &  regName,
const std::string &  name,
const std::string &  title,
const int  binx,
const int  xmin,
const int  xmax 
)
inherited

Definition at line 270 of file ConfigurableAlg.cxx.

270  {
271  std::string xmin_str = ToString(xmin);
272  std::string xmax_str = ToString(xmax);
273  std::string newTitle = title;
274  std::string newName = name;
275 
276  newTitle = xmin_str+title+xmax_str;
277  newName = name+"_"+xmin_str+title+xmax_str;
278  std::replace( newName.begin(), newName.end(), '-', 'n');
279  std::replace( newName.begin(), newName.end(), ' ', '_');
280 
281  regName.push_back(m_name+"/"+newName);
282 
283  // Add units to axis labels
284  std::string xTitle = title;
285  if (m_isLegacyTopo) {
286  if (title == "ETA" || title == "DETA" || title == "PHI" || title == "DPHI" || title == "DR") { xTitle = title+"#times10"; }
287  if (title == "PT" || title == "ET" || title == "HT" || title == "INVM" || title == "MT") { xTitle = title+" [GeV]"; }
288  }
289  else {
290  if (title == "ETA" || title == "DETA" || title == "DR") { xTitle = title+"#times40"; }
291  if (title == "PHI" || title == "DPHI") { xTitle = title+"#times20"; }
292  if (title == "PT" || title == "ET" || title == "HT" || title == "INVM" || title == "MT") { xTitle = title+" [100 MeV]"; }
293  }
294 
295  int xmin_new,xmax_new,binx_new=binx;
296  if ( xmin > 0.0)
297  { xmin_new=0.0; }
298  else
299  { xmin_new=1.5*xmin; }
300 
301  // if the maximum inv. mass cut defined by the menu over 4000 MeV,
302  // set x-axis range maximum to 4000 MeV. This is only for legacy triggers,
303  // phase1 does not exceed this limit- asonay 08/2022
304  if (xmax > 4000 && m_isLegacyTopo) {
305  xmax_new = 4000;
306  binx_new = 200;
307  }
308  else {xmax_new = 1.5*xmax;}
309 
310  // if angular kinematics, use fixed range
311  int eta_max = 50;
312  int phi_max = 64;
313  int dr_max = 30;
314  if (not m_isLegacyTopo) {
315  eta_max *= 4;
316  phi_max *= 2;
317  dr_max *= 4;
318  }
319 
320  if ( title.find("ETA") != std::string::npos ){
321  xmin_new=-eta_max;
322  xmax_new=eta_max;
323  }
324  if ( title.find("PHI") != std::string::npos || title.find("DPHI") != std::string::npos ){
325  xmin_new=0;
326  xmax_new=phi_max;
327  }
328  if ( title.find("DETA") != std::string::npos || title.find("DR") != std::string::npos ){
329  xmin_new=0;
330  xmax_new=dr_max;
331  }
332 
333  TH1 *h = new TH1F(newName.c_str(), newTitle.c_str(), binx_new, xmin_new, xmax_new);
334  h->GetXaxis()->SetTitle(xTitle.c_str());
335  m_impl->registerHist(h);
336 }

◆ bookHist() [2/2]

void ConfigurableAlg::bookHist ( std::vector< std::string > &  regName,
const std::string &  name,
const std::string &  title,
const int  binx,
const int  xmin,
const int  xmax,
const int  biny,
const int  ymin,
const int  ymax 
)
inherited

Definition at line 347 of file ConfigurableAlg.cxx.

347  {
348  auto usPos = title.find(" vs ");
349  std::string xName = title.substr(0,usPos);
350  std::string yName = title.substr(usPos+4);
351  std::string xmin_str = ToString(xmin);
352  std::string xmax_str = ToString(xmax);
353  std::string ymin_str = ToString(ymin);
354  std::string ymax_str = ToString(ymax);
355  std::string newTitle = title;
356  std::string newName = name;
357 
358  newTitle = xmin_str+xName+xmax_str+" vs "+ymin_str+yName+ymax_str;
359  newName = name+"_"+xmin_str+xName+xmax_str+"_"+ymin_str+yName+ymax_str;
360  std::replace( newName.begin(), newName.end(), '-', 'n');
361  std::replace( newName.begin(), newName.end(), ' ', '_');
362 
363  regName.push_back(m_name+"/"+newName);
364 
365  // Add units to axis labels
366  std::string xTitle = xName;
367  std::string yTitle = yName;
368  if (m_isLegacyTopo) {
369  if (xName == "ETA" || xName == "DETA" || xName == "PHI" || xName == "DPHI" || xName == "DR") { xTitle = xName+"#times10"; }
370  if (xName == "PT" || xName == "ET" || xName == "HT" || xName == "INVM" || xName == "MT") { xTitle = xName+" [GeV]"; }
371 
372  if (yName == "ETA" || yName == "DETA" || yName == "PHI" || yName == "DPHI" || yName == "DR") { yTitle = yName+"#times10"; }
373  if (yName == "PT" || yName == "ET" || yName == "HT" || yName == "INVM" || yName == "MT") { yTitle = yName+" [GeV]"; }
374  }
375  else {
376  if (xName == "ETA" || xName == "DETA" || xName == "DR") { xTitle = xName+"#times40"; }
377  if (xName == "PHI" || xName == "DPHI") { xTitle = xName+"#times20"; }
378  if (xName == "PT" || xName == "ET" || xName == "HT" || xName == "INVM" || xName == "MT") { xTitle = xName+" [100 MeV]"; }
379 
380  if (yName == "ETA" || yName == "DETA" || yName == "DR") { yTitle = yName+"#times40"; }
381  if (yName == "PHI" || yName == "DPHI") { yTitle = yName+"#times20"; }
382  if (yName == "PT" || yName == "ET" || yName == "HT" || yName == "INVM" || yName == "MT") { yTitle = yName+" [100 MeV]"; }
383  }
384 
385  int xmin_new,xmax_new,binx_new=binx;
386  if ( xmin > 0.0)
387  { xmin_new=0.0; }
388  else
389  { xmin_new=1.5*xmin; }
390 
391  // if the maximum inv. mass cut defined by the menu over 4000 MeV,
392  // set x-axis range maximum to 4000 MeV. This is only for legacy triggers,
393  // phase1 does not exceed this limit- asonay 08/2022
394  if (xmax > 4000 && m_isLegacyTopo) {
395  xmax_new = 4000;
396  binx_new = 200;
397  }
398  else {xmax_new = 1.5*xmax;}
399 
400  int ymin_new,ymax_new,biny_new=biny;
401  if ( ymin > 0.0)
402  { ymin_new=0.0; }
403  else
404  { ymin_new=1.5*ymin; }
405 
406  // if the maximum inv. mass cut defined by the menu over 4000 MeV,
407  // set y-axis range maximum to 4000 MeV. This is only for legacy triggers,
408  // phase1 does not exceed this limit- asonay 08/2022
409  if (ymax > 4000 && m_isLegacyTopo) {
410  ymax_new = 4000;
411  biny_new = 200;
412  }
413  else {ymax_new = 1.5*ymax;}
414 
415 
416  // if angular kinematics, use fixed range
417  int eta_max = 50;
418  int phi_max = 64;
419  int dr_max = 30;
420  if (not m_isLegacyTopo) {
421  eta_max *= 4;
422  phi_max *= 2;
423  dr_max *= 4;
424  }
425 
426  if ( xName.find("ETA") != std::string::npos ){
427  xmin_new=-eta_max;
428  xmax_new=eta_max;
429  }
430  if ( yName.find("ETA") != std::string::npos ){
431  ymin_new=-eta_max;
432  ymax_new=eta_max;
433  }
434  if ( xName.find("PHI") != std::string::npos || xName.find("DPHI") != std::string::npos ){
435  xmin_new=0;
436  xmax_new=phi_max;
437  }
438  if ( yName.find("PHI") != std::string::npos || yName.find("DPHI") != std::string::npos ){
439  ymin_new=0;
440  ymax_new=phi_max;
441  }
442  if ( xName.find("DETA") != std::string::npos || xName.find("DR") != std::string::npos ){
443  xmin_new=0;
444  xmax_new=dr_max;
445  }
446  if ( yName.find("DETA") != std::string::npos || yName.find("DR") != std::string::npos ){
447  ymin_new=0;
448  ymax_new=dr_max;
449  }
450 
451  TH2 *h = new TH2F(newName.c_str(), newTitle.c_str(), binx_new, xmin_new, xmax_new, biny_new, ymin_new, ymax_new);
452  h->GetXaxis()->SetTitle(xTitle.c_str());
453  h->GetYaxis()->SetTitle(yTitle.c_str());
454  m_impl->registerHist(h);
455 }

◆ bookHistMult() [1/2]

void ConfigurableAlg::bookHistMult ( std::vector< std::string > &  regName,
const std::string &  name,
const std::string &  title,
const std::string &  xtitle,
const int  binx,
const int  xmin,
const int  xmax 
)
inherited

Definition at line 338 of file ConfigurableAlg.cxx.

338  {
339 
340  regName.push_back(m_name+"/"+name);
341 
342  TH1 *h = new TH1F(name.c_str(), title.c_str(), binx, xmin, xmax);
343  h->GetXaxis()->SetTitle(xtitle.c_str());
344  m_impl->registerHist(h);
345 }

◆ bookHistMult() [2/2]

void ConfigurableAlg::bookHistMult ( std::vector< std::string > &  regName,
const std::string &  name,
const std::string &  title,
const std::string &  xtitle,
const std::string &  ytitle,
const int  binx,
const int  xmin,
const int  xmax,
const int  biny,
const int  ymin,
const int  ymax 
)
inherited

Definition at line 457 of file ConfigurableAlg.cxx.

457  {
458 
459  regName.push_back(m_name+"/"+name);
460 
461  TH2 *h = new TH2F(name.c_str(), title.c_str(), binx, xmin, xmax, biny, ymin, ymax);
462  h->GetXaxis()->SetTitle(xtitle.c_str());
463  h->GetYaxis()->SetTitle(ytitle.c_str());
464  m_impl->registerHist(h);
465 }

◆ calcDeltaEta()

unsigned int ConfigurableAlg::calcDeltaEta ( const TCS::GenericTOB tob1,
const TCS::GenericTOB tob2 
)
inherited

Definition at line 173 of file ConfigurableAlg.cxx.

173  {
174  if (m_isLegacyTopo)
175  {return TSU::Kinematics::calcDeltaEtaLegacy(tob1,tob2);}
176  else
177  {return TSU::Kinematics::calcDeltaEta(tob1,tob2);}
178 }

◆ calcDeltaEtaBW()

unsigned int ConfigurableAlg::calcDeltaEtaBW ( const TCS::GenericTOB tob1,
const TCS::GenericTOB tob2 
)
inherited

Definition at line 128 of file ConfigurableAlg.cxx.

128  {
129  if (m_isLegacyTopo)
130  {return TSU::Kinematics::calcDeltaEtaBWLegacy(tob1,tob2);}
131  else
132  {return TSU::Kinematics::calcDeltaEtaBW(tob1,tob2);}
133 }

◆ calcDeltaPhi()

unsigned int ConfigurableAlg::calcDeltaPhi ( const TCS::GenericTOB tob1,
const TCS::GenericTOB tob2 
)
inherited

Definition at line 165 of file ConfigurableAlg.cxx.

165  {
166  if (m_isLegacyTopo)
167  {return TSU::Kinematics::calcDeltaPhiLegacy(tob1,tob2);}
168  else
169  {return TSU::Kinematics::calcDeltaPhi(tob1,tob2);}
170 }

◆ calcDeltaPhiBW()

unsigned int ConfigurableAlg::calcDeltaPhiBW ( const TCS::GenericTOB tob1,
const TCS::GenericTOB tob2 
)
inherited

Definition at line 120 of file ConfigurableAlg.cxx.

120  {
121  if (m_isLegacyTopo)
122  {return TSU::Kinematics::calcDeltaPhiBWLegacy(tob1,tob2);}
123  else
124  {return TSU::Kinematics::calcDeltaPhiBW(tob1,tob2);}
125 }

◆ calcDeltaR2()

unsigned int ConfigurableAlg::calcDeltaR2 ( const TCS::GenericTOB tob1,
const TCS::GenericTOB tob2 
)
inherited

Definition at line 191 of file ConfigurableAlg.cxx.

191  {
192  if (m_isLegacyTopo)
193  {return TSU::Kinematics::calcDeltaR2Legacy(tob1,tob2);}
194  else
195  {return TSU::Kinematics::calcDeltaR2(tob1,tob2);}
196 }

◆ calcDeltaR2BW()

unsigned int ConfigurableAlg::calcDeltaR2BW ( const TCS::GenericTOB tob1,
const TCS::GenericTOB tob2 
)
inherited

Definition at line 152 of file ConfigurableAlg.cxx.

152  {
153  if (m_isLegacyTopo)
154  {return TSU::Kinematics::calcDeltaR2BWLegacy(tob1,tob2);}
155  else
156  {return TSU::Kinematics::calcDeltaR2BW(tob1,tob2);}
157 }

◆ calcInvMass()

unsigned int ConfigurableAlg::calcInvMass ( const TCS::GenericTOB tob1,
const TCS::GenericTOB tob2 
)
inherited

Definition at line 181 of file ConfigurableAlg.cxx.

181  {
182  return TSU::Kinematics::calcInvMass(tob1,tob2);
183 }

◆ calcInvMassBW()

unsigned int ConfigurableAlg::calcInvMassBW ( const TCS::GenericTOB tob1,
const TCS::GenericTOB tob2 
)
inherited

Definition at line 136 of file ConfigurableAlg.cxx.

136  {
137  if (m_isLegacyTopo)
138  {return TSU::Kinematics::calcInvMassBWLegacy(tob1,tob2);}
139  else
140  {return TSU::Kinematics::calcInvMassBW(tob1,tob2);}
141 }

◆ calcTMass()

unsigned int ConfigurableAlg::calcTMass ( const TCS::GenericTOB tob1,
const TCS::GenericTOB tob2 
)
inherited

Definition at line 186 of file ConfigurableAlg.cxx.

186  {
187  return TSU::Kinematics::calcTMass(tob1,tob2);
188 }

◆ calcTMassBW()

unsigned int ConfigurableAlg::calcTMassBW ( const TCS::GenericTOB tob1,
const TCS::GenericTOB tob2 
)
inherited

Definition at line 144 of file ConfigurableAlg.cxx.

144  {
145  if (m_isLegacyTopo)
146  {return TSU::Kinematics::calcTMassBWLegacy(tob1,tob2);}
147  else
148  {return TSU::Kinematics::calcTMassBW(tob1,tob2);}
149 }

◆ className()

const std::string& TCS::ConfigurableAlg::className ( ) const
inlineinherited

Definition at line 49 of file ConfigurableAlg.h.

49 { return m_className; }

◆ defineParameter() [1/3]

void ConfigurableAlg::defineParameter ( const Parameter parameter)
privateinherited

Definition at line 213 of file ConfigurableAlg.cxx.

213  {
215  TCS_EXCEPTION("Duplicate parameter definition '" << parameter.name() << "' for algorithm '" << name() << "'");
216  }
218 }

◆ defineParameter() [2/3]

void ConfigurableAlg::defineParameter ( const std::string &  name,
TCS::parType_t  value 
)
protectedinherited

Definition at line 201 of file ConfigurableAlg.cxx.

201  {
203 }

◆ defineParameter() [3/3]

void ConfigurableAlg::defineParameter ( const std::string &  name,
TCS::parType_t  value,
unsigned int  selection 
)
protectedinherited

Definition at line 207 of file ConfigurableAlg.cxx.

207  {
209 }

◆ doReset()

TCS::StatusCode DecisionAlg::doReset ( )
privatevirtualinherited

Implements TCS::ConfigurableAlg.

Definition at line 11 of file Trigger/TrigT1/L1Topo/L1TopoInterfaces/Root/DecisionAlg.cxx.

11  {
12  return StatusCode::SUCCESS;
13 }

◆ fillHist1D()

void ConfigurableAlg::fillHist1D ( const std::string &  histName,
double  x 
)
protectedinherited

Definition at line 467 of file ConfigurableAlg.cxx.

467  {
468  m_impl->fillHist1D(histName,x);
469 }

◆ fillHist2D()

void ConfigurableAlg::fillHist2D ( const std::string &  histName,
double  x,
double  y 
)
protectedinherited

Definition at line 471 of file ConfigurableAlg.cxx.

471  {
472  m_impl->fillHist2D(histName,x,y);
473 }

◆ fillHistos()

bool DecisionAlg::fillHistos ( ) const
inherited

whether the monitoring histograms should be filled

Either we are filling based on the simulated decision, or based on the hdw decision with skipHistos==false.

Definition at line 100 of file Trigger/TrigT1/L1Topo/L1TopoInterfaces/Root/DecisionAlg.cxx.

101 {
102  return (not m_fillHistosBasedOnHardware or not m_skipHistos);
103 }

◆ fillHistosBasedOnHardware()

bool DecisionAlg::fillHistosBasedOnHardware ( ) const
inherited

! getter

Definition at line 84 of file Trigger/TrigT1/L1Topo/L1TopoInterfaces/Root/DecisionAlg.cxx.

85 {
87 }

◆ fullname()

std::string TCS::ConfigurableAlg::fullname ( ) const
inlineinherited

Definition at line 50 of file ConfigurableAlg.h.

50 { return m_className + "/" + m_name; }

◆ getDecisionHardwareBit()

bool DecisionAlg::getDecisionHardwareBit ( const unsigned int &  bitNumber) const
inherited

! get one hardware decision bit from this algo

Definition at line 52 of file Trigger/TrigT1/L1Topo/L1TopoInterfaces/Root/DecisionAlg.cxx.

53 {
54  bool value = false;
55  if(bitNumber<m_numberOutputBits){
56  value = (m_hardwareDecisionBits >> bitNumber) & 1;
57  } else {
58  TRG_MSG_WARNING("Cannot get hardware decision bit "<<bitNumber
59  <<" > "<<m_numberOutputBits<<" N output bits "
60  <<" for algo "<<name());
61  }
62  return value;
63 }

◆ getOverflowHardwareBit()

bool DecisionAlg::getOverflowHardwareBit ( const unsigned int &  bitNumber) const
inherited

! get one hardware overflow bit from this algo

Definition at line 65 of file Trigger/TrigT1/L1Topo/L1TopoInterfaces/Root/DecisionAlg.cxx.

66 {
67  bool value = false;
68  if(bitNumber<m_numberOutputBits){
69  value = (m_hardwareOverflowBits >> bitNumber) & 1;
70  } else {
71  TRG_MSG_WARNING("Cannot get hardware overflow bit "<<bitNumber
72  <<" > "<<m_numberOutputBits<<" N output bits "
73  <<" for algo "<<name());
74  }
75  return value;
76 }

◆ initialize()

TCS::StatusCode TCS::AnomalyDetectionBDT::initialize ( )
virtual

Reimplemented from TCS::ConfigurableAlg.

Definition at line 400 of file AnomalyDetectionBDT.cxx.

400  {
401 
402  p_MaxTob = parameter("MaxTob").value();
403  p_minEt1 = parameter("MinET1").value();
404  p_minEt2 = parameter("MinET2").value();
405  for (size_t i=0; i <numberOutputBits(); ++i) {
406  p_ScoreThreshold[i] = parameter("ScoreThreshold", i).value();
407  }
408  TRG_MSG_INFO("ADBDT: Threshold set to " << p_ScoreThreshold);
409  const std::string bdtfn = "TrigAnomalyDetectionBDT/2025-06-18/fwX-config_nomAD_Jun3_2pi200t20d.json";
410 
411  std::string fileLocation;
412 
413  #ifndef TRIGCONF_STANDALONE
414  fileLocation = PathResolver::find_calib_file(bdtfn);
415  #else
416  return StatusCode::SUCCESS;
417  #endif
418  // Reading in the config
419  std::ifstream configFile(fileLocation);
420 
421  if (!configFile.is_open()) {
422  TRG_MSG_ERROR("Unable to open BDT configuration file." << fileLocation);
423  return StatusCode::FAILURE;
424  }
425 
426  nlohmann::json bdt_config; // BDT configuration
428  m_nVar = bdt_config["nDim"];
429  m_mu1_ptmin = bdt_config["variable_float_ranges"]["flat_dimu_mu1_pt_100MeV"]["min"];
430  m_mu1_ptmax = bdt_config["variable_float_ranges"]["flat_dimu_mu1_pt_100MeV"]["max"];
431  m_mu1_etamin = bdt_config["variable_float_ranges"]["flat_dimu_mu1_eta"]["min"];
432  m_mu1_etamax = bdt_config["variable_float_ranges"]["flat_dimu_mu1_eta"]["max"];
433  m_mu1_phimin = bdt_config["variable_float_ranges"]["flat_dimu_mu1_phi_2pi"]["min"];
434  m_mu1_phimax = bdt_config["variable_float_ranges"]["flat_dimu_mu1_phi_2pi"]["max"];
435  m_mu2_ptmin = bdt_config["variable_float_ranges"]["flat_dimu_mu2_pt_100MeV"]["min"];
436  m_mu2_ptmax = bdt_config["variable_float_ranges"]["flat_dimu_mu2_pt_100MeV"]["max"];
437  m_mu2_etamin = bdt_config["variable_float_ranges"]["flat_dimu_mu2_eta"]["min"];
438  m_mu2_etamax = bdt_config["variable_float_ranges"]["flat_dimu_mu2_eta"]["max"];
439  m_mu2_phimin = bdt_config["variable_float_ranges"]["flat_dimu_mu2_phi_2pi"]["min"];
440  m_mu2_phimax = bdt_config["variable_float_ranges"]["flat_dimu_mu2_phi_2pi"]["max"];
441 
442  for (auto& [treeName, tree] : bdt_config["trees"].items()) {
443  Tree t = Tree(tree, m_nVar);
444  m_trees.push_back(t);
445  }
446 
447  TRG_MSG_DEBUG("In initialize. There are " << m_trees.size() << " trees for AnomalyDetectionBDT.");
448 
449  //Setting simulation mode.
450  //This can be set to "lut" or to "math"
451  //"lut" mimics exactly what is done in firmware
452  m_sim_mode = "lut";
453  TRG_MSG_INFO("The sim_mode is " << m_sim_mode);
454 
455  //Booking histograms
456  for (size_t i=0; i<numberOutputBits(); ++i) {
457  std::string hname_accept = "hAnomalyDetecionBDT_accept_bit"+std::to_string((int)i);
458  std::string hname_reject = "hAnomalyDetecionBDT_reject_bit"+std::to_string((int)i);
459 
460  bookHist(m_histAccept, hname_accept, "AnomalyScore", 100, 0, 128);
461  bookHist(m_histReject, hname_reject, "AnomalyScore", 100, 0, 128);
462  }
463  return StatusCode::SUCCESS;
464 }

◆ isCountingAlg()

bool TCS::ConfigurableAlg::isCountingAlg ( ) const
inlineinherited

Definition at line 64 of file ConfigurableAlg.h.

64 { return m_algType == COUNT; }

◆ isDecisionAlg()

bool TCS::ConfigurableAlg::isDecisionAlg ( ) const
inlineinherited

Definition at line 62 of file ConfigurableAlg.h.

62 { return m_algType == DECISION; }

◆ isLegacyTopo()

bool TCS::ConfigurableAlg::isLegacyTopo ( ) const
inlineinherited

Definition at line 66 of file ConfigurableAlg.h.

66 { return m_isLegacyTopo; }

◆ isocut() [1/2]

bool ConfigurableAlg::isocut ( const std::string &  threshold,
const unsigned int  bit 
) const
protectedinherited

Definition at line 484 of file ConfigurableAlg.cxx.

484  {
485  unsigned int value = 0;
486  if (threshold == "None") {value = 0;}
487  else if (threshold == "Loose") {value = 1;}
488  else if (threshold == "Medium") {value = 2;}
489  else if (threshold == "HadMedium") {value = 2;}
490  else if (threshold == "Tight") {value = 3;}
491  else {
492  TRG_MSG_WARNING("No isolation defined as " << threshold);
493  }
494 
495  if (bit >= value) {return true;}
496  else {return false;}
497 }

◆ isocut() [2/2]

bool ConfigurableAlg::isocut ( const unsigned int  threshold,
const unsigned int  bit 
) const
protectedinherited

Definition at line 500 of file ConfigurableAlg.cxx.

500  {
501  if (bit >= threshold) {return true;}
502  else {return false;}
503 }

◆ isSortingAlg()

bool TCS::ConfigurableAlg::isSortingAlg ( ) const
inlineinherited

Definition at line 60 of file ConfigurableAlg.h.

60 { return m_algType == SORT; }

◆ msg() [1/2]

MsgStreamTC & TrigConf::TrigConfMessaging::msg ( ) const
inlineinherited

The standard message stream.

Returns a reference to the message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 81 of file TrigConfMessaging.h.

82  {
83  MsgStreamTC* ms = m_msg_tls.get();
84  if (!ms) {
85  ms = new MsgStreamTC(m_name);
86  m_msg_tls.reset(ms);
87  }
88  return *ms;
89  }

◆ msg() [2/2]

MsgStreamTC & TrigConf::TrigConfMessaging::msg ( const MSGTC::Level  lvl) const
inlineinherited

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 91 of file TrigConfMessaging.h.

92  {
93  return msg() << lvl;
94  }

◆ msgLvl()

bool TrigConf::TrigConfMessaging::msgLvl ( const MSGTC::Level  lvl) const
inlineinherited

Test the output level.

Parameters
lvlThe message level to test against
Returns
boolean Indicting if messages at given level will be printed
Return values
trueMessages at level "lvl" will be printed

Definition at line 70 of file TrigConfMessaging.h.

71  {
72  if (msg().level() <= lvl) {
73  msg() << lvl;
74  return true;
75  }
76  else {
77  return false;
78  }
79  }

◆ name()

const std::string& TCS::ConfigurableAlg::name ( ) const
inlineinherited

Definition at line 48 of file ConfigurableAlg.h.

48 { return m_name; }

◆ numberOutputBits()

unsigned int TCS::DecisionAlg::numberOutputBits ( ) const
inlineinherited

◆ parameter() [1/2]

const TCS::Parameter & ConfigurableAlg::parameter ( const std::string &  parameterName) const
inherited

Definition at line 243 of file ConfigurableAlg.cxx.

243  {
244  return parameters().parameter(parameterName);
245 }

◆ parameter() [2/2]

const TCS::Parameter & ConfigurableAlg::parameter ( const std::string &  parameterName,
unsigned int  selection 
) const
inherited

Definition at line 249 of file ConfigurableAlg.cxx.

249  {
250  return parameters().parameter(parameterName, selection);
251 }

◆ parameters()

const ParameterSpace& TCS::ConfigurableAlg::parameters ( ) const
inlineinherited

Definition at line 87 of file ConfigurableAlg.h.

87 { return m_parameters; }

◆ process()

TCS::StatusCode TCS::AnomalyDetectionBDT::process ( const std::vector< TCS::TOBArray const * > &  input,
const std::vector< TCS::TOBArray * > &  output,
Decision decision 
)
virtual

Implements TCS::DecisionAlg.

Definition at line 616 of file AnomalyDetectionBDT.cxx.

618  {
619 #ifdef TRIGCONF_STANDALONE
620  return StatusCode::SUCCESS;
621 #endif
622  TCS::StatusCode status = processBitCorrect(input,output,decision);
623  if (!status.isSuccess()){
624  return status;
625  }
626 
627  // Check if totalScore exceeds the bits that we expect
628  if (m_totalScore >= (1L << 8)) {
629  TRG_MSG_WARNING("ADBDT:The calculated anomaly score exceeds the allowed number of bits.");
630  }
631 
633 }

◆ processBitCorrect()

TCS::StatusCode TCS::AnomalyDetectionBDT::processBitCorrect ( const std::vector< TCS::TOBArray const * > &  input,
const std::vector< TCS::TOBArray * > &  output,
Decision decision 
)
virtual

Implements TCS::DecisionAlg.

Definition at line 467 of file AnomalyDetectionBDT.cxx.

469  {
470 
471  if (input.size() != 1){
472  TCS_EXCEPTION("ADBDT algorithm expects only one TOBArray input (muons), but got " << input.size());
473  }
474 
475  const TCS::TOBArray* muons = input[0];
476 
477  //Reading in number of muons:
478  TRG_MSG_DEBUG("There are " << muons->size() << " muons.");
479 
480  if (muons->size() < 2) {
481  TRG_MSG_DEBUG("There are less than 2 muons. Skipping event.");
482  m_totalScore = 0;
483  return StatusCode::SUCCESS;
484  }
485 
486  bool hasAmbiguousInputs = TSU::isAmbiguousAnywhere(muons, p_MaxTob, std::min(p_minEt1, p_minEt2));
487 
488  int64_t maxScore = 0;
489 
490  size_t nMuons = p_MaxTob > 0 ? std::min(muons->size(), p_MaxTob) : muons->size();
491  //We define muon pairs based on the 2-3 leading muons
492  std::vector<std::pair<int, int>> muonPairs;
493  for (size_t i = 0; i < nMuons; ++i) {
494  for (size_t j = i+1; j < nMuons; ++j) {
495  muonPairs.emplace_back(i, j);
496  }
497  }
498 
499  for (const auto& [i,j] : muonPairs) {
500 
501  std::vector<int64_t> eventValues;
502 
503  const auto& mu1 = (*muons)[i];
504  const auto& mu2 = (*muons)[j];
505 
506  //ignore combinations failing minET cuts
507  if ( parType_t( mu1.Et() ) <= p_minEt1 ) continue;
508  if ( parType_t( mu2.Et() ) <= p_minEt2 ) continue;
509 
510  if (scale(mu1.Et(),m_mu1_ptmin, m_mu1_ptmax) != mapval(mu1.Et(), "pt")
511  || scale(mu1.eta()/40.0, m_mu1_etamin, m_mu1_etamax) != mapval(mu1.eta(), "eta")
512  || scale(mu1.phi()/20.0, m_mu1_phimin, m_mu1_phimax) != mapval(mu1.phi(), "phi")
513  || scale(mu2.Et(),m_mu2_ptmin, m_mu2_ptmax) != mapval(mu2.Et(), "pt")
514  || scale(mu2.eta()/40.0, m_mu2_etamin, m_mu2_etamax) != mapval(mu2.eta(), "eta")
515  || scale(mu2.phi()/20.0, m_mu2_phimin, m_mu2_phimax) != mapval(mu2.phi(), "phi")){
516 
517  TRG_MSG_WARNING("The math function for the mapping of Muon pt,eta,or phi does not match the LUT mapping. Check LUT, 'scale' function, or if illegal vartype was given to 'mapval' function");
518 
519  }
520 
521  if (mapval(mu1.Et(), "pt") == int(mu1.Et()) || mapval(mu2.Et(), "pt") == int(mu2.Et())) {
522 
523  TRG_MSG_WARNING("No input transformation done by LUT for muon ET");
524 
525  }
526 
527  if (mapval(mu1.eta(), "eta") == mu1.eta() || mapval(mu2.eta(), "eta") == mu2.eta()) {
528 
529  TRG_MSG_WARNING("No input transformation done by LUT for muon Eta");
530 
531  }
532 
533  if (mapval(mu1.phi(), "phi") == mu1.phi() || mapval(mu2.phi(), "phi") == mu2.phi()) {
534 
535 
536  TRG_MSG_DEBUG("No input transformation done by LUT for muon Phi"); //Not a warning, since current transformation for phi
537  //does not change the value except for one input number
538  }
539 
540  if (m_sim_mode == "math"){
541  eventValues.push_back(scale(mu1.Et(), m_mu1_ptmin, m_mu1_ptmax)); // muon pT (100MeV)
542  eventValues.push_back(scale(mu1.eta()/40.0, m_mu1_etamin, m_mu1_etamax)); // muon eta (25mrad)
543  eventValues.push_back(scale(mu1.phi()/20.0, m_mu1_phimin, m_mu1_phimax)); // muon phi (50mrad)
544 
545  eventValues.push_back(scale(mu2.Et(), m_mu2_ptmin, m_mu2_ptmax)); // muon pT (100MeV)
546  eventValues.push_back(scale(mu2.eta()/40.0, m_mu2_etamin, m_mu2_etamax)); // muon eta (25mrad)
547  eventValues.push_back(scale(mu2.phi()/20.0, m_mu2_phimin, m_mu2_phimax)); // muon phi (50mrad)
548  }
549 
550  else if(m_sim_mode == "lut"){
551  eventValues.push_back(mapval(mu1.Et(), "pt"));
552  eventValues.push_back(mapval(mu1.eta(), "eta"));
553  eventValues.push_back(mapval(mu1.phi(), "phi"));
554 
555  eventValues.push_back(mapval(mu2.Et(), "pt"));
556  eventValues.push_back(mapval(mu2.eta(), "eta"));
557  eventValues.push_back(mapval(mu2.phi(), "phi"));
558  }
559 
560  else{
561  eventValues.push_back(scale(mu1.Et(), m_mu1_ptmin, m_mu1_ptmax)); // muon pT (100MeV)
562  eventValues.push_back(scale(mu1.eta()/40.0, m_mu1_etamin, m_mu1_etamax)); // muon eta (25mrad)
563  eventValues.push_back(scale(mu1.phi()/20.0, m_mu1_phimin, m_mu1_phimax)); // muon phi (50mrad)
564 
565  eventValues.push_back(scale(mu2.Et(), m_mu2_ptmin, m_mu2_ptmax)); // muon pT (100MeV)
566  eventValues.push_back(scale(mu2.eta()/40.0, m_mu2_etamin, m_mu2_etamax)); // muon eta (25mrad)
567  eventValues.push_back(scale(mu2.phi()/20.0, m_mu2_phimin, m_mu2_phimax)); // muon phi (50mrad)
568  }
569 
570  // calculate the score as sum of score from all trees
571  int64_t score = 0;
572  for (Tree tree : m_trees) {
573  score += tree.getTreeScore(eventValues);
574  }
575 
576  // from all muon combinations keep the highest score
577  if (score > maxScore) {
578  maxScore = score;
579  }
580  }
581 
582  m_totalScore = maxScore;
583  TRG_MSG_DEBUG("Anomaly Score = " << m_totalScore);
584 
585  //Now, we compare and set the decision bit:
586  for (size_t i=0; i<numberOutputBits(); ++i){
587  bool accept = false;
588  // const bool fillAccept = fillHistos() && (fillHistosBasedOnHardware() ? getDecisionHardwareBit(i) : accept);
589  // const bool fillReject = fillHistos() && !fillAccept;
590  // const bool alreadyFilled = decision.bit(i);
591 
593  accept = true;
594  decision.setBit(i,true);
595  for (size_t k = 0; k < 3 && k < muons->size(); ++k){
596  output[i]->push_back((*muons)[k]);
597  }
598  }
599 
600  output[i]->setAmbiguityFlag(hasAmbiguousInputs);
601 
602  if(fillHistos()) {
603  const bool fillAccept = fillHistosBasedOnHardware() ? getDecisionHardwareBit(i) : accept;
604  if (fillAccept) {
606  } else {
608  }
609  }
610 
611  TRG_MSG_DEBUG("Decision for bit " << i << ": " <<(accept?"pass":"fail") << "with an anomaly score = " << m_totalScore << std::endl);
612  }
613  return StatusCode::SUCCESS;
614 }

◆ quadraticSumBW()

unsigned long ConfigurableAlg::quadraticSumBW ( int  i1,
int  i2 
)
inherited

Definition at line 160 of file ConfigurableAlg.cxx.

160  {
161  return TSU::Kinematics::quadraticSumBW(i1, i2);
162 }

◆ registerHist() [1/2]

void ConfigurableAlg::registerHist ( TH1 *  h)
protectedinherited

Definition at line 262 of file ConfigurableAlg.cxx.

262  {
263  m_impl->registerHist(h);
264 }

◆ registerHist() [2/2]

void ConfigurableAlg::registerHist ( TH2 *  h)
protectedinherited

Definition at line 266 of file ConfigurableAlg.cxx.

266  {
267  m_impl->registerHist(h);
268 }

◆ reset()

StatusCode TCS::ConfigurableAlg::reset ( )
inlineinherited

Definition at line 58 of file ConfigurableAlg.h.

58 { return doReset(); }

◆ resetHardwareBits()

TCS::DecisionAlg & DecisionAlg::resetHardwareBits ( )
inherited

! reset all hardware bits for this algo

Definition at line 45 of file Trigger/TrigT1/L1Topo/L1TopoInterfaces/Root/DecisionAlg.cxx.

46 {
49  return *this;
50 }

◆ setAlgoId()

void TCS::ConfigurableAlg::setAlgoId ( unsigned int  algoId)
inlineinherited

Definition at line 93 of file ConfigurableAlg.h.

93 { m_algoId = algoId; }

◆ setClassName()

void TCS::ConfigurableAlg::setClassName ( const std::string &  className)
inlineinherited

Definition at line 43 of file ConfigurableAlg.h.

◆ setFillHistosBasedOnHardware()

TCS::DecisionAlg & DecisionAlg::setFillHistosBasedOnHardware ( const bool &  value)
inherited

! toggle m_fillHistosBasedOnHardware

Definition at line 78 of file Trigger/TrigT1/L1Topo/L1TopoInterfaces/Root/DecisionAlg.cxx.

79 {
81  return *this;
82 }

◆ setHardwareBits()

TCS::DecisionAlg & DecisionAlg::setHardwareBits ( const unsigned int &  bitNumber,
const bool &  valueDecision,
const bool &  valueOverflow 
)
inherited

propagate the hardware decision bits for each output bit of this algo

These bits are used only to fill the monitoring histograms. They do not have any use in the L1TopoSimulation itself.

Definition at line 25 of file Trigger/TrigT1/L1Topo/L1TopoInterfaces/Root/DecisionAlg.cxx.

28 {
29  if(bitNumber<m_numberOutputBits){
30  if(valueDecision)
31  m_hardwareDecisionBits |= (1 << bitNumber);
32  if(valueOverflow)
33  m_hardwareOverflowBits |= (1 << bitNumber);
34  } else if(bitNumber<32) {
35  TRG_MSG_WARNING("Cannot set hardware bits for bit number "<<bitNumber
36  <<" > "<<m_numberOutputBits<<" N output bits "
37  <<" for algo "<<name());
38  } else {
39  TRG_MSG_WARNING("Cannot set hardware bits for bit number "<<bitNumber
40  <<" > 31 N output bits for algo "<<name());
41  }
42  return *this;
43 }

◆ setL1TopoHistSvc()

void ConfigurableAlg::setL1TopoHistSvc ( std::shared_ptr< IL1TopoHistSvc histSvc)
inherited

sets the external hist service

forwarding public interface

Definition at line 258 of file ConfigurableAlg.cxx.

258  {
259  m_impl->setL1TopoHistSvc(histSvc);
260 }

◆ setLegacyMode()

void TCS::ConfigurableAlg::setLegacyMode ( bool  isLegacyTopo)
inlineinherited

Definition at line 45 of file ConfigurableAlg.h.

◆ setNumberOutputBits()

void TCS::DecisionAlg::setNumberOutputBits ( unsigned int  numberOutputBits)
inlineinherited

◆ setParameters()

void ConfigurableAlg::setParameters ( const ParameterSpace parameters)
inherited

Definition at line 222 of file ConfigurableAlg.cxx.

222  {
223 
224  // check if parameterspace is for this algorithm
225  if(name() != parameters.algName()) {
226  TCS_EXCEPTION("Name of parameter set (" << parameters.algName() << ") do not match configurable name (" << name() << ")" );
227  }
228 
229  // copy parameters
230  for(const Parameter & p : parameters) {
231  try {
233  }
234  catch(const TCS::Exception& e) {
235  TCS_EXCEPTION("Algorithm configuration failed for " << name() << "! Caught exception: " << e.what());
236  }
237  }
238 }

◆ setSkipHistos()

TCS::DecisionAlg & DecisionAlg::setSkipHistos ( const bool &  value)
inherited

! toggle m_skipHistos (see TopoSteering::setOutputAlgosSkipHistograms)

Definition at line 89 of file Trigger/TrigT1/L1Topo/L1TopoInterfaces/Root/DecisionAlg.cxx.

90 {
92  return *this;
93 }

◆ skipHistos()

bool DecisionAlg::skipHistos ( ) const
inherited

! getter

Definition at line 95 of file Trigger/TrigT1/L1Topo/L1TopoInterfaces/Root/DecisionAlg.cxx.

96 {
97  return m_skipHistos;
98 }

◆ ToString()

std::string ConfigurableAlg::ToString ( const int  val)
privateinherited

Definition at line 475 of file ConfigurableAlg.cxx.

476 {
477  const int val_int = static_cast<int>(val);
478  std::ostringstream temp;
479  temp << val_int;
480  return temp.str();
481 }

Member Data Documentation

◆ m_algoId

unsigned int TCS::ConfigurableAlg::m_algoId {0}
privateinherited

Definition at line 138 of file ConfigurableAlg.h.

◆ m_algType

AlgType TCS::ConfigurableAlg::m_algType
privateinherited

Definition at line 142 of file ConfigurableAlg.h.

◆ m_className

std::string TCS::ConfigurableAlg::m_className {""}
privateinherited

Definition at line 135 of file ConfigurableAlg.h.

◆ m_fillHistosBasedOnHardware

bool TCS::DecisionAlg::m_fillHistosBasedOnHardware {0}
privateinherited

! fill accept/reject monitoring histos based on hdw decision

Definition at line 100 of file Trigger/TrigT1/L1Topo/L1TopoInterfaces/L1TopoInterfaces/DecisionAlg.h.

◆ m_hardwareDecisionBits

uint32_t TCS::DecisionAlg::m_hardwareDecisionBits {0}
privateinherited

! decision bits from hardware (assume the algo won't have >31 output bits)

Definition at line 96 of file Trigger/TrigT1/L1Topo/L1TopoInterfaces/L1TopoInterfaces/DecisionAlg.h.

◆ m_hardwareOverflowBits

uint32_t TCS::DecisionAlg::m_hardwareOverflowBits {0}
privateinherited

! overflow bits from hardware (assume the algo won't have >31 output bits)

Definition at line 98 of file Trigger/TrigT1/L1Topo/L1TopoInterfaces/L1TopoInterfaces/DecisionAlg.h.

◆ m_histAccept

std::vector<std::string> TCS::DecisionAlg::m_histAccept
protectedinherited

◆ m_histAcceptEta1Eta2

std::vector<std::string> TCS::DecisionAlg::m_histAcceptEta1Eta2
protectedinherited

◆ m_histAcceptEta2Eta3

std::vector<std::string> TCS::DecisionAlg::m_histAcceptEta2Eta3
protectedinherited

◆ m_histAcceptEta3Eta1

std::vector<std::string> TCS::DecisionAlg::m_histAcceptEta3Eta1
protectedinherited

◆ m_histAcceptM

std::vector<std::string> TCS::DecisionAlg::m_histAcceptM
protectedinherited

◆ m_histAcceptX

std::vector<std::string> TCS::DecisionAlg::m_histAcceptX
protectedinherited

◆ m_histReject

std::vector<std::string> TCS::DecisionAlg::m_histReject
protectedinherited

◆ m_histRejectEta1Eta2

std::vector<std::string> TCS::DecisionAlg::m_histRejectEta1Eta2
protectedinherited

◆ m_histRejectEta2Eta3

std::vector<std::string> TCS::DecisionAlg::m_histRejectEta2Eta3
protectedinherited

◆ m_histRejectEta3Eta1

std::vector<std::string> TCS::DecisionAlg::m_histRejectEta3Eta1
protectedinherited

◆ m_histRejectM

std::vector<std::string> TCS::DecisionAlg::m_histRejectM
protectedinherited

◆ m_histRejectX

std::vector<std::string> TCS::DecisionAlg::m_histRejectX
protectedinherited

◆ m_impl

std::unique_ptr<ConfigurableAlgImpl> TCS::ConfigurableAlg::m_impl
privateinherited

Definition at line 129 of file ConfigurableAlg.h.

◆ m_isLegacyTopo

bool TCS::ConfigurableAlg::m_isLegacyTopo
privateinherited

Definition at line 144 of file ConfigurableAlg.h.

◆ m_msg_tls

boost::thread_specific_ptr<MsgStreamTC> TrigConf::TrigConfMessaging::m_msg_tls
mutableprivateinherited

MsgStreamTC instance (a std::cout like with print-out levels)

Definition at line 66 of file TrigConfMessaging.h.

◆ m_mu1_etamax

float TCS::AnomalyDetectionBDT::m_mu1_etamax {0}
private

Definition at line 68 of file AnomalyDetectionBDT.h.

◆ m_mu1_etamin

float TCS::AnomalyDetectionBDT::m_mu1_etamin {0}
private

Definition at line 68 of file AnomalyDetectionBDT.h.

◆ m_mu1_phimax

float TCS::AnomalyDetectionBDT::m_mu1_phimax {0}
private

Definition at line 68 of file AnomalyDetectionBDT.h.

◆ m_mu1_phimin

float TCS::AnomalyDetectionBDT::m_mu1_phimin {0}
private

Definition at line 68 of file AnomalyDetectionBDT.h.

◆ m_mu1_ptmax

float TCS::AnomalyDetectionBDT::m_mu1_ptmax {0}
private

Definition at line 68 of file AnomalyDetectionBDT.h.

◆ m_mu1_ptmin

float TCS::AnomalyDetectionBDT::m_mu1_ptmin {0}
private

Definition at line 68 of file AnomalyDetectionBDT.h.

◆ m_mu2_etamax

float TCS::AnomalyDetectionBDT::m_mu2_etamax {0}
private

Definition at line 69 of file AnomalyDetectionBDT.h.

◆ m_mu2_etamin

float TCS::AnomalyDetectionBDT::m_mu2_etamin {0}
private

Definition at line 69 of file AnomalyDetectionBDT.h.

◆ m_mu2_phimax

float TCS::AnomalyDetectionBDT::m_mu2_phimax {0}
private

Definition at line 69 of file AnomalyDetectionBDT.h.

◆ m_mu2_phimin

float TCS::AnomalyDetectionBDT::m_mu2_phimin {0}
private

Definition at line 69 of file AnomalyDetectionBDT.h.

◆ m_mu2_ptmax

float TCS::AnomalyDetectionBDT::m_mu2_ptmax {0}
private

Definition at line 69 of file AnomalyDetectionBDT.h.

◆ m_mu2_ptmin

float TCS::AnomalyDetectionBDT::m_mu2_ptmin {0}
private

Definition at line 69 of file AnomalyDetectionBDT.h.

◆ m_name

std::string TCS::ConfigurableAlg::m_name {""}
privateinherited

Definition at line 134 of file ConfigurableAlg.h.

◆ m_numberOutputBits

unsigned int TCS::DecisionAlg::m_numberOutputBits {1}
privateinherited

◆ m_nVar

int TCS::AnomalyDetectionBDT::m_nVar {0}
private

Definition at line 66 of file AnomalyDetectionBDT.h.

◆ m_parameters

ParameterSpace TCS::ConfigurableAlg::m_parameters {""}
privateinherited

Definition at line 140 of file ConfigurableAlg.h.

◆ m_sim_mode

std::string TCS::AnomalyDetectionBDT::m_sim_mode
private

Definition at line 70 of file AnomalyDetectionBDT.h.

◆ m_skipHistos

bool TCS::DecisionAlg::m_skipHistos {0}
privateinherited

! skip filling monitoring histos, used only when m_fillHistosBasedOnHardware==true

Definition at line 102 of file Trigger/TrigT1/L1Topo/L1TopoInterfaces/L1TopoInterfaces/DecisionAlg.h.

◆ m_totalScore

int64_t TCS::AnomalyDetectionBDT::m_totalScore {0}
private

Definition at line 67 of file AnomalyDetectionBDT.h.

◆ m_trees

std::vector<Tree> TCS::AnomalyDetectionBDT::m_trees
private

Definition at line 65 of file AnomalyDetectionBDT.h.

◆ p_MaxTob

size_t TCS::AnomalyDetectionBDT::p_MaxTob {3}
private

Definition at line 74 of file AnomalyDetectionBDT.h.

◆ p_minEt1

parType_t TCS::AnomalyDetectionBDT::p_minEt1 {0}
private

Definition at line 72 of file AnomalyDetectionBDT.h.

◆ p_minEt2

parType_t TCS::AnomalyDetectionBDT::p_minEt2 {0}
private

Definition at line 73 of file AnomalyDetectionBDT.h.

◆ p_ScoreThreshold

parType_t TCS::AnomalyDetectionBDT::p_ScoreThreshold[2] = { 0, 0 }
private

Definition at line 71 of file AnomalyDetectionBDT.h.


The documentation for this class was generated from the following files:
TCS::ConfigurableAlg::SORT
@ SORT
Definition: ConfigurableAlg.h:32
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
TRG_MSG_ERROR
#define TRG_MSG_ERROR(x)
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStreamMacros.h:29
PathResolver::find_calib_file
static std::string find_calib_file(const std::string &logical_file_name)
Definition: PathResolver.cxx:235
replace
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition: hcg.cxx:307
temp
Definition: JetEventDict.h:21
TSU::Kinematics::calcTMassBW
static unsigned int calcTMassBW(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:122
TCS::ConfigurableAlg::className
const std::string & className() const
Definition: ConfigurableAlg.h:49
TCS::Parameter
Definition: Parameter.h:24
TSU::Kinematics::calcDeltaR2BWLegacy
static unsigned int calcDeltaR2BWLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:62
ymin
double ymin
Definition: listroot.cxx:63
TSU::Kinematics::calcInvMass
static unsigned int calcInvMass(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:244
TSU::Kinematics::calcTMass
static unsigned int calcTMass(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:256
TCS::StatusCode::SUCCESS
@ SUCCESS
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:17
TCS::ParameterSpace::parameter
const Parameter & parameter(const std::string &parameterName) const
Definition: ParameterSpace.cxx:101
TSU::Kinematics::calcDeltaPhiBW
static unsigned int calcDeltaPhiBW(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:82
taskman.configFile
configFile
Definition: taskman.py:310
TCS::ConfigurableAlg::m_name
std::string m_name
Definition: ConfigurableAlg.h:134
TCS::AnomalyDetectionBDT::p_minEt1
parType_t p_minEt1
Definition: AnomalyDetectionBDT.h:72
TCS::parType_t
uint32_t parType_t
Definition: Parameter.h:22
AddEmptyComponent.histName
string histName
Definition: AddEmptyComponent.py:64
TCS::ConfigurableAlg::parameters
const ParameterSpace & parameters() const
Definition: ConfigurableAlg.h:87
TCS::ParameterSpace::addParameter
ParameterSpace & addParameter(const Parameter &p)
Definition: ParameterSpace.cxx:29
Tree
Definition: Tree.h:18
TrigConf::TrigConfMessaging::m_msg_tls
boost::thread_specific_ptr< MsgStreamTC > m_msg_tls
MsgStreamTC instance (a std::cout like with print-out levels)
Definition: TrigConfMessaging.h:66
TCS::StatusCode::FAILURE
@ FAILURE
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:17
json
nlohmann::json json
Definition: HistogramDef.cxx:9
TCS::ConfigurableAlg::m_impl
std::unique_ptr< ConfigurableAlgImpl > m_impl
Definition: ConfigurableAlg.h:128
TCS::DecisionAlg::m_fillHistosBasedOnHardware
bool m_fillHistosBasedOnHardware
! fill accept/reject monitoring histos based on hdw decision
Definition: Trigger/TrigT1/L1Topo/L1TopoInterfaces/L1TopoInterfaces/DecisionAlg.h:100
TCS::AnomalyDetectionBDT::m_mu2_ptmin
float m_mu2_ptmin
Definition: AnomalyDetectionBDT.h:69
TCS::DecisionAlg::DecisionAlg
DecisionAlg(const std::string &name)
Definition: Trigger/TrigT1/L1Topo/L1TopoInterfaces/L1TopoInterfaces/DecisionAlg.h:25
TCS::Parameter::name
const std::string & name() const
Definition: Parameter.h:33
TCS::AnomalyDetectionBDT::m_mu2_phimax
float m_mu2_phimax
Definition: AnomalyDetectionBDT.h:69
min
constexpr double min()
Definition: ap_fixedTest.cxx:26
CutsMETMaker::accept
StatusCode accept(const xAOD::Muon *mu)
Definition: CutsMETMaker.cxx:18
tree
TChain * tree
Definition: tile_monitor.h:30
TCS::ConfigurableAlg::ToString
std::string ToString(const int val)
Definition: ConfigurableAlg.cxx:475
TCS::ConfigurableAlg::isLegacyTopo
bool isLegacyTopo() const
Definition: ConfigurableAlg.h:66
TCS::AnomalyDetectionBDT::m_mu1_etamin
float m_mu1_etamin
Definition: AnomalyDetectionBDT.h:68
TCS::DecisionAlg::fillHistosBasedOnHardware
bool fillHistosBasedOnHardware() const
! getter
Definition: Trigger/TrigT1/L1Topo/L1TopoInterfaces/Root/DecisionAlg.cxx:84
TSU::Kinematics::calcDeltaPhi
static unsigned int calcDeltaPhi(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:231
athena.value
value
Definition: athena.py:124
TSU::Kinematics::calcInvMassBWLegacy
static unsigned int calcInvMassBWLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:34
TCS::DecisionAlg::numberOutputBits
unsigned int numberOutputBits() const
Definition: Trigger/TrigT1/L1Topo/L1TopoInterfaces/L1TopoInterfaces/DecisionAlg.h:39
TSU::Kinematics::calcDeltaEtaBWLegacy
static unsigned int calcDeltaEtaBWLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:29
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TSU::Kinematics::calcDeltaR2BW
static unsigned int calcDeltaR2BW(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:131
yodamerge_tmp.scale
scale
Definition: yodamerge_tmp.py:138
python.TrigEgammaMonitorHelper.TH2F
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:45
x
#define x
TCS::AnomalyDetectionBDT::m_mu2_etamax
float m_mu2_etamax
Definition: AnomalyDetectionBDT.h:69
TCS::AnomalyDetectionBDT::m_mu1_ptmin
float m_mu1_ptmin
Definition: AnomalyDetectionBDT.h:68
TCS::AnomalyDetectionBDT::p_MaxTob
size_t p_MaxTob
Definition: AnomalyDetectionBDT.h:74
TCS::ConfigurableAlg::parameter
const Parameter & parameter(const std::string &parameterName) const
Definition: ConfigurableAlg.cxx:243
TCS::DecisionAlg::m_histReject
std::vector< std::string > m_histReject
Definition: Trigger/TrigT1/L1Topo/L1TopoInterfaces/L1TopoInterfaces/DecisionAlg.h:74
TSU::Kinematics::calcDeltaEtaBW
static unsigned int calcDeltaEtaBW(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:92
TCS::AnomalyDetectionBDT::m_sim_mode
std::string m_sim_mode
Definition: AnomalyDetectionBDT.h:70
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
TSU::Kinematics::calcDeltaR2Legacy
static unsigned int calcDeltaR2Legacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:222
TCS::Parameter::selection
unsigned int selection() const
Definition: Parameter.h:34
TCS::AnomalyDetectionBDT::m_mu1_ptmax
float m_mu1_ptmax
Definition: AnomalyDetectionBDT.h:68
TCS::AnomalyDetectionBDT::p_minEt2
parType_t p_minEt2
Definition: AnomalyDetectionBDT.h:73
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
TCS::DecisionAlg::getDecisionHardwareBit
bool getDecisionHardwareBit(const unsigned int &bitNumber) const
! get one hardware decision bit from this algo
Definition: Trigger/TrigT1/L1Topo/L1TopoInterfaces/Root/DecisionAlg.cxx:52
TSU::Kinematics::calcDeltaR2
static unsigned int calcDeltaR2(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:266
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
TCS::ConfigurableAlg::m_isLegacyTopo
bool m_isLegacyTopo
Definition: ConfigurableAlg.h:144
TCS::AnomalyDetectionBDT::m_mu2_phimin
float m_mu2_phimin
Definition: AnomalyDetectionBDT.h:69
TSU::Kinematics::calcDeltaPhiBWLegacy
static unsigned int calcDeltaPhiBWLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:19
TCS::AnomalyDetectionBDT::processBitCorrect
virtual StatusCode processBitCorrect(const std::vector< TCS::TOBArray const * > &input, const std::vector< TCS::TOBArray * > &output, Decision &decision)
Definition: AnomalyDetectionBDT.cxx:467
TCS::AnomalyDetectionBDT::m_totalScore
int64_t m_totalScore
Definition: AnomalyDetectionBDT.h:67
TCS::ConfigurableAlg::doReset
virtual StatusCode doReset()=0
TCS::Exception
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Exception.h:21
TrigConf::TrigConfMessaging::m_name
std::string m_name
Definition: TrigConfMessaging.h:67
TCS::ConfigurableAlg::name
const std::string & name() const
Definition: ConfigurableAlg.h:48
TCS::ConfigurableAlg::m_algType
AlgType m_algType
Definition: ConfigurableAlg.h:142
lumiFormat.i
int i
Definition: lumiFormat.py:85
xmin
double xmin
Definition: listroot.cxx:60
TCS::AnomalyDetectionBDT::m_nVar
int m_nVar
Definition: AnomalyDetectionBDT.h:66
h
TCS::ConfigurableAlg::NONE
@ NONE
Definition: ConfigurableAlg.h:32
TCS::ParameterSpace::setParameter
ParameterSpace & setParameter(const Parameter &p)
Definition: ParameterSpace.cxx:49
TCS::DataArrayImpl::size
size_t size() const
Definition: DataArrayImpl.h:30
TrigConf::TrigConfMessaging::msg
MsgStreamTC & msg() const
The standard message stream.
Definition: TrigConfMessaging.h:81
TCS::DecisionAlg::m_histAccept
std::vector< std::string > m_histAccept
Definition: Trigger/TrigT1/L1Topo/L1TopoInterfaces/L1TopoInterfaces/DecisionAlg.h:73
TSU::Kinematics::calcDeltaEtaLegacy
static unsigned int calcDeltaEtaLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:217
TCS::ConfigurableAlg::defineParameter
void defineParameter(const std::string &name, TCS::parType_t value)
Definition: ConfigurableAlg.cxx:201
TCS::DecisionAlg::fillHistos
bool fillHistos() const
whether the monitoring histograms should be filled
Definition: Trigger/TrigT1/L1Topo/L1TopoInterfaces/Root/DecisionAlg.cxx:100
covarianceTool.title
title
Definition: covarianceTool.py:542
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
contains
bool contains(const std::string &s, const std::string &regx)
does a string contain the substring
Definition: hcg.cxx:111
MuonSegmentReaderConfig.histSvc
histSvc
Definition: MuonSegmentReaderConfig.py:96
dumpFileToPlots.treeName
string treeName
Definition: dumpFileToPlots.py:19
TSU::Kinematics::calcInvMassBW
static unsigned int calcInvMassBW(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:97
TCS::DecisionAlg::m_hardwareOverflowBits
uint32_t m_hardwareOverflowBits
! overflow bits from hardware (assume the algo won't have >31 output bits)
Definition: Trigger/TrigT1/L1Topo/L1TopoInterfaces/L1TopoInterfaces/DecisionAlg.h:98
TCS_EXCEPTION
#define TCS_EXCEPTION(MSG)
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Exception.h:14
TCS::TOBArray
Definition: TOBArray.h:24
TCS::DecisionAlg::m_numberOutputBits
unsigned int m_numberOutputBits
Definition: Trigger/TrigT1/L1Topo/L1TopoInterfaces/L1TopoInterfaces/DecisionAlg.h:94
TRG_MSG_INFO
#define TRG_MSG_INFO(x)
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStreamMacros.h:27
TCS::AnomalyDetectionBDT::m_mu1_phimin
float m_mu1_phimin
Definition: AnomalyDetectionBDT.h:68
merge.output
output
Definition: merge.py:16
TRG_MSG_WARNING
#define TRG_MSG_WARNING(x)
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStreamMacros.h:28
TSU::Kinematics::quadraticSumBW
static unsigned long quadraticSumBW(int i1, int i2)
compute the sum in quadrature of two ints
Definition: Kinematics.cxx:146
TCS::ConfigurableAlg::m_algoId
unsigned int m_algoId
Definition: ConfigurableAlg.h:138
TSU::Kinematics::calcDeltaPhiLegacy
static unsigned int calcDeltaPhiLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:209
selection
const std::string selection
Definition: fbtTestBasics.cxx:75
TCS::DecisionAlg::m_hardwareDecisionBits
uint32_t m_hardwareDecisionBits
! decision bits from hardware (assume the algo won't have >31 output bits)
Definition: Trigger/TrigT1/L1Topo/L1TopoInterfaces/L1TopoInterfaces/DecisionAlg.h:96
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
threshold
Definition: chainparser.cxx:74
MakeNewFileFromOldAndSubstitution.newName
dictionary newName
Definition: ICHEP2016/MakeNewFileFromOldAndSubstitution.py:95
TCS::ConfigurableAlg::m_className
std::string m_className
Definition: ConfigurableAlg.h:135
TrigJetMonitorAlgorithm.items
items
Definition: TrigJetMonitorAlgorithm.py:71
TCS::ConfigurableAlg::bookHist
void bookHist(std::vector< std::string > &regName, const std::string &name, const std::string &title, const int binx, const int xmin, const int xmax)
Definition: ConfigurableAlg.cxx:270
TCS::AnomalyDetectionBDT::m_mu1_etamax
float m_mu1_etamax
Definition: AnomalyDetectionBDT.h:68
xAOD::score
@ score
Definition: TrackingPrimitives.h:514
TCS::AnomalyDetectionBDT::m_mu2_etamin
float m_mu2_etamin
Definition: AnomalyDetectionBDT.h:69
TSU::Kinematics::calcTMassBWLegacy
static unsigned int calcTMassBWLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:53
TCS::ConfigurableAlg::COUNT
@ COUNT
Definition: ConfigurableAlg.h:32
y
#define y
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
TCS::AnomalyDetectionBDT::m_trees
std::vector< Tree > m_trees
Definition: AnomalyDetectionBDT.h:65
plotting.yearwise_efficiency.xtitle
string xtitle
Definition: yearwise_efficiency.py:32
TSU::Kinematics::calcDeltaEta
static unsigned int calcDeltaEta(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
Definition: Kinematics.cxx:239
TCS::AnomalyDetectionBDT::m_mu2_ptmax
float m_mu2_ptmax
Definition: AnomalyDetectionBDT.h:69
xmax
double xmax
Definition: listroot.cxx:61
validateBDTTau.bdt_config
bdt_config
Definition: validateBDTTau.py:50
TSU::isAmbiguousAnywhere
bool isAmbiguousAnywhere(TCS::TOBArray const *tobs, size_t pos, unsigned minEt=0)
Definition: Trigger/TrigT1/L1Topo/L1TopoSimulationUtils/Root/Helpers.cxx:37
TCS::ParameterSpace::algName
const std::string & algName() const
Definition: ParameterSpace.h:36
TCS::AnomalyDetectionBDT::m_mu1_phimax
float m_mu1_phimax
Definition: AnomalyDetectionBDT.h:68
TCS::DecisionAlg::setNumberOutputBits
void setNumberOutputBits(unsigned int numberOutputBits)
Definition: Trigger/TrigT1/L1Topo/L1TopoInterfaces/L1TopoInterfaces/DecisionAlg.h:40
merge.status
status
Definition: merge.py:16
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
TCS::ConfigurableAlg::fillHist1D
void fillHist1D(const std::string &histName, double x)
Definition: ConfigurableAlg.cxx:467
TCS::Parameter::value
parType_t value() const
Definition: Parameter.h:35
TCS::ConfigurableAlg::DECISION
@ DECISION
Definition: ConfigurableAlg.h:32
TCS::AnomalyDetectionBDT::p_ScoreThreshold
parType_t p_ScoreThreshold[2]
Definition: AnomalyDetectionBDT.h:71
TCS::ConfigurableAlg::m_parameters
ParameterSpace m_parameters
Definition: ConfigurableAlg.h:140
TRG_MSG_DEBUG
#define TRG_MSG_DEBUG(x)
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStreamMacros.h:25
fitman.k
k
Definition: fitman.py:528
TCS::StatusCode
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/StatusCode.h:15
ymax
double ymax
Definition: listroot.cxx:64
TCS::ConfigurableAlg::algoId
unsigned int algoId() const
Definition: ConfigurableAlg.h:53
TCS::DecisionAlg::m_skipHistos
bool m_skipHistos
! skip filling monitoring histos, used only when m_fillHistosBasedOnHardware==true
Definition: Trigger/TrigT1/L1Topo/L1TopoInterfaces/L1TopoInterfaces/DecisionAlg.h:102
python.SystemOfUnits.L
float L
Definition: SystemOfUnits.py:92
python.SystemOfUnits.ms
float ms
Definition: SystemOfUnits.py:148