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

Flat encoding of SRBpfId. More...

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

Public Member Functions

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

Protected Attributes

int bestVtxIdx
 
int bestPngIdx
 
int bestBpfIdx
 
int pdg
 
float pid
 
float chi2T
 
float dEdXLL
 
float hitRatio
 
float energy
 
float len
 
FlatVector3D momentum
 

Detailed Description

Flat encoding of SRBpfId.

Definition at line 21 of file FlatBpfId.h.

Constructor & Destructor Documentation

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

Definition at line 2447 of file FlatRecord.cxx.

References bestBpfIdx, bestPngIdx, bestVtxIdx, compare_h5_caf::branch, chi2T, dEdXLL, energy, hitRatio, pdg, and pid.

2448  : momentum(prefix+"momentum.", tr, policy)
2449 {
2450  branch(tr, prefix+"bestVtxIdx", &bestVtxIdx, policy);
2451  branch(tr, prefix+"bestPngIdx", &bestPngIdx, policy);
2452  branch(tr, prefix+"bestBpfIdx", &bestBpfIdx, policy);
2453  branch(tr, prefix+"pdg", &pdg, policy);
2454  branch(tr, prefix+"pid", &pid, policy);
2455  branch(tr, prefix+"chi2T", &chi2T, policy);
2456  branch(tr, prefix+"dEdXLL", &dEdXLL, policy);
2457  branch(tr, prefix+"hitRatio", &hitRatio, policy);
2458  branch(tr, prefix+"energy", &energy, policy);
2459  branch(tr, prefix+"len", &len, policy);
2460 }
const XML_Char int len
Definition: expat.h:262
float hitRatio
Definition: FlatBpfId.h:37
FlatVector3D momentum
Definition: FlatBpfId.h:41
const XML_Char * prefix
Definition: expat.h:380
flat::FlatBpfId::~FlatBpfId ( )

Definition at line 2462 of file FlatRecord.cxx.

2463 {
2464 }

Member Function Documentation

void flat::FlatBpfId::Fill ( const caf::SRBpfId sr)

Definition at line 2466 of file FlatRecord.cxx.

References caf::SRBpfId::bestBpfIdx, bestBpfIdx, caf::SRBpfId::bestPngIdx, bestPngIdx, caf::SRBpfId::bestVtxIdx, bestVtxIdx, caf::SRBpfId::chi2T, chi2T, caf::SRBpfId::dEdXLL, dEdXLL, caf::SRBpfId::energy, energy, flat::FlatVector3D::Fill(), caf::SRBpfId::hitRatio, hitRatio, caf::SRBpfId::len, caf::SRBpfId::momentum, momentum, caf::SRBpfId::pdg, pdg, caf::SRBpfId::pid, and pid.

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

2467 {
2468  bestVtxIdx = sr.bestVtxIdx;
2469  bestPngIdx = sr.bestPngIdx;
2470  bestBpfIdx = sr.bestBpfIdx;
2471  pdg = sr.pdg;
2472  pid = sr.pid;
2473  chi2T = sr.chi2T;
2474  dEdXLL = sr.dEdXLL;
2475  hitRatio = sr.hitRatio;
2476  energy = sr.energy;
2477  len = sr.len;
2478 
2479  momentum.Fill(sr.momentum);
2480 }
const XML_Char int len
Definition: expat.h:262
float hitRatio
Definition: FlatBpfId.h:37
int pdg
pdg code for the tracking assumption used to make the best muon track
Definition: SRBpfId.h:27
void Fill(const caf::SRVector3D &sr)
int bestVtxIdx
elastic arms vertex index for the best muon track
Definition: SRBpfId.h:24
FlatVector3D momentum
Definition: FlatBpfId.h:41
int bestBpfIdx
bpf track index for the best muon track
Definition: SRBpfId.h:26
float len
reconstructed track length for the best muon track (input variable for the muon PID) ...
Definition: SRBpfId.h:35
float hitRatio
ratio of hits in track to hits in prong (input to the muon PID) for the best muon track ...
Definition: SRBpfId.h:31
float energy
reconstructed total energy for the best muon track
Definition: SRBpfId.h:33
float pid
muon PID value from the best muon track
Definition: SRBpfId.h:28
float chi2T
total chi^2 from the track fit for the best muon track
Definition: SRBpfId.h:29
int bestPngIdx
fuzzyk prong index for the best muon track
Definition: SRBpfId.h:25
SRVector3D momentum
reconstructed momentum for the best muon track (access via: sel.bpfid.momentum.{x,y,z})
Definition: SRBpfId.h:32
float dEdXLL
dE/dx log-likelihood from the best muon track (input to the muon PID)
Definition: SRBpfId.h:30

Member Data Documentation

int flat::FlatBpfId::bestBpfIdx
protected

Definition at line 32 of file FlatBpfId.h.

Referenced by Fill(), and FlatBpfId().

int flat::FlatBpfId::bestPngIdx
protected

Definition at line 31 of file FlatBpfId.h.

Referenced by Fill(), and FlatBpfId().

int flat::FlatBpfId::bestVtxIdx
protected

Definition at line 30 of file FlatBpfId.h.

Referenced by Fill(), and FlatBpfId().

float flat::FlatBpfId::chi2T
protected

Definition at line 35 of file FlatBpfId.h.

Referenced by Fill(), and FlatBpfId().

float flat::FlatBpfId::dEdXLL
protected

Definition at line 36 of file FlatBpfId.h.

Referenced by Fill(), and FlatBpfId().

float flat::FlatBpfId::energy
protected

Definition at line 38 of file FlatBpfId.h.

Referenced by Fill(), and FlatBpfId().

float flat::FlatBpfId::hitRatio
protected

Definition at line 37 of file FlatBpfId.h.

Referenced by Fill(), and FlatBpfId().

float flat::FlatBpfId::len
protected

Definition at line 39 of file FlatBpfId.h.

FlatVector3D flat::FlatBpfId::momentum
protected

Definition at line 41 of file FlatBpfId.h.

Referenced by Fill().

int flat::FlatBpfId::pdg
protected

Definition at line 33 of file FlatBpfId.h.

Referenced by flat::FlatMuId::Fill(), Fill(), FlatBpfId(), and flat::FlatMuId::FlatMuId().

float flat::FlatBpfId::pid
protected

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