ATLAS Offline Software
Loading...
Searching...
No Matches
TCS::DeltaRApproxBoxCutIncl1 Class Reference

#include <DeltaRApproxBoxCutIncl1.h>

Inheritance diagram for TCS::DeltaRApproxBoxCutIncl1:
Collaboration diagram for TCS::DeltaRApproxBoxCutIncl1:

Public Member Functions

 DeltaRApproxBoxCutIncl1 (const std::string &name)
virtual ~DeltaRApproxBoxCutIncl1 ()
virtual StatusCode initialize ()
virtual StatusCode processBitCorrect (const std::vector< TCS::TOBArray const * > &input, const std::vector< TCS::TOBArray * > &output, Decision &decison)
virtual StatusCode process (const std::vector< TCS::TOBArray const * > &input, const std::vector< TCS::TOBArray * > &output, Decision &decison)
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
DecisionAlgresetHardwareBits ()
 ! reset all hardware bits for this algo
bool getDecisionHardwareBit (const unsigned int &bitNumber) const
 ! get one hardware decision bit from this algo
bool getOverflowHardwareBit (const unsigned int &bitNumber) const
 ! get one hardware overflow bit from this algo
DecisionAlgsetFillHistosBasedOnHardware (const bool &value)
 ! toggle m_fillHistosBasedOnHardware
bool fillHistosBasedOnHardware () const
 ! getter
DecisionAlgsetSkipHistos (const bool &value)
 ! toggle m_skipHistos (see TopoSteering::setOutputAlgosSkipHistograms)
bool skipHistos () const
 ! getter
bool fillHistos () const
 whether the monitoring histograms should be filled
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
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.
MsgStreamTC & msg () const
 The standard message stream.
MsgStreamTC & msg (const MSGTC::Level lvl) const
 The standard message stream.
const std::string & getName () const
 name accessor

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

parType_t p_NumberLeading1 = { 0 }
parType_t p_NumberLeading2 = { 0 }
parType_t p_DeltaPhiMin [3] = {0, 0, 0}
parType_t p_DeltaPhiMax [3] = {0, 0, 0}
parType_t p_DeltaEtaMin [3] = {0, 0, 0}
parType_t p_DeltaEtaMax [3] = {0, 0, 0}
parType_t p_MinET1 = { 0 }
parType_t p_MinET2 = { 0 }
unsigned int m_numberOutputBits {1}
uint32_t m_hardwareDecisionBits {0}
 ! decision bits from hardware (assume the algo won't have >31 output bits)
uint32_t m_hardwareOverflowBits {0}
 ! overflow bits from hardware (assume the algo won't have >31 output bits)
bool m_fillHistosBasedOnHardware {0}
 ! fill accept/reject monitoring histos based on hdw decision
bool m_skipHistos {0}
 ! skip filling monitoring histos, used only when m_fillHistosBasedOnHardware==true
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)

Detailed Description

Definition at line 18 of file DeltaRApproxBoxCutIncl1.h.

Member Enumeration Documentation

◆ AlgType

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

Definition at line 32 of file ConfigurableAlg.h.

Constructor & Destructor Documentation

◆ DeltaRApproxBoxCutIncl1()

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

Definition at line 22 of file DeltaRApproxBoxCutIncl1.cxx.

23{
24 defineParameter("InputWidth", 3);
25 defineParameter("NumResultBits", 3);
26 defineParameter("DeltaPhiMin", 0, 0);
27 defineParameter("DeltaPhiMax", 63, 0);
28 defineParameter("DeltaPhiMin", 0, 1);
29 defineParameter("DeltaPhiMax", 5, 1);
30 defineParameter("DeltaPhiMin", 25, 2);
31 defineParameter("DeltaPhiMax", 32, 2);
32 defineParameter("DeltaEtaMin", 0, 0);
33 defineParameter("DeltaEtaMax", 63, 0);
34 defineParameter("DeltaEtaMin", 0, 1);
35 defineParameter("DeltaEtaMax", 5, 1);
36 defineParameter("DeltaEtaMin", 25, 2);
37 defineParameter("DeltaEtaMax", 32, 2);
38 defineParameter("MinET1",1);
39 defineParameter("MinET2",1);
41}
const std::string & name() const
void defineParameter(const std::string &name, TCS::parType_t value)
void setNumberOutputBits(unsigned int numberOutputBits)
Definition DecisionAlg.h:40
DecisionAlg(const std::string &name)
Definition DecisionAlg.h:25

◆ ~DeltaRApproxBoxCutIncl1()

TCS::DeltaRApproxBoxCutIncl1::~DeltaRApproxBoxCutIncl1 ( )
virtual

Definition at line 43 of file DeltaRApproxBoxCutIncl1.cxx.

43{}

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 272 of file ConfigurableAlg.cxx.

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

◆ 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 349 of file ConfigurableAlg.cxx.

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

◆ 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 340 of file ConfigurableAlg.cxx.

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

◆ 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 459 of file ConfigurableAlg.cxx.

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

◆ calcDeltaEta()

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

Definition at line 175 of file ConfigurableAlg.cxx.

175 {
176 if (m_isLegacyTopo)
177 {return TSU::Kinematics::calcDeltaEtaLegacy(tob1,tob2);}
178 else
179 {return TSU::Kinematics::calcDeltaEta(tob1,tob2);}
180}
static unsigned int calcDeltaEta(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
static unsigned int calcDeltaEtaLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)

◆ calcDeltaEtaBW()

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

Definition at line 130 of file ConfigurableAlg.cxx.

130 {
131 if (m_isLegacyTopo)
132 {return TSU::Kinematics::calcDeltaEtaBWLegacy(tob1,tob2);}
133 else
134 {return TSU::Kinematics::calcDeltaEtaBW(tob1,tob2);}
135}
static unsigned int calcDeltaEtaBWLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
static unsigned int calcDeltaEtaBW(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)

◆ calcDeltaPhi()

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

Definition at line 167 of file ConfigurableAlg.cxx.

167 {
168 if (m_isLegacyTopo)
169 {return TSU::Kinematics::calcDeltaPhiLegacy(tob1,tob2);}
170 else
171 {return TSU::Kinematics::calcDeltaPhi(tob1,tob2);}
172}
static unsigned int calcDeltaPhi(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
static unsigned int calcDeltaPhiLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)

◆ calcDeltaPhiBW()

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

Definition at line 122 of file ConfigurableAlg.cxx.

122 {
123 if (m_isLegacyTopo)
124 {return TSU::Kinematics::calcDeltaPhiBWLegacy(tob1,tob2);}
125 else
126 {return TSU::Kinematics::calcDeltaPhiBW(tob1,tob2);}
127}
static unsigned int calcDeltaPhiBWLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
static unsigned int calcDeltaPhiBW(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)

◆ calcDeltaR2()

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

Definition at line 193 of file ConfigurableAlg.cxx.

193 {
194 if (m_isLegacyTopo)
195 {return TSU::Kinematics::calcDeltaR2Legacy(tob1,tob2);}
196 else
197 {return TSU::Kinematics::calcDeltaR2(tob1,tob2);}
198}
static unsigned int calcDeltaR2Legacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
static unsigned int calcDeltaR2(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)

◆ calcDeltaR2BW()

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

Definition at line 154 of file ConfigurableAlg.cxx.

154 {
155 if (m_isLegacyTopo)
156 {return TSU::Kinematics::calcDeltaR2BWLegacy(tob1,tob2);}
157 else
158 {return TSU::Kinematics::calcDeltaR2BW(tob1,tob2);}
159}
static unsigned int calcDeltaR2BW(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
static unsigned int calcDeltaR2BWLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)

◆ calcInvMass()

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

Definition at line 183 of file ConfigurableAlg.cxx.

183 {
184 return TSU::Kinematics::calcInvMass(tob1,tob2);
185}
static unsigned int calcInvMass(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)

◆ calcInvMassBW()

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

Definition at line 138 of file ConfigurableAlg.cxx.

138 {
139 if (m_isLegacyTopo)
140 {return TSU::Kinematics::calcInvMassBWLegacy(tob1,tob2);}
141 else
142 {return TSU::Kinematics::calcInvMassBW(tob1,tob2);}
143}
static unsigned int calcInvMassBW(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
static unsigned int calcInvMassBWLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)

◆ calcTMass()

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

Definition at line 188 of file ConfigurableAlg.cxx.

188 {
189 return TSU::Kinematics::calcTMass(tob1,tob2);
190}
static unsigned int calcTMass(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)

◆ calcTMassBW()

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

Definition at line 146 of file ConfigurableAlg.cxx.

146 {
147 if (m_isLegacyTopo)
148 {return TSU::Kinematics::calcTMassBWLegacy(tob1,tob2);}
149 else
150 {return TSU::Kinematics::calcTMassBW(tob1,tob2);}
151}
static unsigned int calcTMassBWLegacy(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
static unsigned int calcTMassBW(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)

◆ 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 215 of file ConfigurableAlg.cxx.

215 {
216 if( parameters().contains( parameter.name(), parameter.selection() ) ) {
217 TCS_EXCEPTION("Duplicate parameter definition '" << parameter.name() << "' for algorithm '" << name() << "'");
218 }
219 m_parameters.addParameter(parameter);
220}
const ParameterSpace & parameters() const
const Parameter & parameter(const std::string &parameterName) const
ParameterSpace m_parameters
bool contains(const std::string &s, const std::string &regx)
does a string contain the substring
Definition hcg.cxx:114

◆ defineParameter() [2/3]

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

Definition at line 203 of file ConfigurableAlg.cxx.

203 {
204 defineParameter( Parameter(name, value) );
205}

◆ defineParameter() [3/3]

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

Definition at line 209 of file ConfigurableAlg.cxx.

209 {
210 defineParameter( Parameter(name, value, selection) );
211}
const std::string selection

◆ doReset()

TCS::StatusCode TCS::DecisionAlg::doReset ( )
privatevirtualinherited

◆ fillHist1D()

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

Definition at line 469 of file ConfigurableAlg.cxx.

469 {
470 m_impl->fillHist1D(histName,x);
471}
#define x

◆ fillHist2D()

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

Definition at line 473 of file ConfigurableAlg.cxx.

473 {
474 m_impl->fillHist2D(histName,x,y);
475}
#define y

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

101{
102 return (not m_fillHistosBasedOnHardware or not m_skipHistos);
103}
bool m_skipHistos
! skip filling monitoring histos, used only when m_fillHistosBasedOnHardware==true
bool m_fillHistosBasedOnHardware
! fill accept/reject monitoring histos based on hdw decision

◆ fillHistosBasedOnHardware()

bool TCS::DecisionAlg::fillHistosBasedOnHardware ( ) const
inherited

! getter

Definition at line 84 of file 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 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.

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}
unsigned int m_numberOutputBits
Definition DecisionAlg.h:94
uint32_t m_hardwareDecisionBits
! decision bits from hardware (assume the algo won't have >31 output bits)
Definition DecisionAlg.h:96

◆ getName()

const std::string & TrigConf::TrigConfMessaging::getName ( ) const
inlineinherited

name accessor

Returns
the name

Definition at line 101 of file TrigConfMessaging.h.

101 {
102 return m_name;
103 }

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

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}
uint32_t m_hardwareOverflowBits
! overflow bits from hardware (assume the algo won't have >31 output bits)
Definition DecisionAlg.h:98

◆ initialize()

TCS::StatusCode TCS::DeltaRApproxBoxCutIncl1::initialize ( )
virtual

Reimplemented from TCS::ConfigurableAlg.

Definition at line 47 of file DeltaRApproxBoxCutIncl1.cxx.

47 {
48 p_NumberLeading1 = parameter("InputWidth").value();
49 p_NumberLeading2 = parameter("InputWidth").value();
50 for(int i=0; i<3; ++i) {
51 p_DeltaPhiMin[i] = parameter("DeltaPhiMin", i).value();
52 p_DeltaPhiMax[i] = parameter("DeltaPhiMax", i).value();
53 p_DeltaEtaMin[i] = parameter("DeltaEtaMin", i).value();
54 p_DeltaEtaMax[i] = parameter("DeltaEtaMax", i).value();
55
56 }
57 p_MinET1 = parameter("MinET1").value();
58 p_MinET2 = parameter("MinET2").value();
59
60 TRG_MSG_INFO("NumberLeading1 : " << p_NumberLeading1); // note that the reading of generic parameters doesn't work yet
61 TRG_MSG_INFO("NumberLeading2 : " << p_NumberLeading2);
62 TRG_MSG_INFO("DeltaPhiMin0 : " << p_DeltaPhiMin[0]);
63 TRG_MSG_INFO("DeltaPhiMax0 : " << p_DeltaPhiMax[0]);
64 TRG_MSG_INFO("DeltaPhiMin1 : " << p_DeltaPhiMin[1]);
65 TRG_MSG_INFO("DeltaPhiMax1 : " << p_DeltaPhiMax[1]);
66 TRG_MSG_INFO("DeltaPhiMin2 : " << p_DeltaPhiMin[2]);
67 TRG_MSG_INFO("DeltaPhiMax2 : " << p_DeltaPhiMax[2]);
68 TRG_MSG_INFO("DeltaEtaMin0 : " << p_DeltaEtaMin[0]);
69 TRG_MSG_INFO("DeltaEtaMax0 : " << p_DeltaEtaMax[0]);
70 TRG_MSG_INFO("DeltaEtaMin1 : " << p_DeltaEtaMin[1]);
71 TRG_MSG_INFO("DeltaEtaMax1 : " << p_DeltaEtaMax[1]);
72 TRG_MSG_INFO("DeltaEtaMin2 : " << p_DeltaEtaMin[2]);
73 TRG_MSG_INFO("DeltaEtaMax2 : " << p_DeltaEtaMax[2]);
74 TRG_MSG_INFO("MinET1 : " << p_MinET1);
75 TRG_MSG_INFO("MinET2 : " << p_MinET2);
76 TRG_MSG_INFO("number output : " << numberOutputBits());
77
78 // book histograms
79 for(unsigned int i=0; i<numberOutputBits(); ++i) {
80 std::string hname_accept = "hDeltaRApproxBoxCutIncl1_accept_bit"+std::to_string((int)i);
81 std::string hname_reject = "hDeltaRApproxBoxCutIncl1_reject_bit"+std::to_string((int)i);
82 // deta vs dphi
83 bookHist(m_histAccept, hname_accept, "DETA vs DPHI", 100, p_DeltaEtaMin[i], p_DeltaEtaMax[i], 100, p_DeltaPhiMin[i], p_DeltaPhiMax[i]);
84 bookHist(m_histReject, hname_reject, "DETA vs DPHI", 100, p_DeltaEtaMin[i], p_DeltaEtaMax[i], 100, p_DeltaPhiMin[i], p_DeltaPhiMax[i]);
85 }
86
88}
void bookHist(std::vector< std::string > &regName, const std::string &name, const std::string &title, const int binx, const int xmin, const int xmax)
std::vector< std::string > m_histAccept
Definition DecisionAlg.h:73
std::vector< std::string > m_histReject
Definition DecisionAlg.h:74
unsigned int numberOutputBits() const
Definition DecisionAlg.h:39
parType_t value() const
Definition Parameter.h:35

◆ 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 486 of file ConfigurableAlg.cxx.

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

◆ isocut() [2/2]

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

Definition at line 502 of file ConfigurableAlg.cxx.

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

◆ 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 86 of file TrigConfMessaging.h.

87 {
88 MsgStreamTC* ms = m_msg_tls.get();
89 if (!ms) {
90 ms = new MsgStreamTC(m_name);
91 m_msg_tls.reset(ms);
92 }
93 return *ms;
94 }
boost::thread_specific_ptr< MsgStreamTC > m_msg_tls
MsgStreamTC instance (a std::cout like with print-out levels)

◆ 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 96 of file TrigConfMessaging.h.

97 {
98 return msg() << lvl;
99 }
MsgStreamTC & msg() const
The standard message stream.

◆ 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 75 of file TrigConfMessaging.h.

76 {
77 if (msg().level() <= lvl) {
78 msg() << lvl;
79 return true;
80 }
81 else {
82 return false;
83 }
84 }

◆ 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

Definition at line 39 of file DecisionAlg.h.

39{ return m_numberOutputBits; }

◆ parameter() [1/2]

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

Definition at line 245 of file ConfigurableAlg.cxx.

245 {
246 return parameters().parameter(parameterName);
247}
const Parameter & parameter(const std::string &parameterName) const

◆ parameter() [2/2]

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

Definition at line 251 of file ConfigurableAlg.cxx.

251 {
252 return parameters().parameter(parameterName, selection);
253}

◆ parameters()

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

Definition at line 87 of file ConfigurableAlg.h.

87{ return m_parameters; }

◆ process()

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

Implements TCS::DecisionAlg.

Definition at line 102 of file DeltaRApproxBoxCutIncl1.cxx.

105{
106 if(input.size() == 1) {
107 TRG_MSG_DEBUG("input size : " << input[0]->size());
108 unsigned int nLeading = p_NumberLeading1;
109 for( TOBArray::const_iterator tob1 = input[0]->begin();
110 tob1 != input[0]->end() && distance( input[0]->begin(), tob1) < nLeading;
111 ++tob1)
112 {
113 if( parType_t((*tob1)->Et()) <= std::min(p_MinET1,p_MinET2)) continue; // ET cut
114 TCS::TOBArray::const_iterator tob2 = tob1; ++tob2;
115 for( ;
116 tob2 != input[0]->end() && distance( input[0]->begin(), tob2) < p_NumberLeading2;
117 ++tob2) {
118 if( parType_t((*tob2)->Et()) <= std::min(p_MinET1,p_MinET2)) continue; // ET cut
119 if( (parType_t((*tob1)->Et()) <= std::max(p_MinET1,p_MinET2)) && (parType_t((*tob2)->Et()) <= std::max(p_MinET1,p_MinET2))) continue;
120 // DeltaPhi cuts
121 unsigned int deltaPhi = calcDeltaPhi( *tob1, *tob2 );
122 // DeltaEta cuts
123 unsigned int deltaEta = calcDeltaEta( *tob1, *tob2 );
124 //
125 // to-do change message output
126 std::stringstream msgss;
127 msgss << " Combination : " << distance( input[0]->begin(), tob1)
128 << " x " << distance( input[0]->begin(), tob2)
129 << " phi1=" << (*tob1)->phi()
130 << " , phi2=" << (*tob2)->phi()
131 << ", DeltaPhi = " << deltaPhi
132 << ", DeltaEta = " << deltaEta << " -> ";
133 for(unsigned int i=0; i<numberOutputBits(); ++i) {
134 bool accept = false;
135 accept = ( deltaEta >= p_DeltaEtaMin[i] || deltaPhi >= p_DeltaPhiMin[i] ) && deltaPhi <= p_DeltaPhiMax[i] && deltaEta <= p_DeltaEtaMax[i];
136 const bool fillAccept = fillHistos() and (fillHistosBasedOnHardware() ? getDecisionHardwareBit(i) : accept);
137 const bool fillReject = fillHistos() and not fillAccept;
138 const bool alreadyFilled = decision.bit(i);
139 if( accept ) {
140 decision.setBit(i, true);
141 output[i]->push_back( TCS::CompositeTOB(*tob1, *tob2) );
142 }
143 if(fillAccept and not alreadyFilled) {
144 fillHist2D(m_histAccept[i],(float)deltaEta,(float)deltaPhi);
145 } else if(fillReject) {
146 fillHist2D(m_histReject[i],(float)deltaEta,(float)deltaPhi);
147 }
148 msgss << "DeltaRApproxBoxCutIncl1 alg bit" << i << (accept?" pass":" fail") << "|";
149 }
150 TRG_MSG_DEBUG(msgss.str());
151 }
152 }
153 } else {
154 TCS_EXCEPTION("DeltaRApproxBoxCutIncl1 alg must have 1 input, but got " << input.size());
155 }
157}
Scalar deltaPhi(const MatrixBase< Derived > &vec) const
unsigned int calcDeltaEta(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
unsigned int calcDeltaPhi(const TCS::GenericTOB *tob1, const TCS::GenericTOB *tob2)
void fillHist2D(const std::string &histName, double x, double y)
data_t::const_iterator const_iterator
bool fillHistosBasedOnHardware() const
! getter
bool fillHistos() const
whether the monitoring histograms should be filled
bool getDecisionHardwareBit(const unsigned int &bitNumber) const
! get one hardware decision bit from this algo
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
StatusCode accept(const xAOD::Muon *mu)
double deltaEta(const I4Momentum &p1, const I4Momentum &p2)
Computes efficiently .
Definition P4Helpers.h:66
uint32_t parType_t
Definition Parameter.h:22
output
Definition merge.py:16

◆ processBitCorrect()

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

Implements TCS::DecisionAlg.

Definition at line 92 of file DeltaRApproxBoxCutIncl1.cxx.

96{
97 return process(input,output,decision);
98}
const std::string process

◆ quadraticSumBW()

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

Definition at line 162 of file ConfigurableAlg.cxx.

162 {
163 return TSU::Kinematics::quadraticSumBW(i1, i2);
164}
static unsigned long quadraticSumBW(int i1, int i2)
compute the sum in quadrature of two ints

◆ registerHist() [1/2]

void ConfigurableAlg::registerHist ( TH1 * h)
protectedinherited

Definition at line 264 of file ConfigurableAlg.cxx.

264 {
265 m_impl->registerHist(h);
266}

◆ registerHist() [2/2]

void ConfigurableAlg::registerHist ( TH2 * h)
protectedinherited

Definition at line 268 of file ConfigurableAlg.cxx.

268 {
269 m_impl->registerHist(h);
270}

◆ reset()

StatusCode TCS::ConfigurableAlg::reset ( )
inlineinherited

Definition at line 58 of file ConfigurableAlg.h.

58{ return doReset(); }
virtual StatusCode doReset()=0

◆ resetHardwareBits()

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

! reset all hardware bits for this algo

Definition at line 45 of file 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; }
unsigned int algoId() const

◆ setClassName()

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

Definition at line 43 of file ConfigurableAlg.h.

const std::string & className() const

◆ setFillHistosBasedOnHardware()

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

! toggle m_fillHistosBasedOnHardware

Definition at line 78 of file DecisionAlg.cxx.

79{
81 return *this;
82}

◆ setHardwareBits()

TCS::DecisionAlg & TCS::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 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 260 of file ConfigurableAlg.cxx.

260 {
261 m_impl->setL1TopoHistSvc(std::move(histSvc));
262}

◆ 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

Definition at line 40 of file DecisionAlg.h.

◆ setParameters()

void ConfigurableAlg::setParameters ( const ParameterSpace & parameters)
inherited

Definition at line 224 of file ConfigurableAlg.cxx.

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

◆ setSkipHistos()

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

! toggle m_skipHistos (see TopoSteering::setOutputAlgosSkipHistograms)

Definition at line 89 of file DecisionAlg.cxx.

90{
92 return *this;
93}

◆ skipHistos()

bool TCS::DecisionAlg::skipHistos ( ) const
inherited

! getter

Definition at line 95 of file DecisionAlg.cxx.

96{
97 return m_skipHistos;
98}

◆ ToString()

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

Definition at line 477 of file ConfigurableAlg.cxx.

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

Member Data Documentation

◆ m_algoId

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

Definition at line 138 of file ConfigurableAlg.h.

138{0};

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

135{""};

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

100{0};

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

96{0};

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

98{0};

◆ m_histAccept

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

Definition at line 73 of file DecisionAlg.h.

◆ m_histAcceptEta1Eta2

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

Definition at line 79 of file DecisionAlg.h.

◆ m_histAcceptEta2Eta3

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

Definition at line 81 of file DecisionAlg.h.

◆ m_histAcceptEta3Eta1

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

Definition at line 83 of file DecisionAlg.h.

◆ m_histAcceptM

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

Definition at line 75 of file DecisionAlg.h.

◆ m_histAcceptX

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

Definition at line 77 of file DecisionAlg.h.

◆ m_histReject

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

Definition at line 74 of file DecisionAlg.h.

◆ m_histRejectEta1Eta2

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

Definition at line 80 of file DecisionAlg.h.

◆ m_histRejectEta2Eta3

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

Definition at line 82 of file DecisionAlg.h.

◆ m_histRejectEta3Eta1

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

Definition at line 84 of file DecisionAlg.h.

◆ m_histRejectM

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

Definition at line 76 of file DecisionAlg.h.

◆ m_histRejectX

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

Definition at line 78 of file DecisionAlg.h.

◆ 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 71 of file TrigConfMessaging.h.

◆ m_name

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

Definition at line 134 of file ConfigurableAlg.h.

134{""};

◆ m_numberOutputBits

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

Definition at line 94 of file DecisionAlg.h.

94{1};

◆ m_parameters

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

Definition at line 140 of file ConfigurableAlg.h.

140{""};

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

102{0};

◆ p_DeltaEtaMax

parType_t TCS::DeltaRApproxBoxCutIncl1::p_DeltaEtaMax[3] = {0, 0, 0}
private

Definition at line 43 of file DeltaRApproxBoxCutIncl1.h.

43{0, 0, 0};

◆ p_DeltaEtaMin

parType_t TCS::DeltaRApproxBoxCutIncl1::p_DeltaEtaMin[3] = {0, 0, 0}
private

Definition at line 42 of file DeltaRApproxBoxCutIncl1.h.

42{0, 0, 0};

◆ p_DeltaPhiMax

parType_t TCS::DeltaRApproxBoxCutIncl1::p_DeltaPhiMax[3] = {0, 0, 0}
private

Definition at line 41 of file DeltaRApproxBoxCutIncl1.h.

41{0, 0, 0};

◆ p_DeltaPhiMin

parType_t TCS::DeltaRApproxBoxCutIncl1::p_DeltaPhiMin[3] = {0, 0, 0}
private

Definition at line 40 of file DeltaRApproxBoxCutIncl1.h.

40{0, 0, 0};

◆ p_MinET1

parType_t TCS::DeltaRApproxBoxCutIncl1::p_MinET1 = { 0 }
private

Definition at line 44 of file DeltaRApproxBoxCutIncl1.h.

44{ 0 };

◆ p_MinET2

parType_t TCS::DeltaRApproxBoxCutIncl1::p_MinET2 = { 0 }
private

Definition at line 45 of file DeltaRApproxBoxCutIncl1.h.

45{ 0 };

◆ p_NumberLeading1

parType_t TCS::DeltaRApproxBoxCutIncl1::p_NumberLeading1 = { 0 }
private

Definition at line 38 of file DeltaRApproxBoxCutIncl1.h.

38{ 0 };

◆ p_NumberLeading2

parType_t TCS::DeltaRApproxBoxCutIncl1::p_NumberLeading2 = { 0 }
private

Definition at line 39 of file DeltaRApproxBoxCutIncl1.h.

39{ 0 };

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