Public Member Functions | Private Attributes | List of all members
gar::rosim::ElectronDriftInfo Class Reference

#include <ElectronDriftAlg.h>

Public Member Functions

 ElectronDriftInfo ()
 
void Reset (std::vector< double > &xPos, std::vector< double > &yPos, std::vector< double > &zPos, std::vector< double > &time, std::vector< int > &size)
 
std::vector< double > const & ClusterXPos () const
 
std::vector< double > const & ClusterYPos () const
 
std::vector< double > const & ClusterZPos () const
 
std::vector< double > const & ClusterTime () const
 
std::vector< int > const & ClusterSize () const
 

Private Attributes

std::vector< double > fClusterXPos
 x positions of each cluster drifted More...
 
std::vector< double > fClusterYPos
 y positions of each cluster drifted More...
 
std::vector< double > fClusterZPos
 z positions of each cluster drifted More...
 
std::vector< double > fClusterTime
 arrival time of each cluster drifted More...
 
std::vector< int > fClusterSize
 size of each cluster drifted More...
 

Detailed Description

Definition at line 30 of file ElectronDriftAlg.h.

Constructor & Destructor Documentation

gar::rosim::ElectronDriftInfo::ElectronDriftInfo ( )

Definition at line 20 of file ElectronDriftAlg.cxx.

21  {
22  return;
23  }

Member Function Documentation

std::vector<int > const& gar::rosim::ElectronDriftInfo::ClusterSize ( ) const
inline

Definition at line 46 of file ElectronDriftAlg.h.

46 { return fClusterSize; }
std::vector< int > fClusterSize
size of each cluster drifted
std::vector<double> const& gar::rosim::ElectronDriftInfo::ClusterTime ( ) const
inline

Definition at line 45 of file ElectronDriftAlg.h.

45 { return fClusterTime; }
std::vector< double > fClusterTime
arrival time of each cluster drifted
std::vector<double> const& gar::rosim::ElectronDriftInfo::ClusterXPos ( ) const
inline

Definition at line 42 of file ElectronDriftAlg.h.

42 { return fClusterXPos; }
std::vector< double > fClusterXPos
x positions of each cluster drifted
std::vector<double> const& gar::rosim::ElectronDriftInfo::ClusterYPos ( ) const
inline

Definition at line 43 of file ElectronDriftAlg.h.

43 { return fClusterYPos; }
std::vector< double > fClusterYPos
y positions of each cluster drifted
std::vector<double> const& gar::rosim::ElectronDriftInfo::ClusterZPos ( ) const
inline

Definition at line 44 of file ElectronDriftAlg.h.

44 { return fClusterZPos; }
std::vector< double > fClusterZPos
z positions of each cluster drifted
void gar::rosim::ElectronDriftInfo::Reset ( std::vector< double > &  xPos,
std::vector< double > &  yPos,
std::vector< double > &  zPos,
std::vector< double > &  time,
std::vector< int > &  size 
)

Definition at line 26 of file ElectronDriftAlg.cxx.

31  {
32  fClusterXPos.clear();
33  fClusterYPos.clear();
34  fClusterZPos.clear();
35  fClusterTime.clear();
36  fClusterSize.clear();
37 
38  fClusterXPos.swap(xPos);
39  fClusterYPos.swap(yPos);
40  fClusterZPos.swap(zPos);
41  fClusterTime.swap(time);
42  fClusterSize.swap(size);
43 
44  if(fClusterXPos.size() != fClusterYPos.size() ||
45  fClusterXPos.size() != fClusterZPos.size() ||
46  fClusterXPos.size() != fClusterTime.size() ||
47  fClusterXPos.size() != fClusterSize.size() )
48  throw cet::exception("ElectronDriftInfo")
49  << "ElectronDriftInfo vector sizes are not consistent: "
50  << "\n\tX:"
51  << fClusterXPos.size()
52  << "\n\tY:"
53  << fClusterYPos.size()
54  << "\n\tZ:"
55  << fClusterZPos.size()
56  << "\n\tT:"
57  << fClusterTime.size()
58  << "\n\tSize:"
59  << fClusterSize.size();
60 
61  return;
62  }
std::vector< double > fClusterXPos
x positions of each cluster drifted
std::vector< double > fClusterYPos
y positions of each cluster drifted
std::vector< double > fClusterTime
arrival time of each cluster drifted
std::vector< int > fClusterSize
size of each cluster drifted
std::vector< double > fClusterZPos
z positions of each cluster drifted
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33

Member Data Documentation

std::vector<int > gar::rosim::ElectronDriftInfo::fClusterSize
private

size of each cluster drifted

Definition at line 54 of file ElectronDriftAlg.h.

std::vector<double> gar::rosim::ElectronDriftInfo::fClusterTime
private

arrival time of each cluster drifted

Definition at line 53 of file ElectronDriftAlg.h.

std::vector<double> gar::rosim::ElectronDriftInfo::fClusterXPos
private

x positions of each cluster drifted

Definition at line 50 of file ElectronDriftAlg.h.

std::vector<double> gar::rosim::ElectronDriftInfo::fClusterYPos
private

y positions of each cluster drifted

Definition at line 51 of file ElectronDriftAlg.h.

std::vector<double> gar::rosim::ElectronDriftInfo::fClusterZPos
private

z positions of each cluster drifted

Definition at line 52 of file ElectronDriftAlg.h.


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