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

Flat encoding of SRSlice. More...

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

Public Member Functions

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

Protected Attributes

unsigned int nhit
 
unsigned int ncalhit
 
unsigned int nmiphit
 
unsigned int ncontplanes
 
unsigned int firstplane
 
unsigned int lastplane
 
unsigned int firstcell
 
unsigned int lastcell
 
unsigned int ncellsfromedge
 
unsigned int nnonnoise
 
unsigned int nnoisehit
 
float fracnoiseE
 
float fracnoisePE
 
float calE
 
float starttime
 
float endtime
 
float meantime
 
float tsd
 
float closestslicetime
 
unsigned int closestslicenhit
 
float closestslicecalE
 
float closestsliceminfromtop
 
float closestsliceminfrombottom
 
float closestsliceminfromfront
 
float closestsliceminfromback
 
float closestsliceminfromeast
 
float closestsliceminfromwest
 
float closestslicemindist
 
FlatVector3D boxmin
 
FlatVector3D boxmax
 
FlatVector3D meanpos
 

Detailed Description

Flat encoding of SRSlice.

Definition at line 21 of file FlatSlice.h.

Constructor & Destructor Documentation

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

Definition at line 4873 of file FlatRecord.cxx.

References compare_h5_caf::branch, calE, closestslicecalE, closestslicemindist, closestsliceminfromback, closestsliceminfrombottom, closestsliceminfromeast, closestsliceminfromfront, closestsliceminfromtop, closestsliceminfromwest, closestslicenhit, closestslicetime, endtime, firstcell, firstplane, fracnoiseE, fracnoisePE, lastcell, lastplane, meantime, ncalhit, ncellsfromedge, ncontplanes, nhit, nmiphit, nnoisehit, nnonnoise, starttime, and tsd.

4874  : boxmin(prefix+"boxmin.", tr, policy),
4875  boxmax(prefix+"boxmax.", tr, policy),
4876  meanpos(prefix+"meanpos.", tr, policy)
4877 {
4878  branch(tr, prefix+"nhit", &nhit, policy);
4879  branch(tr, prefix+"ncalhit", &ncalhit, policy);
4880  branch(tr, prefix+"nmiphit", &nmiphit, policy);
4881  branch(tr, prefix+"ncontplanes", &ncontplanes, policy);
4882  branch(tr, prefix+"firstplane", &firstplane, policy);
4883  branch(tr, prefix+"lastplane", &lastplane, policy);
4884  branch(tr, prefix+"firstcell", &firstcell, policy);
4885  branch(tr, prefix+"lastcell", &lastcell, policy);
4886  branch(tr, prefix+"ncellsfromedge", &ncellsfromedge, policy);
4887  branch(tr, prefix+"nnonnoise", &nnonnoise, policy);
4888  branch(tr, prefix+"nnoisehit", &nnoisehit, policy);
4889  branch(tr, prefix+"fracnoiseE", &fracnoiseE, policy);
4890  branch(tr, prefix+"fracnoisePE", &fracnoisePE, policy);
4891  branch(tr, prefix+"calE", &calE, policy);
4892  branch(tr, prefix+"starttime", &starttime, policy);
4893  branch(tr, prefix+"endtime", &endtime, policy);
4894  branch(tr, prefix+"meantime", &meantime, policy);
4895  branch(tr, prefix+"tsd", &tsd, policy);
4896  branch(tr, prefix+"closestslicetime", &closestslicetime, policy);
4897  branch(tr, prefix+"closestslicenhit", &closestslicenhit, policy);
4898  branch(tr, prefix+"closestslicecalE", &closestslicecalE, policy);
4899  branch(tr, prefix+"closestsliceminfromtop", &closestsliceminfromtop, policy);
4900  branch(tr, prefix+"closestsliceminfrombottom", &closestsliceminfrombottom, policy);
4901  branch(tr, prefix+"closestsliceminfromfront", &closestsliceminfromfront, policy);
4902  branch(tr, prefix+"closestsliceminfromback", &closestsliceminfromback, policy);
4903  branch(tr, prefix+"closestsliceminfromeast", &closestsliceminfromeast, policy);
4904  branch(tr, prefix+"closestsliceminfromwest", &closestsliceminfromwest, policy);
4905  branch(tr, prefix+"closestslicemindist", &closestslicemindist, policy);
4906 }
FlatVector3D boxmin
Definition: FlatSlice.h:59
float closestslicemindist
Definition: FlatSlice.h:57
float starttime
Definition: FlatSlice.h:44
unsigned int firstplane
Definition: FlatSlice.h:34
float fracnoiseE
Definition: FlatSlice.h:41
float meantime
Definition: FlatSlice.h:46
unsigned int lastcell
Definition: FlatSlice.h:37
unsigned int closestslicenhit
Definition: FlatSlice.h:49
unsigned int firstcell
Definition: FlatSlice.h:36
float closestslicetime
Definition: FlatSlice.h:48
float closestslicecalE
Definition: FlatSlice.h:50
unsigned int nnonnoise
Definition: FlatSlice.h:39
float closestsliceminfromback
Definition: FlatSlice.h:54
unsigned int ncontplanes
Definition: FlatSlice.h:33
float fracnoisePE
Definition: FlatSlice.h:42
float closestsliceminfromwest
Definition: FlatSlice.h:56
unsigned int ncellsfromedge
Definition: FlatSlice.h:38
const XML_Char * prefix
Definition: expat.h:380
float closestsliceminfrombottom
Definition: FlatSlice.h:52
float closestsliceminfromeast
Definition: FlatSlice.h:55
unsigned int ncalhit
Definition: FlatSlice.h:31
unsigned int nmiphit
Definition: FlatSlice.h:32
unsigned int lastplane
Definition: FlatSlice.h:35
float closestsliceminfromtop
Definition: FlatSlice.h:51
FlatVector3D boxmax
Definition: FlatSlice.h:60
float closestsliceminfromfront
Definition: FlatSlice.h:53
FlatVector3D meanpos
Definition: FlatSlice.h:61
unsigned int nnoisehit
Definition: FlatSlice.h:40
unsigned int nhit
Definition: FlatSlice.h:30
flat::FlatSlice::~FlatSlice ( )

Definition at line 4908 of file FlatRecord.cxx.

4909 {
4910 }

Member Function Documentation

void flat::FlatSlice::Fill ( const caf::SRSlice sr)

Definition at line 4912 of file FlatRecord.cxx.

References caf::SRSlice::boxmax, boxmax, caf::SRSlice::boxmin, boxmin, caf::SRSlice::calE, calE, caf::SRSlice::closestslicecalE, closestslicecalE, caf::SRSlice::closestslicemindist, closestslicemindist, caf::SRSlice::closestsliceminfromback, closestsliceminfromback, caf::SRSlice::closestsliceminfrombottom, closestsliceminfrombottom, caf::SRSlice::closestsliceminfromeast, closestsliceminfromeast, caf::SRSlice::closestsliceminfromfront, closestsliceminfromfront, caf::SRSlice::closestsliceminfromtop, closestsliceminfromtop, caf::SRSlice::closestsliceminfromwest, closestsliceminfromwest, caf::SRSlice::closestslicenhit, closestslicenhit, caf::SRSlice::closestslicetime, closestslicetime, caf::SRSlice::endtime, endtime, flat::FlatVector3D::Fill(), caf::SRSlice::firstcell, firstcell, caf::SRSlice::firstplane, firstplane, caf::SRSlice::fracnoiseE, fracnoiseE, caf::SRSlice::fracnoisePE, fracnoisePE, caf::SRSlice::lastcell, lastcell, caf::SRSlice::lastplane, lastplane, caf::SRSlice::meanpos, meanpos, caf::SRSlice::meantime, meantime, caf::SRSlice::ncalhit, ncalhit, caf::SRSlice::ncellsfromedge, ncellsfromedge, caf::SRSlice::ncontplanes, ncontplanes, caf::SRSlice::nhit, nhit, caf::SRSlice::nmiphit, nmiphit, caf::SRSlice::nnoisehit, nnoisehit, caf::SRSlice::nnonnoise, nnonnoise, caf::SRSlice::starttime, starttime, caf::SRSlice::tsd, and tsd.

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

4913 {
4914  nhit = sr.nhit;
4915  ncalhit = sr.ncalhit;
4916  nmiphit = sr.nmiphit;
4917  ncontplanes = sr.ncontplanes;
4918  firstplane = sr.firstplane;
4919  lastplane = sr.lastplane;
4920  firstcell = sr.firstcell;
4921  lastcell = sr.lastcell;
4923  nnonnoise = sr.nnonnoise;
4924  nnoisehit = sr.nnoisehit;
4925  fracnoiseE = sr.fracnoiseE;
4926  fracnoisePE = sr.fracnoisePE;
4927  calE = sr.calE;
4928  starttime = sr.starttime;
4929  endtime = sr.endtime;
4930  meantime = sr.meantime;
4931  tsd = sr.tsd;
4942 
4943  boxmin.Fill(sr.boxmin);
4944  boxmax.Fill(sr.boxmax);
4945  meanpos.Fill(sr.meanpos);
4946 }
float closestslicemindist
minimum distance to the closest slice in time domain
Definition: SRSlice.h:56
FlatVector3D boxmin
Definition: FlatSlice.h:59
float closestslicemindist
Definition: FlatSlice.h:57
unsigned int lastplane
last plane
Definition: SRSlice.h:27
unsigned int firstplane
first plane
Definition: SRSlice.h:26
void Fill(const caf::SRVector3D &sr)
float closestsliceminfromback
minimum distance to edge of detector in the closest slice
Definition: SRSlice.h:53
SRVector3D boxmax
Maximum coordinates box containing all the hits [cm].
Definition: SRSlice.h:47
float starttime
Definition: FlatSlice.h:44
unsigned int firstplane
Definition: FlatSlice.h:34
float fracnoiseE
Definition: FlatSlice.h:41
float meantime
Definition: FlatSlice.h:46
float starttime
start time [ns]
Definition: SRSlice.h:39
unsigned int lastcell
Definition: FlatSlice.h:37
unsigned int closestslicenhit
Definition: FlatSlice.h:49
unsigned int firstcell
Definition: FlatSlice.h:36
float closestslicecalE
Calorimetric energy of the closest-in-time slice (GeV)
Definition: SRSlice.h:45
float closestslicetime
Definition: FlatSlice.h:48
float closestsliceminfromeast
minimum distance to edge of detector in the closest slice
Definition: SRSlice.h:54
float fracnoisePE
Fraction of energy which comes from noise.
Definition: SRSlice.h:35
unsigned int closestslicenhit
Number of hits in the closest-in-time slice.
Definition: SRSlice.h:44
float endtime
end time [ns]
Definition: SRSlice.h:40
float closestslicecalE
Definition: FlatSlice.h:50
SRVector3D boxmin
Minimum coordinates box containing all the hits [cm].
Definition: SRSlice.h:46
unsigned int nnonnoise
Definition: FlatSlice.h:39
float closestsliceminfromback
Definition: FlatSlice.h:54
float closestsliceminfrombottom
minimum distance to edge of detector in the closest slice
Definition: SRSlice.h:51
unsigned int nmiphit
number of minimum ionizing hits
Definition: SRSlice.h:24
unsigned int ncontplanes
Definition: FlatSlice.h:33
float fracnoisePE
Definition: FlatSlice.h:42
float closestsliceminfromwest
Definition: FlatSlice.h:56
float calE
Calorimetric energy of the cluster [GeV].
Definition: SRSlice.h:38
float tsd
standard deviation of slice hits in time in nanoseconds
Definition: SRSlice.h:42
unsigned int ncellsfromedge
Definition: FlatSlice.h:38
unsigned int nhit
number of hits
Definition: SRSlice.h:22
float closestsliceminfrombottom
Definition: FlatSlice.h:52
unsigned int ncalhit
number of hits with calibration
Definition: SRSlice.h:23
unsigned int firstcell
first cell
Definition: SRSlice.h:28
unsigned int ncellsfromedge
minimum number of cells to edge of detector
Definition: SRSlice.h:30
unsigned int nnonnoise
Definition: SRSlice.h:31
float closestsliceminfromeast
Definition: FlatSlice.h:55
unsigned int ncalhit
Definition: FlatSlice.h:31
unsigned int nmiphit
Definition: FlatSlice.h:32
unsigned int nnoisehit
Number of noise hits (calibrated)
Definition: SRSlice.h:33
unsigned int lastplane
Definition: FlatSlice.h:35
float closestsliceminfromtop
Definition: FlatSlice.h:51
FlatVector3D boxmax
Definition: FlatSlice.h:60
unsigned int lastcell
last cell
Definition: SRSlice.h:29
float closestsliceminfromwest
minimum distance to edge of detector in the closest slice
Definition: SRSlice.h:55
SRVector3D meanpos
Mean position of hits in slice, weighted by charge [cm].
Definition: SRSlice.h:48
float fracnoiseE
Fraction of energy which comes from noise.
Definition: SRSlice.h:34
unsigned int ncontplanes
number of continuous planes
Definition: SRSlice.h:25
float closestsliceminfromfront
Definition: FlatSlice.h:53
float closestslicetime
time difference between meantime of this slice and meantime of slice closest in time, in nanoseconds.
Definition: SRSlice.h:43
float closestsliceminfromtop
minimum distance to edge of detector in the closest slice
Definition: SRSlice.h:50
FlatVector3D meanpos
Definition: FlatSlice.h:61
float closestsliceminfromfront
minimum distance to edge of detector in the closest slice
Definition: SRSlice.h:52
unsigned int nnoisehit
Definition: FlatSlice.h:40
float meantime
mean time, weighted by charge [ns]
Definition: SRSlice.h:41
unsigned int nhit
Definition: FlatSlice.h:30

Member Data Documentation

FlatVector3D flat::FlatSlice::boxmax
protected

Definition at line 60 of file FlatSlice.h.

Referenced by Fill().

FlatVector3D flat::FlatSlice::boxmin
protected

Definition at line 59 of file FlatSlice.h.

Referenced by Fill().

float flat::FlatSlice::calE
protected

Definition at line 43 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

float flat::FlatSlice::closestslicecalE
protected

Definition at line 50 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

float flat::FlatSlice::closestslicemindist
protected

Definition at line 57 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

float flat::FlatSlice::closestsliceminfromback
protected

Definition at line 54 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

float flat::FlatSlice::closestsliceminfrombottom
protected

Definition at line 52 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

float flat::FlatSlice::closestsliceminfromeast
protected

Definition at line 55 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

float flat::FlatSlice::closestsliceminfromfront
protected

Definition at line 53 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

float flat::FlatSlice::closestsliceminfromtop
protected

Definition at line 51 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

float flat::FlatSlice::closestsliceminfromwest
protected

Definition at line 56 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

unsigned int flat::FlatSlice::closestslicenhit
protected

Definition at line 49 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

float flat::FlatSlice::closestslicetime
protected

Definition at line 48 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

float flat::FlatSlice::endtime
protected

Definition at line 45 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

unsigned int flat::FlatSlice::firstcell
protected

Definition at line 36 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

unsigned int flat::FlatSlice::firstplane
protected

Definition at line 34 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

float flat::FlatSlice::fracnoiseE
protected

Definition at line 41 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

float flat::FlatSlice::fracnoisePE
protected

Definition at line 42 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

unsigned int flat::FlatSlice::lastcell
protected

Definition at line 37 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

unsigned int flat::FlatSlice::lastplane
protected

Definition at line 35 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

FlatVector3D flat::FlatSlice::meanpos
protected

Definition at line 61 of file FlatSlice.h.

Referenced by Fill().

float flat::FlatSlice::meantime
protected

Definition at line 46 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

unsigned int flat::FlatSlice::ncalhit
protected

Definition at line 31 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

unsigned int flat::FlatSlice::ncellsfromedge
protected

Definition at line 38 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

unsigned int flat::FlatSlice::ncontplanes
protected

Definition at line 33 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

unsigned int flat::FlatSlice::nhit
protected

Definition at line 30 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

unsigned int flat::FlatSlice::nmiphit
protected

Definition at line 32 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

unsigned int flat::FlatSlice::nnoisehit
protected

Definition at line 40 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

unsigned int flat::FlatSlice::nnonnoise
protected

Definition at line 39 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

float flat::FlatSlice::starttime
protected

Definition at line 44 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().

float flat::FlatSlice::tsd
protected

Definition at line 47 of file FlatSlice.h.

Referenced by Fill(), and FlatSlice().


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