Public Member Functions | Protected Attributes | List of all members
flat::FlatNuonEResult Class Reference

Flat encoding of SRNuonEResult. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/FlatMaker/FlatNuonEResult.h"

Public Member Functions

 FlatNuonEResult (const std::string &prefix, TTree *tr, const IBranchPolicy *policy)
 
 ~FlatNuonEResult ()
 
void Fill (const caf::SRNuonEResult &sr)
 

Protected Attributes

float rawgevslice
 
float nuoneid
 
float pi0id
 
float nueccid
 
float otherid
 
float epi0nuoneid
 
float epi0pi0id
 
unsigned int noutput
 
TTree * output_tree
 
float output
 
long output_idx
 
int output_length
 

Detailed Description

Flat encoding of SRNuonEResult.

Definition at line 20 of file FlatNuonEResult.h.

Constructor & Destructor Documentation

flat::FlatNuonEResult::FlatNuonEResult ( const std::string prefix,
TTree *  tr,
const IBranchPolicy policy 
)

Definition at line 1776 of file FlatRecord.cxx.

References compare_h5_caf::branch, epi0nuoneid, epi0pi0id, noutput, nueccid, nuoneid, otherid, output, output_idx, output_length, output_tree, pi0id, and rawgevslice.

1777  : output_tree(make_tree(prefix+"output", "output", tr)),
1778  output(0),
1779  output_idx(0), output_length(0)
1780 {
1781  branch(tr, prefix+"rawgevslice", &rawgevslice, policy);
1782  branch(tr, prefix+"nuoneid", &nuoneid, policy);
1783  branch(tr, prefix+"pi0id", &pi0id, policy);
1784  branch(tr, prefix+"nueccid", &nueccid, policy);
1785  branch(tr, prefix+"otherid", &otherid, policy);
1786  branch(tr, prefix+"epi0nuoneid", &epi0nuoneid, policy);
1787  branch(tr, prefix+"epi0pi0id", &epi0pi0id, policy);
1788  branch(tr, prefix+"noutput", &noutput, policy);
1789  branch(output_tree, prefix+"output", &output, policy);
1790  if(output_tree->GetNbranches() > 0){
1791  branch(tr, prefix+"output_idx", &output_idx, 0);
1792  branch(tr, prefix+"output_length", &output_length, 0);
1793  }
1794 }
const XML_Char * prefix
Definition: expat.h:380
flat::FlatNuonEResult::~FlatNuonEResult ( )

Definition at line 1796 of file FlatRecord.cxx.

References output_tree.

1797 {
1798  if(output_tree->GetNbranches() > 0) output_tree->Write();
1799  delete output_tree;
1800 }

Member Function Documentation

void flat::FlatNuonEResult::Fill ( const caf::SRNuonEResult sr)

Definition at line 1802 of file FlatRecord.cxx.

References caf::SRNuonEResult::epi0nuoneid, epi0nuoneid, caf::SRNuonEResult::epi0pi0id, epi0pi0id, caf::SRNuonEResult::noutput, noutput, caf::SRNuonEResult::nueccid, nueccid, caf::SRNuonEResult::nuoneid, nuoneid, caf::SRNuonEResult::otherid, otherid, caf::SRNuonEResult::output, output, output_idx, output_length, output_tree, caf::SRNuonEResult::pi0id, pi0id, caf::SRNuonEResult::rawgevslice, rawgevslice, and submit_syst::x.

Referenced by flat::FlatIDBranch::Fill().

1803 {
1804  rawgevslice = sr.rawgevslice;
1805  nuoneid = sr.nuoneid;
1806  pi0id = sr.pi0id;
1807  nueccid = sr.nueccid;
1808  otherid = sr.otherid;
1809  epi0nuoneid = sr.epi0nuoneid;
1810  epi0pi0id = sr.epi0pi0id;
1811  noutput = sr.noutput;
1812 
1813  output_idx += output_length; // increment taken by previous record
1814  output_length = sr.output.size();
1815  for(const auto& x: sr.output){
1816  output = x;
1817  output_tree->Fill();
1818  }
1819 }
unsigned int noutput
Number of entries in output vector.
Definition: SRNuonEResult.h:27
float rawgevslice
event energy in GeV
Definition: SRNuonEResult.h:20
float pi0id
Likelihood primary prong is a pi0.
Definition: SRNuonEResult.h:22
float epi0nuoneid
Likelihood nu-on-e from epi0 classifier.
Definition: SRNuonEResult.h:25
float epi0pi0id
Likelihood pi0 from epi0 classifier.
Definition: SRNuonEResult.h:26
std::vector< float > output
List of net output nodes.
Definition: SRNuonEResult.h:19
float nueccid
Likelihood nuecc events.
Definition: SRNuonEResult.h:23
float nuoneid
Likelihood nu-on-e.
Definition: SRNuonEResult.h:21
float otherid
Likelihood other.
Definition: SRNuonEResult.h:24

Member Data Documentation

float flat::FlatNuonEResult::epi0nuoneid
protected

Definition at line 34 of file FlatNuonEResult.h.

Referenced by Fill(), and FlatNuonEResult().

float flat::FlatNuonEResult::epi0pi0id
protected

Definition at line 35 of file FlatNuonEResult.h.

Referenced by Fill(), and FlatNuonEResult().

unsigned int flat::FlatNuonEResult::noutput
protected

Definition at line 36 of file FlatNuonEResult.h.

Referenced by Fill(), and FlatNuonEResult().

float flat::FlatNuonEResult::nueccid
protected

Definition at line 32 of file FlatNuonEResult.h.

Referenced by Fill(), and FlatNuonEResult().

float flat::FlatNuonEResult::nuoneid
protected

Definition at line 30 of file FlatNuonEResult.h.

Referenced by Fill(), and FlatNuonEResult().

float flat::FlatNuonEResult::otherid
protected

Definition at line 33 of file FlatNuonEResult.h.

Referenced by Fill(), and FlatNuonEResult().

float flat::FlatNuonEResult::output
protected

Definition at line 39 of file FlatNuonEResult.h.

Referenced by Fill(), and FlatNuonEResult().

long flat::FlatNuonEResult::output_idx
protected

Definition at line 40 of file FlatNuonEResult.h.

Referenced by Fill(), and FlatNuonEResult().

int flat::FlatNuonEResult::output_length
protected

Definition at line 41 of file FlatNuonEResult.h.

Referenced by Fill(), and FlatNuonEResult().

TTree* flat::FlatNuonEResult::output_tree
protected

Definition at line 38 of file FlatNuonEResult.h.

Referenced by Fill(), FlatNuonEResult(), and ~FlatNuonEResult().

float flat::FlatNuonEResult::pi0id
protected

Definition at line 31 of file FlatNuonEResult.h.

Referenced by Fill(), and FlatNuonEResult().

float flat::FlatNuonEResult::rawgevslice
protected

Definition at line 29 of file FlatNuonEResult.h.

Referenced by Fill(), and FlatNuonEResult().


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