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

Proxy for caf::SRHadClust. More...

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

Public Attributes

caf::Proxy< caf::SRVector3Dboxmax
 
caf::Proxy< caf::SRVector3Dboxmin
 
caf::Proxy< float > calE
 
caf::Proxy< unsigned intfirstcell
 
caf::Proxy< unsigned intfirstplane
 
caf::Proxy< unsigned intlastcell
 
caf::Proxy< unsigned intlastplane
 
caf::Proxy< caf::SRVector3Dmeanpos
 
caf::Proxy< unsigned intncalhit
 
caf::Proxy< unsigned intncellsfromedge
 
caf::Proxy< unsigned intncontplanes
 
caf::Proxy< unsigned intnhit
 
caf::Proxy< unsigned intnmiphit
 

Detailed Description

template<>
class caf::Proxy< caf::SRHadClust >

Proxy for caf::SRHadClust.

Definition at line 112 of file SRProxy.h.

Constructor & Destructor Documentation

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

Definition at line 147 of file SRProxy.cxx.

147  :
148  boxmax(d, tr, Join(name, "boxmax"), base, offset),
149  boxmin(d, tr, Join(name, "boxmin"), base, offset),
150  calE(d, tr, Join(name, "calE"), base, offset),
151  firstcell(d, tr, Join(name, "firstcell"), base, offset),
152  firstplane(d, tr, Join(name, "firstplane"), base, offset),
153  lastcell(d, tr, Join(name, "lastcell"), base, offset),
154  lastplane(d, tr, Join(name, "lastplane"), base, offset),
155  meanpos(d, tr, Join(name, "meanpos"), base, offset),
156  ncalhit(d, tr, Join(name, "ncalhit"), base, offset),
157  ncellsfromedge(d, tr, Join(name, "ncellsfromedge"), base, offset),
158  ncontplanes(d, tr, Join(name, "ncontplanes"), base, offset),
159  nhit(d, tr, Join(name, "nhit"), base, offset),
160  nmiphit(d, tr, Join(name, "nmiphit"), base, offset)
161 {
162 }
caf::Proxy< caf::SRVector3D > boxmax
Definition: SRProxy.h:122
const XML_Char * name
Definition: expat.h:151
caf::Proxy< float > calE
Definition: SRProxy.h:124
caf::Proxy< unsigned int > nmiphit
Definition: SRProxy.h:134
caf::Proxy< unsigned int > ncontplanes
Definition: SRProxy.h:132
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 > firstcell
Definition: SRProxy.h:125
caf::Proxy< unsigned int > lastcell
Definition: SRProxy.h:127
caf::Proxy< caf::SRVector3D > meanpos
Definition: SRProxy.h:129
Float_t d
Definition: plot.C:236
caf::Proxy< unsigned int > ncellsfromedge
Definition: SRProxy.h:131
caf::Proxy< unsigned int > ncalhit
Definition: SRProxy.h:130
caf::Proxy< unsigned int > lastplane
Definition: SRProxy.h:128
caf::Proxy< unsigned int > nhit
Definition: SRProxy.h:133
caf::Proxy< unsigned int > firstplane
Definition: SRProxy.h:126
caf::Proxy< caf::SRVector3D > boxmin
Definition: SRProxy.h:123
caf::Proxy< caf::SRHadClust >::Proxy ( const Proxy< caf::SRHadClust > &  )
delete
caf::Proxy< caf::SRHadClust >::Proxy ( const Proxy< caf::SRHadClust > &&  )
delete

Member Function Documentation

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

Definition at line 182 of file SRProxy.cxx.

References caf::SRHadClust::boxmax, caf::SRHadClust::boxmin, caf::SRHadClust::calE, caf::SRHadClust::firstcell, caf::SRHadClust::firstplane, caf::SRHadClust::lastcell, caf::SRHadClust::lastplane, caf::SRHadClust::meanpos, caf::SRHadClust::ncalhit, caf::SRHadClust::ncellsfromedge, caf::SRHadClust::ncontplanes, ncontplanes, caf::SRHadClust::nhit, demo1::nhit, caf::SRHadClust::nmiphit, and ana::nmiphit.

183 {
186  calE.CheckEquals(sr.calE);
195  nhit.CheckEquals(sr.nhit);
197 }
caf::Proxy< caf::SRVector3D > boxmax
Definition: SRProxy.h:122
unsigned int ncellsfromedge
minimum number of cells to edge of detector
Definition: SRHadClust.h:30
caf::Proxy< float > calE
Definition: SRProxy.h:124
caf::Proxy< unsigned int > nmiphit
Definition: SRProxy.h:134
unsigned int ncontplanes
number of continuous planes
Definition: SRHadClust.h:25
SRVector3D meanpos
Mean position of hits in cluster, weighted by charge [cm].
Definition: SRHadClust.h:34
unsigned int nhit
number of hits
Definition: SRHadClust.h:22
caf::Proxy< unsigned int > ncontplanes
Definition: SRProxy.h:132
caf::Proxy< unsigned int > firstcell
Definition: SRProxy.h:125
caf::Proxy< unsigned int > lastcell
Definition: SRProxy.h:127
caf::Proxy< caf::SRVector3D > meanpos
Definition: SRProxy.h:129
unsigned int nmiphit
number of minimum ionizing hits
Definition: SRHadClust.h:24
float calE
Calorimetric energy of the cluster [GeV].
Definition: SRHadClust.h:31
caf::Proxy< unsigned int > ncellsfromedge
Definition: SRProxy.h:131
caf::Proxy< unsigned int > ncalhit
Definition: SRProxy.h:130
caf::Proxy< unsigned int > lastplane
Definition: SRProxy.h:128
unsigned int lastcell
last cell
Definition: SRHadClust.h:29
unsigned int ncalhit
number of hits with calibration
Definition: SRHadClust.h:23
SRVector3D boxmin
Minimum coordinates box containing all the hits [cm].
Definition: SRHadClust.h:32
unsigned int firstcell
first cell
Definition: SRHadClust.h:28
unsigned int firstplane
first plane
Definition: SRHadClust.h:26
void CheckEquals(const T &x) const
caf::Proxy< unsigned int > nhit
Definition: SRProxy.h:133
caf::Proxy< unsigned int > firstplane
Definition: SRProxy.h:126
caf::Proxy< caf::SRVector3D > boxmin
Definition: SRProxy.h:123
unsigned int lastplane
last plane
Definition: SRHadClust.h:27
void CheckEquals(const caf::SRVector3D &sr) const
Definition: SRProxy.cxx:140
SRVector3D boxmax
Maximum coordinates box containing all the hits [cm].
Definition: SRHadClust.h:33

Definition at line 164 of file SRProxy.cxx.

References caf::SRHadClust::boxmax, caf::SRHadClust::boxmin, caf::SRHadClust::calE, caf::SRHadClust::firstcell, caf::SRHadClust::firstplane, caf::SRHadClust::lastcell, caf::SRHadClust::lastplane, caf::SRHadClust::meanpos, caf::SRHadClust::ncalhit, caf::SRHadClust::ncellsfromedge, caf::SRHadClust::ncontplanes, ncontplanes, caf::SRHadClust::nhit, demo1::nhit, caf::SRHadClust::nmiphit, and ana::nmiphit.

165 {
166  boxmax = sr.boxmax;
167  boxmin = sr.boxmin;
168  calE = sr.calE;
169  firstcell = sr.firstcell;
170  firstplane = sr.firstplane;
171  lastcell = sr.lastcell;
172  lastplane = sr.lastplane;
173  meanpos = sr.meanpos;
174  ncalhit = sr.ncalhit;
175  ncellsfromedge = sr.ncellsfromedge;
176  ncontplanes = sr.ncontplanes;
177  nhit = sr.nhit;
178  nmiphit = sr.nmiphit;
179  return *this;
180 }
caf::Proxy< caf::SRVector3D > boxmax
Definition: SRProxy.h:122
caf::Proxy< float > calE
Definition: SRProxy.h:124
caf::Proxy< unsigned int > nmiphit
Definition: SRProxy.h:134
caf::Proxy< unsigned int > ncontplanes
Definition: SRProxy.h:132
caf::Proxy< unsigned int > firstcell
Definition: SRProxy.h:125
caf::Proxy< unsigned int > lastcell
Definition: SRProxy.h:127
caf::Proxy< caf::SRVector3D > meanpos
Definition: SRProxy.h:129
caf::StandardRecord * sr
caf::Proxy< unsigned int > ncellsfromedge
Definition: SRProxy.h:131
caf::Proxy< unsigned int > ncalhit
Definition: SRProxy.h:130
caf::Proxy< unsigned int > lastplane
Definition: SRProxy.h:128
caf::Proxy< unsigned int > nhit
Definition: SRProxy.h:133
caf::Proxy< unsigned int > firstplane
Definition: SRProxy.h:126
caf::Proxy< caf::SRVector3D > boxmin
Definition: SRProxy.h:123

Member Data Documentation

Definition at line 122 of file SRProxy.h.

Definition at line 123 of file SRProxy.h.

Definition at line 124 of file SRProxy.h.

caf::Proxy<unsigned int> caf::Proxy< caf::SRHadClust >::firstcell

Definition at line 125 of file SRProxy.h.

caf::Proxy<unsigned int> caf::Proxy< caf::SRHadClust >::firstplane

Definition at line 126 of file SRProxy.h.

caf::Proxy<unsigned int> caf::Proxy< caf::SRHadClust >::lastcell

Definition at line 127 of file SRProxy.h.

caf::Proxy<unsigned int> caf::Proxy< caf::SRHadClust >::lastplane

Definition at line 128 of file SRProxy.h.

Definition at line 129 of file SRProxy.h.

caf::Proxy<unsigned int> caf::Proxy< caf::SRHadClust >::ncalhit

Definition at line 130 of file SRProxy.h.

caf::Proxy<unsigned int> caf::Proxy< caf::SRHadClust >::ncellsfromedge

Definition at line 131 of file SRProxy.h.

caf::Proxy<unsigned int> caf::Proxy< caf::SRHadClust >::ncontplanes

Definition at line 132 of file SRProxy.h.

Definition at line 133 of file SRProxy.h.

caf::Proxy<unsigned int> caf::Proxy< caf::SRHadClust >::nmiphit

Definition at line 134 of file SRProxy.h.


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