 |
ATLAS Offline Software
|
#include <AnomalyDetectionBDT.h>
|
| | 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) |
| |
| DecisionAlg & | setHardwareBits (const unsigned int &bitNumber, const bool &valueDecision, const bool &valueOverflow) |
| | propagate the hardware decision bits for each output bit of this algo More...
|
| |
| DecisionAlg & | resetHardwareBits () |
| | ! 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...
|
| |
| DecisionAlg & | setFillHistosBasedOnHardware (const bool &value) |
| | ! toggle m_fillHistosBasedOnHardware More...
|
| |
| bool | fillHistosBasedOnHardware () const |
| | ! getter More...
|
| |
| DecisionAlg & | setSkipHistos (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 Parameter & | parameter (const std::string ¶meterName) const |
| |
| const Parameter & | parameter (const std::string ¶meterName, unsigned int selection) const |
| |
| const ParameterSpace & | parameters () 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 > ®Name, 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 > ®Name, 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 > ®Name, const std::string &name, const std::string &title, const int binx, const int xmin, const int xmax) |
| |
| void | bookHist (std::vector< std::string > ®Name, 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...
|
| |
| const std::string & | getName () const |
| | name accessor More...
|
| |
Definition at line 49 of file AnomalyDetectionBDT.h.
◆ AlgType
◆ AnomalyDetectionBDT()
| TCS::AnomalyDetectionBDT::AnomalyDetectionBDT |
( |
const std::string & |
name | ) |
|
◆ ~AnomalyDetectionBDT()
| TCS::AnomalyDetectionBDT::~AnomalyDetectionBDT |
( |
| ) |
|
|
virtual |
◆ algoId()
| unsigned int TCS::ConfigurableAlg::algoId |
( |
| ) |
const |
|
inlineinherited |
◆ 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.
273 std::string newTitle =
title;
276 newTitle = xmin_str+
title+xmax_str;
284 std::string xTitle =
title;
295 int xmin_new,xmax_new,binx_new=binx;
299 { xmin_new=1.5*
xmin; }
308 else {xmax_new = 1.5*
xmax;}
320 if (
title.find(
"ETA") != std::string::npos ){
324 if (
title.find(
"PHI") != std::string::npos ||
title.find(
"DPHI") != std::string::npos ){
328 if (
title.find(
"DETA") != std::string::npos ||
title.find(
"DR") != std::string::npos ){
333 TH1 *
h =
new TH1F(
newName.c_str(), newTitle.c_str(), binx_new, xmin_new, xmax_new);
334 h->GetXaxis()->SetTitle(xTitle.c_str());
◆ 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.
348 auto usPos =
title.find(
" vs ");
349 std::string xName =
title.substr(0,usPos);
350 std::string yName =
title.substr(usPos+4);
355 std::string newTitle =
title;
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;
366 std::string xTitle = xName;
367 std::string yTitle = yName;
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]"; }
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]"; }
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]"; }
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]"; }
385 int xmin_new,xmax_new,binx_new=binx;
389 { xmin_new=1.5*
xmin; }
398 else {xmax_new = 1.5*
xmax;}
400 int ymin_new,ymax_new,biny_new=biny;
404 { ymin_new=1.5*
ymin; }
413 else {ymax_new = 1.5*
ymax;}
426 if ( xName.find(
"ETA") != std::string::npos ){
430 if ( yName.find(
"ETA") != std::string::npos ){
434 if ( xName.find(
"PHI") != std::string::npos || xName.find(
"DPHI") != std::string::npos ){
438 if ( yName.find(
"PHI") != std::string::npos || yName.find(
"DPHI") != std::string::npos ){
442 if ( xName.find(
"DETA") != std::string::npos || xName.find(
"DR") != std::string::npos ){
446 if ( yName.find(
"DETA") != std::string::npos || yName.find(
"DR") != std::string::npos ){
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());
◆ 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 |
◆ 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 |
◆ calcDeltaEta()
◆ calcDeltaEtaBW()
◆ calcDeltaPhi()
◆ calcDeltaPhiBW()
◆ calcDeltaR2()
◆ calcDeltaR2BW()
◆ calcInvMass()
◆ calcInvMassBW()
◆ calcTMass()
◆ calcTMassBW()
◆ className()
| const std::string& TCS::ConfigurableAlg::className |
( |
| ) |
const |
|
inlineinherited |
◆ defineParameter() [1/3]
◆ defineParameter() [2/3]
◆ defineParameter() [3/3]
| void ConfigurableAlg::defineParameter |
( |
const std::string & |
name, |
|
|
TCS::parType_t |
value, |
|
|
unsigned int |
selection |
|
) |
| |
|
protectedinherited |
◆ doReset()
◆ fillHist1D()
| void ConfigurableAlg::fillHist1D |
( |
const std::string & |
histName, |
|
|
double |
x |
|
) |
| |
|
protectedinherited |
◆ fillHist2D()
| void ConfigurableAlg::fillHist2D |
( |
const std::string & |
histName, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
|
protectedinherited |
◆ fillHistos()
| bool TCS::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 DecisionAlg.cxx.
◆ fillHistosBasedOnHardware()
| bool TCS::DecisionAlg::fillHistosBasedOnHardware |
( |
| ) |
const |
|
inherited |
◆ fullname()
| std::string TCS::ConfigurableAlg::fullname |
( |
| ) |
const |
|
inlineinherited |
◆ getDecisionHardwareBit()
| bool TCS::DecisionAlg::getDecisionHardwareBit |
( |
const unsigned int & |
bitNumber | ) |
const |
|
inherited |
! get one hardware decision bit from this algo
Definition at line 52 of file DecisionAlg.cxx.
60 <<
" for algo "<<
name());
◆ getName()
| const std::string & TrigConf::TrigConfMessaging::getName |
( |
| ) |
const |
|
inlineinherited |
◆ getOverflowHardwareBit()
| bool TCS::DecisionAlg::getOverflowHardwareBit |
( |
const unsigned int & |
bitNumber | ) |
const |
|
inherited |
! get one hardware overflow bit from this algo
Definition at line 65 of file DecisionAlg.cxx.
73 <<
" for algo "<<
name());
◆ initialize()
Reimplemented from TCS::ConfigurableAlg.
Definition at line 400 of file AnomalyDetectionBDT.cxx.
409 const std::string bdtfn =
"TrigAnomalyDetectionBDT/2025-06-18/fwX-config_nomAD_Jun3_2pi200t20d.json";
411 std::string fileLocation;
413 #ifndef TRIGCONF_STANDALONE
422 TRG_MSG_ERROR(
"Unable to open BDT configuration file." << fileLocation);
446 TRG_MSG_DEBUG(
"In initialize. There are " <<
m_trees.size() <<
" trees for AnomalyDetectionBDT.");
456 std::string hname_accept =
"hAnomalyDetecionBDT_accept_bit"+
std::to_string((
int)
i);
457 std::string hname_reject =
"hAnomalyDetecionBDT_reject_bit"+
std::to_string((
int)
i);
◆ isCountingAlg()
| bool TCS::ConfigurableAlg::isCountingAlg |
( |
| ) |
const |
|
inlineinherited |
◆ isDecisionAlg()
| bool TCS::ConfigurableAlg::isDecisionAlg |
( |
| ) |
const |
|
inlineinherited |
◆ isLegacyTopo()
| bool TCS::ConfigurableAlg::isLegacyTopo |
( |
| ) |
const |
|
inlineinherited |
◆ isocut() [1/2]
| bool ConfigurableAlg::isocut |
( |
const std::string & |
threshold, |
|
|
const unsigned int |
bit |
|
) |
| const |
|
protectedinherited |
◆ isocut() [2/2]
| bool ConfigurableAlg::isocut |
( |
const unsigned int |
threshold, |
|
|
const unsigned int |
bit |
|
) |
| const |
|
protectedinherited |
◆ isSortingAlg()
| bool TCS::ConfigurableAlg::isSortingAlg |
( |
| ) |
const |
|
inlineinherited |
◆ 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 86 of file TrigConfMessaging.h.
◆ msg() [2/2]
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 96 of file TrigConfMessaging.h.
◆ msgLvl()
Test the output level.
- Parameters
-
| lvl | The message level to test against |
- Returns
- boolean Indicting if messages at given level will be printed
- Return values
-
| true | Messages at level "lvl" will be printed |
Definition at line 75 of file TrigConfMessaging.h.
◆ name()
| const std::string& TCS::ConfigurableAlg::name |
( |
| ) |
const |
|
inlineinherited |
◆ numberOutputBits()
| unsigned int TCS::DecisionAlg::numberOutputBits |
( |
| ) |
const |
|
inlineinherited |
◆ parameter() [1/2]
◆ parameter() [2/2]
◆ parameters()
◆ process()
◆ processBitCorrect()
Implements TCS::DecisionAlg.
Definition at line 466 of file AnomalyDetectionBDT.cxx.
470 if (
input.size() != 1){
471 TCS_EXCEPTION(
"ADBDT algorithm expects only one TOBArray input (muons), but got " <<
input.size());
479 if (muons->
size() < 2) {
480 TRG_MSG_DEBUG(
"There are less than 2 muons. Skipping event.");
487 int64_t maxScore = 0;
491 std::vector<std::pair<int, int>> muonPairs;
492 for (
size_t i = 0;
i < nMuons; ++
i) {
493 for (
size_t j =
i+1; j < nMuons; ++j) {
494 muonPairs.emplace_back(
i, j);
498 for (
const auto& [
i,j] : muonPairs) {
500 std::vector<int64_t> eventValues;
502 const auto& mu1 = (*muons)[
i];
503 const auto& mu2 = (*muons)[j];
516 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");
520 if (mapval(mu1.Et(),
"pt") ==
int(mu1.Et()) || mapval(mu2.Et(),
"pt") ==
int(mu2.Et())) {
526 if (mapval(mu1.eta(),
"eta") == mu1.eta() || mapval(mu2.eta(),
"eta") == mu2.eta()) {
532 if (mapval(mu1.phi(),
"phi") == mu1.phi() || mapval(mu2.phi(),
"phi") == mu2.phi()) {
535 TRG_MSG_DEBUG(
"No input transformation done by LUT for muon Phi");
550 eventValues.push_back(mapval(mu1.Et(),
"pt"));
551 eventValues.push_back(mapval(mu1.eta(),
"eta"));
552 eventValues.push_back(mapval(mu1.phi(),
"phi"));
554 eventValues.push_back(mapval(mu2.Et(),
"pt"));
555 eventValues.push_back(mapval(mu2.eta(),
"eta"));
556 eventValues.push_back(mapval(mu2.phi(),
"phi"));
576 if (
score > maxScore) {
593 decision.setBit(
i,
true);
594 for (
size_t k = 0;
k < 3 &&
k < muons->
size(); ++
k){
599 output[
i]->setAmbiguityFlag(hasAmbiguousInputs);
◆ quadraticSumBW()
| unsigned long ConfigurableAlg::quadraticSumBW |
( |
int |
i1, |
|
|
int |
i2 |
|
) |
| |
|
inherited |
◆ registerHist() [1/2]
| void ConfigurableAlg::registerHist |
( |
TH1 * |
h | ) |
|
|
protectedinherited |
◆ registerHist() [2/2]
| void ConfigurableAlg::registerHist |
( |
TH2 * |
h | ) |
|
|
protectedinherited |
◆ reset()
◆ resetHardwareBits()
! reset all hardware bits for this algo
Definition at line 45 of file DecisionAlg.cxx.
◆ setAlgoId()
| void TCS::ConfigurableAlg::setAlgoId |
( |
unsigned int |
algoId | ) |
|
|
inlineinherited |
◆ setClassName()
| void TCS::ConfigurableAlg::setClassName |
( |
const std::string & |
className | ) |
|
|
inlineinherited |
◆ setFillHistosBasedOnHardware()
◆ setHardwareBits()
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 DecisionAlg.cxx.
34 }
else if(bitNumber<32) {
37 <<
" for algo "<<
name());
40 <<
" > 31 N output bits for algo "<<
name());
◆ 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.
◆ setLegacyMode()
| void TCS::ConfigurableAlg::setLegacyMode |
( |
bool |
isLegacyTopo | ) |
|
|
inlineinherited |
◆ setNumberOutputBits()
| void TCS::DecisionAlg::setNumberOutputBits |
( |
unsigned int |
numberOutputBits | ) |
|
|
inlineinherited |
◆ setParameters()
◆ setSkipHistos()
◆ skipHistos()
| bool TCS::DecisionAlg::skipHistos |
( |
| ) |
const |
|
inherited |
◆ ToString()
| std::string ConfigurableAlg::ToString |
( |
const int |
val | ) |
|
|
privateinherited |
◆ m_algoId
| unsigned int TCS::ConfigurableAlg::m_algoId {0} |
|
privateinherited |
◆ m_algType
| AlgType TCS::ConfigurableAlg::m_algType |
|
privateinherited |
◆ m_className
| std::string TCS::ConfigurableAlg::m_className {""} |
|
privateinherited |
◆ m_fillHistosBasedOnHardware
| bool TCS::DecisionAlg::m_fillHistosBasedOnHardware {0} |
|
privateinherited |
! fill accept/reject monitoring histos based on hdw decision
Definition at line 100 of file 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 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 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
◆ m_isLegacyTopo
| bool TCS::ConfigurableAlg::m_isLegacyTopo |
|
privateinherited |
◆ 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 71 of file TrigConfMessaging.h.
◆ m_mu1_etamax
| float TCS::AnomalyDetectionBDT::m_mu1_etamax {0} |
|
private |
◆ m_mu1_etamin
| float TCS::AnomalyDetectionBDT::m_mu1_etamin {0} |
|
private |
◆ m_mu1_phimax
| float TCS::AnomalyDetectionBDT::m_mu1_phimax {0} |
|
private |
◆ m_mu1_phimin
| float TCS::AnomalyDetectionBDT::m_mu1_phimin {0} |
|
private |
◆ m_mu1_ptmax
| float TCS::AnomalyDetectionBDT::m_mu1_ptmax {0} |
|
private |
◆ m_mu1_ptmin
| float TCS::AnomalyDetectionBDT::m_mu1_ptmin {0} |
|
private |
◆ m_mu2_etamax
| float TCS::AnomalyDetectionBDT::m_mu2_etamax {0} |
|
private |
◆ m_mu2_etamin
| float TCS::AnomalyDetectionBDT::m_mu2_etamin {0} |
|
private |
◆ m_mu2_phimax
| float TCS::AnomalyDetectionBDT::m_mu2_phimax {0} |
|
private |
◆ m_mu2_phimin
| float TCS::AnomalyDetectionBDT::m_mu2_phimin {0} |
|
private |
◆ m_mu2_ptmax
| float TCS::AnomalyDetectionBDT::m_mu2_ptmax {0} |
|
private |
◆ m_mu2_ptmin
| float TCS::AnomalyDetectionBDT::m_mu2_ptmin {0} |
|
private |
◆ m_name
| std::string TCS::ConfigurableAlg::m_name {""} |
|
privateinherited |
◆ m_numberOutputBits
| unsigned int TCS::DecisionAlg::m_numberOutputBits {1} |
|
privateinherited |
◆ m_nVar
| int TCS::AnomalyDetectionBDT::m_nVar {0} |
|
private |
◆ m_parameters
◆ m_sim_mode
| std::string TCS::AnomalyDetectionBDT::m_sim_mode |
|
private |
◆ 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 DecisionAlg.h.
◆ m_totalScore
| int64_t TCS::AnomalyDetectionBDT::m_totalScore {0} |
|
private |
◆ m_trees
| std::vector<Tree> TCS::AnomalyDetectionBDT::m_trees |
|
private |
◆ p_MaxTob
| size_t TCS::AnomalyDetectionBDT::p_MaxTob {3} |
|
private |
◆ p_minEt1
| parType_t TCS::AnomalyDetectionBDT::p_minEt1 {0} |
|
private |
◆ p_minEt2
| parType_t TCS::AnomalyDetectionBDT::p_minEt2 {0} |
|
private |
◆ p_ScoreThreshold
| parType_t TCS::AnomalyDetectionBDT::p_ScoreThreshold[2] = { 0, 0 } |
|
private |
The documentation for this class was generated from the following files:
bool fillHistosBasedOnHardware() const
! getter
bool fillHistos() const
whether the monitoring histograms should be filled
static std::string find_calib_file(const std::string &logical_file_name)
std::string replace(std::string s, const std::string &s2, const std::string &s3)
static unsigned int calcTMassBW(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
const std::string & className() const
static unsigned int calcDeltaR2BWLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
static unsigned int calcInvMass(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
static unsigned int calcTMass(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
const Parameter & parameter(const std::string ¶meterName) const
static unsigned int calcDeltaPhiBW(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
const ParameterSpace & parameters() const
ParameterSpace & addParameter(const Parameter &p)
boost::thread_specific_ptr< MsgStreamTC > m_msg_tls
MsgStreamTC instance (a std::cout like with print-out levels)
std::unique_ptr< ConfigurableAlgImpl > m_impl
bool m_fillHistosBasedOnHardware
! fill accept/reject monitoring histos based on hdw decision
DecisionAlg(const std::string &name)
const std::string & name() const
StatusCode accept(const xAOD::Muon *mu)
std::string ToString(const int val)
bool isLegacyTopo() const
static unsigned int calcDeltaPhi(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
static unsigned int calcInvMassBWLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
unsigned int numberOutputBits() const
static unsigned int calcDeltaEtaBWLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
static unsigned int calcDeltaR2BW(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
std::string to_string(const SectorProjector proj)
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
const Parameter & parameter(const std::string ¶meterName) const
std::vector< std::string > m_histReject
static unsigned int calcDeltaEtaBW(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
static unsigned int calcDeltaR2Legacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
unsigned int selection() const
static unsigned int calcDeltaR2(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
static unsigned int calcDeltaPhiBWLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
virtual StatusCode processBitCorrect(const std::vector< TCS::TOBArray const * > &input, const std::vector< TCS::TOBArray * > &output, Decision &decision)
virtual StatusCode doReset()=0
const std::string & name() const
ParameterSpace & setParameter(const Parameter &p)
MsgStreamTC & msg() const
The standard message stream.
std::vector< std::string > m_histAccept
bool getDecisionHardwareBit(const unsigned int &bitNumber) const
! get one hardware decision bit from this algo
static unsigned int calcDeltaEtaLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
void defineParameter(const std::string &name, TCS::parType_t value)
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring
static unsigned int calcInvMassBW(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
uint32_t m_hardwareOverflowBits
! overflow bits from hardware (assume the algo won't have >31 output bits)
#define TCS_EXCEPTION(MSG)
unsigned int m_numberOutputBits
#define TRG_MSG_WARNING(x)
static unsigned long quadraticSumBW(int i1, int i2)
compute the sum in quadrature of two ints
static unsigned int calcDeltaPhiLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
const std::string selection
uint32_t m_hardwareDecisionBits
! decision bits from hardware (assume the algo won't have >31 output bits)
void bookHist(std::vector< std::string > ®Name, const std::string &name, const std::string &title, const int binx, const int xmin, const int xmax)
static unsigned int calcTMassBWLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
std::vector< Tree > m_trees
static unsigned int calcDeltaEta(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
bool isAmbiguousAnywhere(TCS::TOBArray const *tobs, size_t pos, unsigned minEt=0)
const std::string & algName() const
void setNumberOutputBits(unsigned int numberOutputBits)
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
void fillHist1D(const std::string &histName, double x)
parType_t p_ScoreThreshold[2]
ParameterSpace m_parameters
unsigned int algoId() const
bool m_skipHistos
! skip filling monitoring histos, used only when m_fillHistosBasedOnHardware==true