StripListKG.cxx File Reference

#include <algorithm>
#include <cstdlib>
#include "Cluster3D/StripListKG.h"
#include "Algorithm/AlgConfig.h"
#include "MessageService/MsgService.h"
#include "Cluster3D/StripKG.h"
#include "Cluster3D/PlaneKG.h"
#include "RecoBase/CandStripHandle.h"
#include "RecoBase/CandSliceHandle.h"
#include "UgliGeometry/UgliGeomHandle.h"

Go to the source code of this file.

Functions

 CVSID ("$Id: StripListKG.cxx,v 1.4 2009/02/28 21:46:11 gmieg Exp $")
Bool_t StripSortCriterion (const StripKG &s1, const StripKG &s2)

Function Documentation

CVSID ( "$Id: StripListKG.  cxx,
v 1.4 2009/02/28 21:46:11 gmieg Exp $"   
)
Bool_t StripSortCriterion ( const StripKG s1,
const StripKG s2 
)

Definition at line 29 of file StripListKG.cxx.

Referenced by StripListKG::CreateStrips().

00029                                                                 {
00030 //
00031 //  Purpose:  Rules how to sort STL vector of strips  
00032 //
00033 //  Arguments: 
00034 //            in   s1 - first strip
00035 //            in   s2 - second strip
00036 //
00037 //  Return:  boolean variable
00038 //
00039 //  Contact:   K.Grzelak1@physics.ox.ac.uk
00040 //
00041 //
00042 //  Program Notes:-
00043 //  =============
00044 //
00045 // Strip is "less" than another strip if number of plane is smaller
00046 // 
00047   
00048       if(s1.plane == s2.plane){
00049          return (s1.strip < s2.strip);
00050       }
00051       else{
00052          return (s1.plane < s2.plane); 
00053       } 
00054 } 


Generated on 8 Jul 2019 for loon by  doxygen 1.6.1