Classes | Functions
murem Namespace Reference

Classes

class  FindMREParent
 
class  FindParent
 
class  MergeDigits
 
class  MergeTruth
 
class  MRCCParent
 
class  MRE
 
class  MuonRemove
 
class  MuonRemoveAna
 
class  TrackCleanUpAlg
 

Functions

void SortDigitsByPlaneAndCell (std::list< rawdata::RawDigit > &digitcol)
 Takes in a vector of raw digits and sorts it by plane. More...
 
bool CompareDigitsByPlaneAndCell (rawdata::RawDigit ra, rawdata::RawDigit rb)
 Compare two rawdigits by plane. Return true if plane of ra is greater then the plane of rb. More...
 
void SortByPlaneAndCell (std::vector< rb::WeightedHit > &whits)
 
bool CompareByPlaneAndCell (rb::WeightedHit whita, rb::WeightedHit whitb)
 Compare two rawdigits by plane. Return true if plane of ra is greater then the plane of rb. More...
 

Function Documentation

bool murem::CompareByPlaneAndCell ( rb::WeightedHit  whita,
rb::WeightedHit  whitb 
)

Compare two rawdigits by plane. Return true if plane of ra is greater then the plane of rb.

Definition at line 1053 of file MuonRemove_module.cc.

References rb::CellHit::Cell(), rb::WeightedHit::hit, and rb::CellHit::Plane().

Referenced by SortByPlaneAndCell().

1055  {
1056  if( whita.hit->Plane() < whitb.hit->Plane() )
1057  return true;
1058  if( whita.hit->Plane() > whitb.hit->Plane() )
1059  return false;
1060  return whita.hit->Cell() < whitb.hit->Cell();
1061  }// End of CompareByPlane
unsigned short Plane() const
Definition: CellHit.h:39
unsigned short Cell() const
Definition: CellHit.h:40
art::Ptr< rb::CellHit > hit
Definition: WeightedHit.h:23
bool murem::CompareDigitsByPlaneAndCell ( rawdata::RawDigit  ra,
rawdata::RawDigit  rb 
)

Compare two rawdigits by plane. Return true if plane of ra is greater then the plane of rb.

Definition at line 1027 of file MuonRemove_module.cc.

References visualisationForPaperMasterPlot::cmap, cmap::dataprov::CMap::GetCell(), and cmap::dataprov::CMap::GetPlane().

Referenced by SortDigitsByPlaneAndCell().

1029  {
1031  if( cmap->GetPlane( &ra ) < cmap->GetPlane( &rb ) )
1032  return true;
1033  if( cmap->GetPlane( &ra ) > cmap->GetPlane( &rb ) )
1034  return false;
1035  return cmap->GetCell( &ra ) < cmap->GetCell( &rb );
1036 
1037  }// End of CompareByPlane
unsigned short GetPlane(const rawdata::RawDigit *dig)
Definition: CMap.cxx:285
unsigned short GetCell(const rawdata::RawDigit *dig)
Definition: CMap.cxx:327
void murem::SortByPlaneAndCell ( std::vector< rb::WeightedHit > &  whits)

Definition at line 1066 of file MuonRemove_module.cc.

References CompareByPlaneAndCell(), and DEFINE_ART_MODULE().

Referenced by murem::TrackCleanUpAlg::DeDxInPlane(), and murem::MuonRemove::produce().

1067  {
1068  std::sort( whits.begin(), whits.end(), CompareByPlaneAndCell );
1069  }// End of SortDigitsByPlane
bool CompareByPlaneAndCell(rb::WeightedHit whita, rb::WeightedHit whitb)
Compare two rawdigits by plane. Return true if plane of ra is greater then the plane of rb...
void murem::SortDigitsByPlaneAndCell ( std::list< rawdata::RawDigit > &  digitcol)

Takes in a vector of raw digits and sorts it by plane.

Definition at line 1044 of file MuonRemove_module.cc.

References CompareDigitsByPlaneAndCell().

Referenced by murem::MuonRemove::produce().

1045  {
1046  digs.sort( CompareDigitsByPlaneAndCell );
1047  }// End of SortDigitsByPlane
bool CompareDigitsByPlaneAndCell(rawdata::RawDigit ra, rawdata::RawDigit rb)
Compare two rawdigits by plane. Return true if plane of ra is greater then the plane of rb...