Public Member Functions | Public Attributes | List of all members
ana::CVNPng Struct Reference

#include "/cvmfs/"

Inheritance diagram for ana::CVNPng:

Public Member Functions

 CVNPng (int ret)
std::vector< double > operator() (const caf::SRProxy *sr) const
double CVN (const caf::SRCVNParticleResultProxy &cvn) const

Public Attributes

int fRet

Detailed Description

Definition at line 70 of file PngCVNVars.h.

Constructor & Destructor Documentation

ana::CVNPng::CVNPng ( int  ret)

Definition at line 72 of file PngCVNVars.h.

References CVN(), operator()(), and sr.

72 : fRet(ret) {}

Member Function Documentation

double ana::CVNPng::CVN ( const caf::SRCVNParticleResultProxy cvn) const

Definition at line 103 of file PngCVNVars.cxx.

References fRet, ana::kElectronPDG, ana::kGammaPDG, ana::kMuonPDG, ana::kPionPDG, ana::kPizeroPDG, and ana::kProtonPDG.

Referenced by CVNPng(), operator()(), and ana::CVNPngTruthSel::operator()().

104  {
105  switch(fRet){
106  case kElectronPDG: return cvn.electronid;
107  case kMuonPDG: return cvn.muonid;
108  case kGammaPDG: return cvn.photonid;
109  case kPizeroPDG: return cvn.pizeroid;
110  case kPionPDG: return cvn.pionid;
111  case kProtonPDG: return cvn.protonid;
112  case 0: return cvn.otherid;
113  default: abort();
114  }
115  }
const int kPizeroPDG
Definition: PngCVNVars.h:31
const int kElectronPDG
Definition: PngCVNVars.h:28
const int kMuonPDG
Definition: PngCVNVars.h:29
const int kProtonPDG
Definition: PngCVNVars.h:33
const int kGammaPDG
Definition: PngCVNVars.h:30
const int kPionPDG
Definition: PngCVNVars.h:32
std::vector< double > ana::CVNPng::operator() ( const caf::SRProxy sr) const

Definition at line 93 of file PngCVNVars.cxx.

References CVN(), caf::Proxy< caf::SRVertexBranch >::elastic, caf::Proxy< caf::SRElastic >::fuzzyk, caf::Proxy< caf::SRFuzzyK >::png, febshutoff_auto::val, and caf::Proxy< caf::StandardRecord >::vtx.

Referenced by CVNPng(), and ana::CVNPngTruthSel::CVNPngTruthSel().

94  {
95  std::vector<double> val;
96  for(auto& png: sr->vtx.elastic.fuzzyk.png){
97  val.push_back(CVN(png.cvnpart));
98  }
99  return val;
100  }
caf::Proxy< caf::SRFuzzyK > fuzzyk
Definition: SRProxy.h:2058
caf::Proxy< caf::SRElastic > elastic
Definition: SRProxy.h:2117
double CVN(const caf::SRCVNParticleResultProxy &cvn) const
Definition: PngCVNVars.cxx:103
caf::Proxy< std::vector< caf::SRFuzzyKProng > > png
Definition: SRProxy.h:2042
caf::Proxy< caf::SRVertexBranch > vtx
Definition: SRProxy.h:2145

Member Data Documentation

int ana::CVNPng::fRet

Definition at line 78 of file PngCVNVars.h.

Referenced by CVN().

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