LDMX Software
trigger::TrigClusterNNScore Class Reference

Output of the ECal trigger-cluster NN classifier for one event. More...

#include <TrigClusterNNScore.h>

Public Member Functions

void setLogits (const std::vector< float > &logits)
 
void setPBkg (const double p_bkg)
 
const std::vector< float > & logits () const
 
double pBkg () const
 
void clear ()
 

Private Member Functions

 ClassDef (TrigClusterNNScore, 1)
 ROOT Dictionary class definition macro.
 

Private Attributes

std::vector< float > logits_
 
double p_bkg_ {0.0}
 

Detailed Description

Output of the ECal trigger-cluster NN classifier for one event.

Holds the 9 raw logits in trained class order: 0 = 1e bkg, 1 = A', 2 = eN neutron, 3 = proton, 4 = pi+-, 5 = K+-, 6 = K0, 7 = photon, 8 = other. P(bkg) is the class-0 softmax, computed in double precision because 1 - P(bkg) saturates to 1 in float.

The current 1 kHz working point is to fire if pBkg() <= 2.6726722717e-4

Definition at line 21 of file TrigClusterNNScore.h.

Member Function Documentation

◆ clear()

void trigger::TrigClusterNNScore::clear ( )

Definition at line 6 of file TrigClusterNNScore.cxx.

6 {
7 logits_.clear();
8 p_bkg_ = 0.0;
9}

◆ logits()

const std::vector< float > & trigger::TrigClusterNNScore::logits ( ) const
inline

Definition at line 30 of file TrigClusterNNScore.h.

30{ return logits_; }

◆ pBkg()

double trigger::TrigClusterNNScore::pBkg ( ) const
inline

Definition at line 31 of file TrigClusterNNScore.h.

31{ return p_bkg_; }

◆ setLogits()

void trigger::TrigClusterNNScore::setLogits ( const std::vector< float > & logits)
inline

Definition at line 27 of file TrigClusterNNScore.h.

27{ logits_ = logits; }

◆ setPBkg()

void trigger::TrigClusterNNScore::setPBkg ( const double p_bkg)
inline

Definition at line 28 of file TrigClusterNNScore.h.

28{ p_bkg_ = p_bkg; }

Member Data Documentation

◆ logits_

std::vector<float> trigger::TrigClusterNNScore::logits_
private

Definition at line 36 of file TrigClusterNNScore.h.

◆ p_bkg_

double trigger::TrigClusterNNScore::p_bkg_ {0.0}
private

Definition at line 37 of file TrigClusterNNScore.h.

37{0.0};

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