SRSlice.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // \file SRSlice.h
3 // \version $Id: SRSlice.h,v 1.5 2012-12-07 21:06:22 rocco Exp $
4 // \author $Author: rocco $
5 // \date $Date: 2012-12-07 21:06:22 $
6 ////////////////////////////////////////////////////////////////////////
7 #ifndef SRSLICE_H
8 #define SRSLICE_H
9 
11 
12 namespace caf
13 {
14  /// An SRSlice contains overarching information for a slice.
15  class SRSlice
16  {
17  public:
18  SRSlice();
19  virtual ~SRSlice();
20 
21 
22  unsigned int nhit; ///< number of hits
23  unsigned int ncalhit; ///< number of hits with calibration
24  unsigned int nmiphit; ///< number of minimum ionizing hits
25  unsigned int ncontplanes; ///< number of continuous planes
26  unsigned int firstplane; ///< first plane
27  unsigned int lastplane; ///< last plane
28  unsigned int firstcell; ///< first cell
29  unsigned int lastcell; ///< last cell
30  unsigned int ncellsfromedge; ///< minimum number of cells to edge of detector
31  unsigned int nnonnoise; ///< number of non noise slices in event from which this slice came
32  ///< or number of slices in CAF coming from the same event.
33  unsigned int nnoisehit; ///< Number of noise hits (calibrated)
34  float fracnoiseE; ///< Fraction of energy which comes from noise
35  float fracnoisePE; ///< Fraction of energy which comes from noise
36 
37 
38  float calE; ///< Calorimetric energy of the cluster [GeV]
39  float starttime; ///< start time [ns]
40  float endtime; ///< end time [ns]
41  float meantime; ///< mean time, weighted by charge [ns]
42  float tsd; ///< standard deviation of slice hits in time in nanoseconds
43  float closestslicetime; ///< time difference between meantime of this slice and meantime of slice closest in time, in nanoseconds.
44  unsigned int closestslicenhit; ///< Number of hits in the closest-in-time slice
45  float closestslicecalE; ///< Calorimetric energy of the closest-in-time slice (GeV)
46  SRVector3D boxmin; ///< Minimum coordinates box containing all the hits [cm]
47  SRVector3D boxmax; ///< Maximum coordinates box containing all the hits [cm]
48  SRVector3D meanpos; ///< Mean position of hits in slice, weighted by charge [cm]
49 
50  float closestsliceminfromtop; ///< minimum distance to edge of detector in the closest slice
51  float closestsliceminfrombottom; ///< minimum distance to edge of detector in the closest slice
52  float closestsliceminfromfront; ///< minimum distance to edge of detector in the closest slice
53  float closestsliceminfromback; ///< minimum distance to edge of detector in the closest slice
54  float closestsliceminfromeast; ///< minimum distance to edge of detector in the closest slice
55  float closestsliceminfromwest; ///< minimum distance to edge of detector in the closest slice
56  float closestslicemindist; ///< minimum distance to the closest slice in time domain
57 
58  void setDefault();
59 
60  };
61 } // end namespace
62 
63 #endif // SRSLICE_H
64 //////////////////////////////////////////////////////////////////////////////
float closestslicemindist
minimum distance to the closest slice in time domain
Definition: SRSlice.h:56
virtual ~SRSlice()
Definition: SRSlice.cxx:55
A 3-vector with more efficient storage than TVector3.
Definition: SRVector3D.h:14
unsigned int lastplane
last plane
Definition: SRSlice.h:27
unsigned int firstplane
first plane
Definition: SRSlice.h:26
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
start time [ns]
Definition: SRSlice.h:39
float closestslicecalE
Calorimetric energy of the closest-in-time slice (GeV)
Definition: SRSlice.h:45
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
SRVector3D boxmin
Minimum coordinates box containing all the hits [cm].
Definition: SRSlice.h:46
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
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
void setDefault()
Definition: SRSlice.cxx:57
An SRSlice contains overarching information for a slice.
Definition: SRSlice.h:15
unsigned int nhit
number of hits
Definition: SRSlice.h:22
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
unsigned int nnoisehit
Number of noise hits (calibrated)
Definition: SRSlice.h:33
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
This module creates Common Analysis Files.
Definition: FileReducer.h:10
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 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
float closestsliceminfromfront
minimum distance to edge of detector in the closest slice
Definition: SRSlice.h:52
float meantime
mean time, weighted by charge [ns]
Definition: SRSlice.h:41