CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
RBorderFinder Class Reference

#include <RBorderFinder.h>

Public Types

typedef ForwardDetRing Det
 
typedef geomsort::ExtractR
< Det, float > 
DetR
 

Public Member Functions

bool isROverlapping () const
 Returns true if any 2 of the Det overlap in R. More...
 
bool isRPeriodic () const
 Returns true if the Dets are periodic in R. More...
 
std::vector< double > RBins () const
 The centers of the Dets. More...
 
 RBorderFinder (const std::vector< const Det * > &utheDets)
 
std::vector< double > RBorders () const
 
virtual ~RBorderFinder ()
 

Private Member Functions

int binIndex (int i) const
 

Private Attributes

bool isROverlapping_
 
bool isRPeriodic_
 
int theNbins
 
std::vector< double > theRBins
 
std::vector< double > theRBorders
 

Detailed Description

Find the R binning of a list of detector according to several definitions.

Author
N. Amapane - INFN Torino

Definition at line 22 of file RBorderFinder.h.

Member Typedef Documentation

Definition at line 25 of file RBorderFinder.h.

Definition at line 26 of file RBorderFinder.h.

Constructor & Destructor Documentation

RBorderFinder::RBorderFinder ( const std::vector< const Det * > &  utheDets)
inline

Definition at line 28 of file RBorderFinder.h.

virtual RBorderFinder::~RBorderFinder ( )
inlinevirtual

Definition at line 156 of file RBorderFinder.h.

Member Function Documentation

int RBorderFinder::binIndex ( int  i) const
inlineprivate

Definition at line 182 of file RBorderFinder.h.

bool RBorderFinder::isROverlapping ( ) const
inline

Returns true if any 2 of the Det overlap in R.

Definition at line 162 of file RBorderFinder.h.

bool RBorderFinder::isRPeriodic ( ) const
inline

Returns true if the Dets are periodic in R.

Definition at line 159 of file RBorderFinder.h.

std::vector<double> RBorderFinder::RBins ( ) const
inline

The centers of the Dets.

Definition at line 169 of file RBorderFinder.h.

Referenced by GeneralBinFinderInR< T >::GeneralBinFinderInR().

std::vector<double> RBorderFinder::RBorders ( ) const
inline

The borders, defined for each det as the middle between its lower edge and the previous Det's upper edge.

Definition at line 166 of file RBorderFinder.h.

Referenced by GeneralBinFinderInR< T >::GeneralBinFinderInR().

Member Data Documentation

bool RBorderFinder::isROverlapping_
private

Definition at line 178 of file RBorderFinder.h.

bool RBorderFinder::isRPeriodic_
private

Definition at line 177 of file RBorderFinder.h.

int RBorderFinder::theNbins
private

Definition at line 176 of file RBorderFinder.h.

std::vector<double> RBorderFinder::theRBins
private

Definition at line 180 of file RBorderFinder.h.

std::vector<double> RBorderFinder::theRBorders
private

Definition at line 179 of file RBorderFinder.h.