Anp::PlaneHitColl Struct Reference

#include <PmtHit.h>

List of all members.

Public Member Functions

 PlaneHitColl ()
 PlaneHitColl (short plane_)
void AddTrackHit (StripIter istrip, const Record &record)
void AddOtherHit (StripIter istrip, const Record &record)
const std::vector< StripIter > & GetOtherVec () const
const std::vector< StripIter > & GetTrackVec () const
short GetPlane () const

Private Attributes

short plane
std::vector< StripIterotherv
std::vector< StripItertrackv

Detailed Description

Definition at line 22 of file PmtHit.h.


Constructor & Destructor Documentation

Anp::PlaneHitColl::PlaneHitColl (  ) 

Definition at line 25 of file PmtHit.cxx.

00026    :plane(-1)
00027 {
00028 }

Anp::PlaneHitColl::PlaneHitColl ( short  plane_  )  [explicit]

Definition at line 31 of file PmtHit.cxx.

00032    :plane(plane_)
00033 {
00034 }


Member Function Documentation

void Anp::PlaneHitColl::AddOtherHit ( StripIter  istrip,
const Record record 
)

Definition at line 37 of file PmtHit.cxx.

References otherv, and Anp::Record::StripEnd().

Referenced by Anp::PlotPmt::Collect().

00038 {
00039    if(istrip == record.StripEnd())
00040    {
00041       cerr << "PlaneHitColl::AddOtherHit - invalid strip iterator" << endl;
00042       return;
00043    }
00044    
00045    otherv.push_back(istrip);
00046 }

void Anp::PlaneHitColl::AddTrackHit ( StripIter  istrip,
const Record record 
)

Definition at line 49 of file PmtHit.cxx.

References Anp::Record::StripEnd(), and trackv.

00050 {
00051    if(istrip == record.StripEnd())
00052    {
00053       cerr << "PlaneHitColl::AddTrackHit - invalid strip iterator" << endl;
00054       return;
00055    }
00056    
00057    trackv.push_back(istrip);
00058 }

const std::vector< StripIter > & Anp::PlaneHitColl::GetOtherVec (  )  const [inline]

Definition at line 131 of file PmtHit.h.

References otherv.

Referenced by Anp::PmtHit::Plot().

00131 { return otherv; }

short Anp::PlaneHitColl::GetPlane (  )  const [inline]

Definition at line 134 of file PmtHit.h.

References plane.

Referenced by Anp::operator<(), Anp::operator==(), and Anp::PmtHit::Plot().

00134 { return plane; }

const std::vector< StripIter > & Anp::PlaneHitColl::GetTrackVec (  )  const [inline]

Definition at line 132 of file PmtHit.h.

References trackv.

Referenced by Anp::PlotPmt::Collect(), and Anp::PmtHit::Plot().

00132 { return trackv; }


Member Data Documentation

std::vector<StripIter> Anp::PlaneHitColl::otherv [private]

Definition at line 39 of file PmtHit.h.

Referenced by AddOtherHit(), and GetOtherVec().

short Anp::PlaneHitColl::plane [private]

Definition at line 37 of file PmtHit.h.

Referenced by GetPlane().

std::vector<StripIter> Anp::PlaneHitColl::trackv [private]

Definition at line 40 of file PmtHit.h.

Referenced by AddTrackHit(), and GetTrackVec().


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

Generated on 3 Oct 2018 for loon by  doxygen 1.6.1