LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
anab::Calorimetry Class Reference

#include "Calorimetry.h"

Public Member Functions

 Calorimetry ()
 
 Calorimetry (double KinematicEnergy, std::vector< double > const &dEdx, std::vector< double > const &dQdx, std::vector< double > const &resRange, std::vector< double > const &deadwire, double Range, double TrkPitch, geo::PlaneID planeID)
 
 Calorimetry (double KineticEnergy, std::vector< double > const &dEdx, std::vector< double > const &dQdx, std::vector< double > const &resRange, std::vector< double > const &deadwire, double Range, std::vector< double > const &TrkPitch, geo::PlaneID planeID)
 
 Calorimetry (double KineticEnergy, std::vector< double > const &dEdx, std::vector< double > const &dQdx, std::vector< double > const &resRange, std::vector< double > const &deadwire, double Range, std::vector< double > const &TrkPitch, std::vector< TVector3 > const &XYZ, geo::PlaneID planeID)
 
const std::vector< double > & dEdx () const
 
const std::vector< double > & dQdx () const
 
const std::vector< double > & ResidualRange () const
 
const std::vector< double > & DeadWireResRC () const
 
const double & KineticEnergy () const
 
const double & Range () const
 
double TrkPitchC () const
 
const std::vector< double > & TrkPitchVec () const
 
const std::vector< TVector3 > & XYZ () const
 
const geo::PlaneIDPlaneID () const
 

Public Attributes

double fKineticEnergy
 determined kinetic energy More...
 
std::vector< double > fdEdx
 dE/dx, should be same size as fResidualRange More...
 
std::vector< double > fdQdx
 dQ/dx More...
 
std::vector< double > fResidualRange
 range from end of track More...
 
std::vector< double > fDeadWireResR
 dead wire residual range, collection plane More...
 
double fRange
 total range of track More...
 
std::vector< double > fTrkPitch
 track pitch on collection plane More...
 
std::vector< TVector3 > fXYZ
 coordinates of space points More...
 

Private Attributes

geo::PlaneID fPlaneID
 

Friends

std::ostream & operator<< (std::ostream &o, Calorimetry const &a)
 

Detailed Description

Definition at line 22 of file Calorimetry.h.

Constructor & Destructor Documentation

anab::Calorimetry::Calorimetry ( )

Definition at line 15 of file Calorimetry.cxx.

References fDeadWireResR, fdEdx, fdQdx, fResidualRange, fTrkPitch, and fXYZ.

16  : fKineticEnergy(0.)
17  , fRange(0.)
18  {
19  fdEdx.clear();
20  fdQdx.clear();
21  fResidualRange.clear();
22  fDeadWireResR.clear();
23  fTrkPitch.clear();
24  fXYZ.clear();
25  }
double fRange
total range of track
Definition: Calorimetry.h:32
std::vector< TVector3 > fXYZ
coordinates of space points
Definition: Calorimetry.h:34
std::vector< double > fdQdx
dQ/dx
Definition: Calorimetry.h:29
std::vector< double > fdEdx
dE/dx, should be same size as fResidualRange
Definition: Calorimetry.h:28
std::vector< double > fResidualRange
range from end of track
Definition: Calorimetry.h:30
double fKineticEnergy
determined kinetic energy
Definition: Calorimetry.h:27
std::vector< double > fTrkPitch
track pitch on collection plane
Definition: Calorimetry.h:33
std::vector< double > fDeadWireResR
dead wire residual range, collection plane
Definition: Calorimetry.h:31
anab::Calorimetry::Calorimetry ( double  KinematicEnergy,
std::vector< double > const &  dEdx,
std::vector< double > const &  dQdx,
std::vector< double > const &  resRange,
std::vector< double > const &  deadwire,
double  Range,
double  TrkPitch,
geo::PlaneID  planeID 
)

Definition at line 29 of file Calorimetry.cxx.

References fDeadWireResR, fdEdx, fdQdx, fKineticEnergy, fPlaneID, fRange, fResidualRange, fTrkPitch, fXYZ, KineticEnergy(), and Range().

37  {
38 
40  fRange = Range;
41  for(size_t i=0; i!=dQdx.size(); ++i){
42  fTrkPitch.push_back(TrkPitch);
43  TVector3 v(-999,-999,-999);
44  fXYZ.push_back(v);
45  }
46  if(dEdx.size() != resRange.size())
47  throw cet::exception("anab::Calorimetry") << "dE/dx and residual range vectors "
48  << "have different sizes, this is a problem.\n";
49  fdEdx.resize(dEdx.size());
50  fdQdx.resize(dQdx.size());
51  fResidualRange.resize(resRange.size());
52  for(size_t i = 0; i < dEdx.size(); ++i){
53  fdEdx[i] = dEdx[i];
54  fdQdx[i] = dQdx[i];
55  fResidualRange[i] = resRange[i];
56  }
57 
58  fDeadWireResR.resize(deadwire.size());
59  for(size_t i = 0; i<deadwire.size(); ++i){
60  fDeadWireResR[i] = deadwire[i];
61  }
62 
63  fPlaneID = planeID;
64  }
double fRange
total range of track
Definition: Calorimetry.h:32
std::vector< TVector3 > fXYZ
coordinates of space points
Definition: Calorimetry.h:34
const double & KineticEnergy() const
Definition: Calorimetry.h:92
std::vector< double > fdQdx
dQ/dx
Definition: Calorimetry.h:29
std::vector< double > fdEdx
dE/dx, should be same size as fResidualRange
Definition: Calorimetry.h:28
std::vector< double > fResidualRange
range from end of track
Definition: Calorimetry.h:30
double fKineticEnergy
determined kinetic energy
Definition: Calorimetry.h:27
std::vector< double > fTrkPitch
track pitch on collection plane
Definition: Calorimetry.h:33
std::vector< double > fDeadWireResR
dead wire residual range, collection plane
Definition: Calorimetry.h:31
geo::PlaneID fPlaneID
Definition: Calorimetry.h:37
const double & Range() const
Definition: Calorimetry.h:93
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
anab::Calorimetry::Calorimetry ( double  KineticEnergy,
std::vector< double > const &  dEdx,
std::vector< double > const &  dQdx,
std::vector< double > const &  resRange,
std::vector< double > const &  deadwire,
double  Range,
std::vector< double > const &  TrkPitch,
geo::PlaneID  planeID 
)

Definition at line 68 of file Calorimetry.cxx.

References fDeadWireResR, fdEdx, fdQdx, fKineticEnergy, fPlaneID, fRange, fResidualRange, fTrkPitch, fXYZ, KineticEnergy(), and Range().

76  {
77 
78  fPlaneID = planeID;
80  fRange = Range;
81  fTrkPitch = TrkPitch;
82  if(dEdx.size() != resRange.size())
83  throw cet::exception("anab::Calorimetry") << "dE/dx and residual range vectors "
84  << "have different sizes, this is a problem.\n";
85  for(size_t i=0; i!=dQdx.size(); ++i){
86  TVector3 v(-999,-999,-999);
87  fXYZ.push_back(v);
88  }
89  fdEdx.resize(dEdx.size());
90  fdQdx.resize(dQdx.size());
91  fResidualRange.resize(resRange.size());
92  for(size_t i = 0; i < dEdx.size(); ++i){
93  fdEdx[i] = dEdx[i];
94  fdQdx[i] = dQdx[i];
95  fResidualRange[i] = resRange[i];
96  }
97 
98  fDeadWireResR.resize(deadwire.size());
99  for(size_t i = 0; i<deadwire.size(); ++i){
100  fDeadWireResR[i] = deadwire[i];
101  }
102 
103  }
double fRange
total range of track
Definition: Calorimetry.h:32
std::vector< TVector3 > fXYZ
coordinates of space points
Definition: Calorimetry.h:34
const double & KineticEnergy() const
Definition: Calorimetry.h:92
std::vector< double > fdQdx
dQ/dx
Definition: Calorimetry.h:29
std::vector< double > fdEdx
dE/dx, should be same size as fResidualRange
Definition: Calorimetry.h:28
std::vector< double > fResidualRange
range from end of track
Definition: Calorimetry.h:30
double fKineticEnergy
determined kinetic energy
Definition: Calorimetry.h:27
std::vector< double > fTrkPitch
track pitch on collection plane
Definition: Calorimetry.h:33
std::vector< double > fDeadWireResR
dead wire residual range, collection plane
Definition: Calorimetry.h:31
geo::PlaneID fPlaneID
Definition: Calorimetry.h:37
const double & Range() const
Definition: Calorimetry.h:93
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
anab::Calorimetry::Calorimetry ( double  KineticEnergy,
std::vector< double > const &  dEdx,
std::vector< double > const &  dQdx,
std::vector< double > const &  resRange,
std::vector< double > const &  deadwire,
double  Range,
std::vector< double > const &  TrkPitch,
std::vector< TVector3 > const &  XYZ,
geo::PlaneID  planeID 
)

Definition at line 106 of file Calorimetry.cxx.

References fDeadWireResR, fdEdx, fdQdx, fKineticEnergy, fPlaneID, fRange, fResidualRange, fTrkPitch, fXYZ, KineticEnergy(), and Range().

115  {
116 
117  fPlaneID = planeID;
119  fRange = Range;
120  fTrkPitch = TrkPitch;
121  if(dEdx.size() != resRange.size())
122  throw cet::exception("anab::Calorimetry") << "dE/dx and residual range vectors "
123  << "have different sizes, this is a problem.\n";
124  for(size_t i=0; i!=dQdx.size(); ++i){
125  fXYZ.push_back(TVector3(-999,-999,-999));
126  }
127  fdEdx.resize(dEdx.size());
128  fdQdx.resize(dQdx.size());
129  fResidualRange.resize(resRange.size());
130  fXYZ.resize(XYZ.size());
131  for(size_t i = 0; i < dEdx.size(); ++i){
132  fdEdx[i] = dEdx[i];
133  fdQdx[i] = dQdx[i];
134  fResidualRange[i] = resRange[i];
135  fXYZ[i] = XYZ[i];
136  }
137 
138  fDeadWireResR.resize(deadwire.size());
139  for(size_t i = 0; i<deadwire.size(); ++i){
140  fDeadWireResR[i] = deadwire[i];
141  }
142 
143  }
double fRange
total range of track
Definition: Calorimetry.h:32
std::vector< TVector3 > fXYZ
coordinates of space points
Definition: Calorimetry.h:34
const double & KineticEnergy() const
Definition: Calorimetry.h:92
std::vector< double > fdQdx
dQ/dx
Definition: Calorimetry.h:29
std::vector< double > fdEdx
dE/dx, should be same size as fResidualRange
Definition: Calorimetry.h:28
std::vector< double > fResidualRange
range from end of track
Definition: Calorimetry.h:30
double fKineticEnergy
determined kinetic energy
Definition: Calorimetry.h:27
std::vector< double > fTrkPitch
track pitch on collection plane
Definition: Calorimetry.h:33
std::vector< double > fDeadWireResR
dead wire residual range, collection plane
Definition: Calorimetry.h:31
geo::PlaneID fPlaneID
Definition: Calorimetry.h:37
const double & Range() const
Definition: Calorimetry.h:93
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33

Member Function Documentation

const std::vector< double > & anab::Calorimetry::DeadWireResRC ( ) const
inline

Definition at line 91 of file Calorimetry.h.

References fDeadWireResR.

Referenced by pid::Chi2PIDAlg::DoParticleID().

91 { return fDeadWireResR; }
std::vector< double > fDeadWireResR
dead wire residual range, collection plane
Definition: Calorimetry.h:31
const std::vector< double > & anab::Calorimetry::dEdx ( ) const
inline

Definition at line 88 of file Calorimetry.h.

References fdEdx.

Referenced by evd::AnalysisBaseDrawer::CalorInteractive(), pid::Chi2PIDAlg::DoParticleID(), and pid::PIDAAlg::RunPIDAAlg().

88 { return fdEdx; }
std::vector< double > fdEdx
dE/dx, should be same size as fResidualRange
Definition: Calorimetry.h:28
const std::vector< double > & anab::Calorimetry::dQdx ( ) const
inline

Definition at line 89 of file Calorimetry.h.

References fdQdx.

89 { return fdQdx; }
std::vector< double > fdQdx
dQ/dx
Definition: Calorimetry.h:29
const double & anab::Calorimetry::KineticEnergy ( ) const
inline

Definition at line 92 of file Calorimetry.h.

References fKineticEnergy.

Referenced by Calorimetry(), pid::PIDAAlg::FillPIDAProperties(), and evd::HitSelector::SaveSeedLines().

92 { return fKineticEnergy; }
double fKineticEnergy
determined kinetic energy
Definition: Calorimetry.h:27
const geo::PlaneID & anab::Calorimetry::PlaneID ( ) const
inline

Definition at line 102 of file Calorimetry.h.

References fPlaneID.

Referenced by pid::Chi2PIDAlg::DoParticleID(), and pid::PIDAAlg::FillPIDAProperties().

102 { return fPlaneID; }
geo::PlaneID fPlaneID
Definition: Calorimetry.h:37
const double & anab::Calorimetry::Range ( ) const
inline

Definition at line 93 of file Calorimetry.h.

References fRange.

Referenced by Calorimetry(), and pid::PIDAAlg::FillPIDAProperties().

93 { return fRange; }
double fRange
total range of track
Definition: Calorimetry.h:32
const std::vector< double > & anab::Calorimetry::ResidualRange ( ) const
inline

Definition at line 90 of file Calorimetry.h.

References fResidualRange.

Referenced by evd::AnalysisBaseDrawer::CalorInteractive(), pid::Chi2PIDAlg::DoParticleID(), and pid::PIDAAlg::RunPIDAAlg().

90 { return fResidualRange; }
std::vector< double > fResidualRange
range from end of track
Definition: Calorimetry.h:30
double anab::Calorimetry::TrkPitchC ( ) const
inline

Definition at line 95 of file Calorimetry.h.

References fTrkPitch.

Referenced by pid::Chi2PIDAlg::DoParticleID().

96 {
97  if (fTrkPitch.size())
98  return fTrkPitch[0];
99  else return 0;
100 }
std::vector< double > fTrkPitch
track pitch on collection plane
Definition: Calorimetry.h:33
const std::vector< double > & anab::Calorimetry::TrkPitchVec ( ) const
inline

Definition at line 94 of file Calorimetry.h.

References fTrkPitch.

94 { return fTrkPitch; }
std::vector< double > fTrkPitch
track pitch on collection plane
Definition: Calorimetry.h:33
const std::vector< TVector3 > & anab::Calorimetry::XYZ ( ) const
inline

Definition at line 101 of file Calorimetry.h.

References fXYZ.

101 { return fXYZ; }
std::vector< TVector3 > fXYZ
coordinates of space points
Definition: Calorimetry.h:34

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
Calorimetry const &  a 
)
friend

Definition at line 148 of file Calorimetry.cxx.

149  {
150  o << "Kinetic Energy: " << a.fKineticEnergy
151  << "\n Range: " << a.fRange << std::endl;
152 
153  for(size_t n = 0; n < a.fdEdx.size(); ++n)
154  o << "dE/dx=" << a.fdEdx[n]
155  << " Residual range=" << a.fResidualRange[n]
156  << " dQ/dx=" << a.fdQdx[n]
157  << " (x,y,z)=(" << a.fXYZ[n].X() << "," << a.fXYZ[n].Y() << "," << a.fXYZ[n].Z() << ")"
158  << " pitch=" << a.fTrkPitch[n]
159  << " planeID=(" << a.fPlaneID.Cryostat << "," << a.fPlaneID.TPC << "," << a.fPlaneID.Plane << ")"
160  << std::endl;
161 
162  return o;
163  }
Char_t n[5]

Member Data Documentation

std::vector<double> anab::Calorimetry::fDeadWireResR

dead wire residual range, collection plane

Definition at line 31 of file Calorimetry.h.

Referenced by Calorimetry(), and DeadWireResRC().

std::vector<double> anab::Calorimetry::fdEdx

dE/dx, should be same size as fResidualRange

Definition at line 28 of file Calorimetry.h.

Referenced by Calorimetry(), dEdx(), and anab::operator<<().

std::vector<double> anab::Calorimetry::fdQdx

dQ/dx

Definition at line 29 of file Calorimetry.h.

Referenced by Calorimetry(), dQdx(), and anab::operator<<().

double anab::Calorimetry::fKineticEnergy

determined kinetic energy

Definition at line 27 of file Calorimetry.h.

Referenced by Calorimetry(), KineticEnergy(), and anab::operator<<().

geo::PlaneID anab::Calorimetry::fPlaneID
private

Definition at line 37 of file Calorimetry.h.

Referenced by Calorimetry(), anab::operator<<(), and PlaneID().

double anab::Calorimetry::fRange

total range of track

Definition at line 32 of file Calorimetry.h.

Referenced by Calorimetry(), anab::operator<<(), and Range().

std::vector<double> anab::Calorimetry::fResidualRange

range from end of track

Definition at line 30 of file Calorimetry.h.

Referenced by Calorimetry(), anab::operator<<(), and ResidualRange().

std::vector<double> anab::Calorimetry::fTrkPitch

track pitch on collection plane

Definition at line 33 of file Calorimetry.h.

Referenced by Calorimetry(), anab::operator<<(), TrkPitchC(), and TrkPitchVec().

std::vector<TVector3> anab::Calorimetry::fXYZ

coordinates of space points

Definition at line 34 of file Calorimetry.h.

Referenced by Calorimetry(), anab::operator<<(), and XYZ().


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