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

Proxy for caf::SRCosmic. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-02/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::SRCosmic &x)
 
void CheckEquals (const caf::SRCosmic &sr) const
 

Public Attributes

caf::Proxy< float > E
 
caf::Proxy< float > azimuth
 
caf::Proxy< float > eff
 
caf::Proxy< caf::SRVector3Denter
 
caf::Proxy< caf::SRVector3Dexit
 
caf::Proxy< std::vector< caf::SRTrueMichelE > > michel
 
caf::Proxy< unsigned intnhitslc
 
caf::Proxy< unsigned intnhittot
 
caf::Proxy< caf::SRLorentzVectorp
 
caf::Proxy< short intpdg
 
caf::Proxy< caf::SRLorentzVectorpenter
 
caf::Proxy< float > pur
 
caf::Proxy< caf::SRVector3Dstop
 
caf::Proxy< float > time
 
caf::Proxy< float > visE
 
caf::Proxy< float > visEinslc
 
caf::Proxy< caf::SRVector3Dvtx
 
caf::Proxy< float > zenith
 

Detailed Description

template<>
class caf::Proxy< caf::SRCosmic >

Proxy for caf::SRCosmic.

Definition at line 309 of file SRProxy.h.

Constructor & Destructor Documentation

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

Definition at line 514 of file SRProxy.cxx.

514  :
515  E(d, tr, Join(name, "E"), base, offset),
516  azimuth(d, tr, Join(name, "azimuth"), base, offset),
517  eff(d, tr, Join(name, "eff"), base, offset),
518  enter(d, tr, Join(name, "enter"), base, offset),
519  exit(d, tr, Join(name, "exit"), base, offset),
520  michel(d, tr, Join(name, "michel"), base, offset),
521  nhitslc(d, tr, Join(name, "nhitslc"), base, offset),
522  nhittot(d, tr, Join(name, "nhittot"), base, offset),
523  p(d, tr, Join(name, "p"), base, offset),
524  pdg(d, tr, Join(name, "pdg"), base, offset),
525  penter(d, tr, Join(name, "penter"), base, offset),
526  pur(d, tr, Join(name, "pur"), base, offset),
527  stop(d, tr, Join(name, "stop"), base, offset),
528  time(d, tr, Join(name, "time"), base, offset),
529  visE(d, tr, Join(name, "visE"), base, offset),
530  visEinslc(d, tr, Join(name, "visEinslc"), base, offset),
531  vtx(d, tr, Join(name, "vtx"), base, offset),
532  zenith(d, tr, Join(name, "zenith"), base, offset)
533 {
534 }
caf::Proxy< caf::SRLorentzVector > penter
Definition: SRProxy.h:329
const XML_Char * name
Definition: expat.h:151
caf::Proxy< caf::SRVector3D > exit
Definition: SRProxy.h:323
caf::Proxy< std::vector< caf::SRTrueMichelE > > michel
Definition: SRProxy.h:324
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< unsigned int > nhitslc
Definition: SRProxy.h:325
caf::Proxy< float > time
Definition: SRProxy.h:332
caf::Proxy< caf::SRVector3D > stop
Definition: SRProxy.h:331
Float_t d
Definition: plot.C:236
caf::Proxy< float > pur
Definition: SRProxy.h:330
caf::Proxy< float > eff
Definition: SRProxy.h:321
caf::Proxy< caf::SRVector3D > vtx
Definition: SRProxy.h:335
caf::Proxy< float > azimuth
Definition: SRProxy.h:320
caf::Proxy< float > zenith
Definition: SRProxy.h:336
caf::Proxy< caf::SRVector3D > enter
Definition: SRProxy.h:322
caf::Proxy< float > visE
Definition: SRProxy.h:333
caf::Proxy< unsigned int > nhittot
Definition: SRProxy.h:326
caf::Proxy< caf::SRLorentzVector > p
Definition: SRProxy.h:327
caf::Proxy< short int > pdg
Definition: SRProxy.h:328
caf::Proxy< float > visEinslc
Definition: SRProxy.h:334
caf::Proxy< float > E
Definition: SRProxy.h:319
caf::Proxy< caf::SRCosmic >::Proxy ( const Proxy< caf::SRCosmic > &  )
delete
caf::Proxy< caf::SRCosmic >::Proxy ( const Proxy< caf::SRCosmic > &&  )
delete

Member Function Documentation

void caf::Proxy< caf::SRCosmic >::CheckEquals ( const caf::SRCosmic sr) const

Definition at line 559 of file SRProxy.cxx.

References caf::SRCosmic::azimuth, E, caf::SRCosmic::E, nd_projection_maker::eff, caf::SRCosmic::eff, caf::SRCosmic::enter, caf::SRCosmic::exit, exit(), caf::SRCosmic::michel, caf::SRCosmic::nhitslc, caf::SRCosmic::nhittot, caf::SRCosmic::p, caf::SRCosmic::pdg, make_root_from_grid_output::pdg, caf::SRCosmic::penter, caf::SRCosmic::pur, PandAna.Demos.pi0_spectra::pur, caf::SRCosmic::stop, caf::SRCosmic::time, caf::SRCosmic::visE, caf::SRCosmic::visEinslc, caf::SRCosmic::vtx, and caf::SRCosmic::zenith.

560 {
561  E.CheckEquals(sr.E);
563  eff.CheckEquals(sr.eff);
564  enter.CheckEquals(sr.enter);
565  exit.CheckEquals(sr.exit);
566  michel.CheckEquals(sr.michel);
569  p.CheckEquals(sr.p);
570  pdg.CheckEquals(sr.pdg);
572  pur.CheckEquals(sr.pur);
573  stop.CheckEquals(sr.stop);
574  time.CheckEquals(sr.time);
575  visE.CheckEquals(sr.visE);
577  vtx.CheckEquals(sr.vtx);
579 }
caf::Proxy< caf::SRLorentzVector > penter
Definition: SRProxy.h:329
caf::Proxy< caf::SRVector3D > exit
Definition: SRProxy.h:323
SRVector3D enter
Cosmic entrance point in detector coordinates. [cm] When the primary doesn&#39;t enter the detector...
Definition: SRCosmic.h:40
float azimuth
Azimuth angle (w.r.t y-axis)
Definition: SRCosmic.h:38
const char * p
Definition: xmltok.h:285
caf::Proxy< std::vector< caf::SRTrueMichelE > > michel
Definition: SRProxy.h:324
SRLorentzVector p
True momentum [GeV].
Definition: SRCosmic.h:32
float visEinslc
Sum of FLS hits that made CellHits from this neutrino in this subevent [GeV].
Definition: SRCosmic.h:24
float pur
Slicer purity for this truth interaction.
Definition: SRCosmic.h:26
SRVector3D vtx
Vertex position in detector coordinates [cm].
Definition: SRCosmic.h:34
float zenith
Zenith angle (w.r.t y-axis)
Definition: SRCosmic.h:39
SRVector3D stop
Cosmic end point in detector coordinates, regardless of whether it is inside or outside the detector...
Definition: SRCosmic.h:43
float E
True energy [GeV].
Definition: SRCosmic.h:22
caf::Proxy< unsigned int > nhitslc
Definition: SRProxy.h:325
float eff
Slicer efficiency for this truth interaction.
Definition: SRCosmic.h:25
caf::Proxy< caf::SRVector3D > stop
Definition: SRProxy.h:331
SRVector3D exit
Cosmic exit point in detector coordinates. [cm] When the primary doesn&#39;t enter the detector...
Definition: SRCosmic.h:41
caf::Proxy< float > pur
Definition: SRProxy.h:330
caf::Proxy< float > eff
Definition: SRProxy.h:321
caf::Proxy< caf::SRVector3D > vtx
Definition: SRProxy.h:335
caf::Proxy< float > azimuth
Definition: SRProxy.h:320
unsigned int nhitslc
Number of hits recorded in this slice by this truth interaction.
Definition: SRCosmic.h:27
caf::Proxy< float > zenith
Definition: SRProxy.h:336
float visE
Sum of FLS hits that made CellHits from this neutrino [GeV].
Definition: SRCosmic.h:23
caf::Proxy< caf::SRVector3D > enter
Definition: SRProxy.h:322
std::vector< SRTrueMichelE > michel
Vector of true Michel electrons.
Definition: SRCosmic.h:36
caf::Proxy< float > visE
Definition: SRProxy.h:333
caf::Proxy< unsigned int > nhittot
Definition: SRProxy.h:326
short pdg
pdg code
Definition: SRCosmic.h:19
caf::Proxy< short int > pdg
Definition: SRProxy.h:328
void CheckEquals(const caf::SRLorentzVector &sr) const
Definition: SRProxy.cxx:478
SRLorentzVector penter
True momentum when entering the detector [GeV].
Definition: SRCosmic.h:33
void CheckEquals(const T &x) const
float time
interaction time.
Definition: SRCosmic.h:31
unsigned int nhittot
Total number of hits recorded for this truth interaction.
Definition: SRCosmic.h:28
caf::Proxy< float > visEinslc
Definition: SRProxy.h:334
void CheckEquals(const caf::SRVector3D &sr) const
Definition: SRProxy.cxx:140
caf::Proxy< float > E
Definition: SRProxy.h:319
caf::Proxy< caf::SRCosmic > & caf::Proxy< caf::SRCosmic >::operator= ( const caf::SRCosmic x)

Definition at line 536 of file SRProxy.cxx.

References caf::SRCosmic::azimuth, E, caf::SRCosmic::E, nd_projection_maker::eff, caf::SRCosmic::eff, caf::SRCosmic::enter, caf::SRCosmic::exit, exit(), caf::SRCosmic::michel, caf::SRCosmic::nhitslc, caf::SRCosmic::nhittot, caf::SRCosmic::p, caf::SRCosmic::pdg, make_root_from_grid_output::pdg, caf::SRCosmic::penter, caf::SRCosmic::pur, PandAna.Demos.pi0_spectra::pur, caf::SRCosmic::stop, caf::SRCosmic::time, caf::SRCosmic::visE, caf::SRCosmic::visEinslc, caf::SRCosmic::vtx, and caf::SRCosmic::zenith.

537 {
538  E = sr.E;
539  azimuth = sr.azimuth;
540  eff = sr.eff;
541  enter = sr.enter;
542  exit = sr.exit;
543  michel = sr.michel;
544  nhitslc = sr.nhitslc;
545  nhittot = sr.nhittot;
546  p = sr.p;
547  pdg = sr.pdg;
548  penter = sr.penter;
549  pur = sr.pur;
550  stop = sr.stop;
551  time = sr.time;
552  visE = sr.visE;
553  visEinslc = sr.visEinslc;
554  vtx = sr.vtx;
555  zenith = sr.zenith;
556  return *this;
557 }
caf::Proxy< caf::SRLorentzVector > penter
Definition: SRProxy.h:329
caf::Proxy< caf::SRVector3D > exit
Definition: SRProxy.h:323
const char * p
Definition: xmltok.h:285
caf::Proxy< std::vector< caf::SRTrueMichelE > > michel
Definition: SRProxy.h:324
caf::Proxy< unsigned int > nhitslc
Definition: SRProxy.h:325
caf::Proxy< caf::SRVector3D > stop
Definition: SRProxy.h:331
caf::StandardRecord * sr
caf::Proxy< float > pur
Definition: SRProxy.h:330
caf::Proxy< float > eff
Definition: SRProxy.h:321
caf::Proxy< caf::SRVector3D > vtx
Definition: SRProxy.h:335
caf::Proxy< float > azimuth
Definition: SRProxy.h:320
caf::Proxy< float > zenith
Definition: SRProxy.h:336
caf::Proxy< caf::SRVector3D > enter
Definition: SRProxy.h:322
caf::Proxy< float > visE
Definition: SRProxy.h:333
caf::Proxy< unsigned int > nhittot
Definition: SRProxy.h:326
caf::Proxy< short int > pdg
Definition: SRProxy.h:328
caf::Proxy< float > visEinslc
Definition: SRProxy.h:334
caf::Proxy< float > E
Definition: SRProxy.h:319
SRVertexBranch vtx
Vertex branch: location, time, etc.

Member Data Documentation

caf::Proxy<float> caf::Proxy< caf::SRCosmic >::azimuth

Definition at line 320 of file SRProxy.h.

Definition at line 319 of file SRProxy.h.

Definition at line 321 of file SRProxy.h.

Definition at line 322 of file SRProxy.h.

Definition at line 323 of file SRProxy.h.

Definition at line 324 of file SRProxy.h.

caf::Proxy<unsigned int> caf::Proxy< caf::SRCosmic >::nhitslc

Definition at line 325 of file SRProxy.h.

caf::Proxy<unsigned int> caf::Proxy< caf::SRCosmic >::nhittot

Definition at line 326 of file SRProxy.h.

Definition at line 327 of file SRProxy.h.

Definition at line 328 of file SRProxy.h.

Definition at line 329 of file SRProxy.h.

Definition at line 330 of file SRProxy.h.

Definition at line 331 of file SRProxy.h.

Definition at line 332 of file SRProxy.h.

Definition at line 333 of file SRProxy.h.

caf::Proxy<float> caf::Proxy< caf::SRCosmic >::visEinslc

Definition at line 334 of file SRProxy.h.

Definition at line 335 of file SRProxy.h.

caf::Proxy<float> caf::Proxy< caf::SRCosmic >::zenith

Definition at line 336 of file SRProxy.h.


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