Public Member Functions | Public Attributes | List of all members
caf::Proxy< caf::SRLorentzVector > Class Template Reference

Proxy for caf::SRLorentzVector. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-01/StandardRecord/Proxy/SRProxy.h"

Public Member Functions

 Proxy (TDirectory *d, TTree *tr, const std::string &name, const long &base, int offset)
 
 Proxy (const Proxy &)=delete
 
 Proxy (const Proxy &&)=delete
 
Proxyoperator= (const caf::SRLorentzVector &x)
 
void CheckEquals (const caf::SRLorentzVector &sr) const
 
float T () const
 
float X () const
 
float Y () const
 
float Z () const
 
float Mag () const
 
float Beta () const
 
float Gamma () const
 
TVector3 Vect () const
 

Public Attributes

caf::Proxy< float > E
 
caf::Proxy< float > px
 
caf::Proxy< float > py
 
caf::Proxy< float > pz
 

Detailed Description

template<>
class caf::Proxy< caf::SRLorentzVector >

Proxy for caf::SRLorentzVector.

Definition at line 260 of file SRProxy.h.

Constructor & Destructor Documentation

caf::Proxy< caf::SRLorentzVector >::Proxy ( TDirectory *  d,
TTree *  tr,
const std::string name,
const long &  base,
int  offset 
)

Definition at line 461 of file SRProxy.cxx.

461  :
462  E(d, tr, Join(name, "E"), base, offset),
463  px(d, tr, Join(name, "px"), base, offset),
464  py(d, tr, Join(name, "py"), base, offset),
465  pz(d, tr, Join(name, "pz"), base, offset)
466 {
467 }
const XML_Char * name
Definition: expat.h:151
caf::Proxy< float > pz
Definition: SRProxy.h:287
const XML_Char int const XML_Char int const XML_Char * base
Definition: expat.h:331
std::string Join(const std::string &a, const std::string &b)
Definition: HDF5Record.h:17
caf::Proxy< float > px
Definition: SRProxy.h:285
Float_t d
Definition: plot.C:236
caf::Proxy< float > py
Definition: SRProxy.h:286

Member Function Documentation

float caf::Proxy< caf::SRLorentzVector >::Beta ( ) const
inline

Definition at line 279 of file SRProxy.h.

References E, and Mag().

279 {return Mag()/E;}
void caf::Proxy< caf::SRLorentzVector >::CheckEquals ( const caf::SRLorentzVector sr) const

Definition at line 478 of file SRProxy.cxx.

References E, caf::SRLorentzVector::E, caf::SRLorentzVector::px, caf::SRLorentzVector::py, and caf::SRLorentzVector::pz.

479 {
480  E.CheckEquals(sr.E);
481  px.CheckEquals(sr.px);
482  py.CheckEquals(sr.py);
483  pz.CheckEquals(sr.pz);
484 }
caf::Proxy< float > pz
Definition: SRProxy.h:287
caf::Proxy< float > px
Definition: SRProxy.h:285
caf::Proxy< float > py
Definition: SRProxy.h:286
void CheckEquals(const T &x) const
float caf::Proxy< caf::SRLorentzVector >::Gamma ( ) const
inline

Definition at line 280 of file SRProxy.h.

References Beta(), and std::sqrt().

280 {return 1/sqrt(1-Beta()*Beta());}
T sqrt(T number)
Definition: d0nt_math.hpp:156
float caf::Proxy< caf::SRLorentzVector >::Mag ( ) const
inline

Definition at line 278 of file SRProxy.h.

References std::sqrt().

278 {return sqrt(px*px + py*py + pz*pz);}
caf::Proxy< float > pz
Definition: SRProxy.h:287
T sqrt(T number)
Definition: d0nt_math.hpp:156
caf::Proxy< float > px
Definition: SRProxy.h:285
caf::Proxy< float > py
Definition: SRProxy.h:286

Definition at line 469 of file SRProxy.cxx.

References E, caf::SRLorentzVector::E, caf::SRLorentzVector::px, caf::SRLorentzVector::py, and caf::SRLorentzVector::pz.

470 {
471  E = sr.E;
472  px = sr.px;
473  py = sr.py;
474  pz = sr.pz;
475  return *this;
476 }
caf::Proxy< float > pz
Definition: SRProxy.h:287
caf::Proxy< float > px
Definition: SRProxy.h:285
caf::StandardRecord * sr
caf::Proxy< float > py
Definition: SRProxy.h:286
float caf::Proxy< caf::SRLorentzVector >::T ( ) const
inline

Definition at line 274 of file SRProxy.h.

References E.

274 {return E;}
TVector3 caf::Proxy< caf::SRLorentzVector >::Vect ( ) const
inline

Definition at line 282 of file SRProxy.h.

282 {return TVector3(px, py, pz);}
caf::Proxy< float > pz
Definition: SRProxy.h:287
caf::Proxy< float > px
Definition: SRProxy.h:285
caf::Proxy< float > py
Definition: SRProxy.h:286
float caf::Proxy< caf::SRLorentzVector >::X ( ) const
inline

Definition at line 275 of file SRProxy.h.

275 {return px;}
caf::Proxy< float > px
Definition: SRProxy.h:285
float caf::Proxy< caf::SRLorentzVector >::Y ( ) const
inline

Definition at line 276 of file SRProxy.h.

276 {return py;}
caf::Proxy< float > py
Definition: SRProxy.h:286
float caf::Proxy< caf::SRLorentzVector >::Z ( ) const
inline

Definition at line 277 of file SRProxy.h.

277 {return pz;}
caf::Proxy< float > pz
Definition: SRProxy.h:287

Member Data Documentation

Definition at line 284 of file SRProxy.h.

Definition at line 285 of file SRProxy.h.

Referenced by mcscore.MCParticle::__init__().

Definition at line 286 of file SRProxy.h.

Referenced by mcscore.MCParticle::__init__().

Definition at line 287 of file SRProxy.h.

Referenced by mcscore.MCParticle::__init__().


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