Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PlaneKG.cxx

Go to the documentation of this file.
00001 
00002 // Cluster3D package
00003 //
00004 // PlaneKG.cxx
00005 //
00006 // PlaneKG - a plane
00007 //
00008 // Author:  Katarzyna Grzelak K.Grzelak1@physics.ox.ac.uk
00009 //
00011 
00012 #include "Cluster3D/PlaneKG.h"
00013 #include "MessageService/MsgService.h" // needed for CVS
00014 #include "Cluster3D/StripKG.h"
00015 #include "Cluster3D/StripListKG.h"
00016 
00017 ClassImp(PlaneKG)
00018 
00019 CVSID("$Id: PlaneKG.cxx,v 1.2 2007/03/01 17:44:17 rhatcher Exp $");
00020 
00021 PlaneKG::PlaneKG():number(0),nstppplane(0){
00022 //
00023 //  Purpose:  Default constructor
00024 //
00025 
00026   MSG("Cluster3D", Msg::kVerbose)
00027     << "Default constructor " << endl;
00028 }
00029 
00030 //............................................................................
00031 
00032 Int_t PlaneKG::GetNbStpPerPlane(Int_t plNumber) const{
00033 //
00034 //  Purpose:  Return number of strips per plane
00035 //
00036 //  Arguments: plNumber in - plane number
00037 //
00038 //  Return: number of strips per plane 
00039 //
00040 //  Contact:   K.Grzelak1@physics.ox.ac.uk
00041 //
00042 
00043   if(number==plNumber) {
00044     return nstppplane;
00045   }
00046   else{
00047     return 0; 
00048   }
00049 }
00050 
00051 //............................................................................
00052 
00053 void PlaneKG::Create(StripListKG &all1, Int_t planeNbInp){
00054 //
00055 //  Purpose: 
00056 //
00057 //  Arguments: 
00058 //             planeNbInp in - plane number 
00059 //
00060 //  Return: 
00061 //
00062 //  Contact:   K.Grzelak1@physics.ox.ac.uk
00063 //
00064 
00065   nstppplane=0;
00066   Int_t nstp=all1.GetNStrips();
00067 
00068      for(Int_t i=0; i<nstp; ++i){
00069 
00070      Int_t planeNb=all1.GetStripPlane(i);
00071      if(planeNb==planeNbInp){
00072        ++nstppplane;
00073        number=planeNbInp;
00074      }
00075    }
00076 }

Generated on Mon Feb 15 11:07:22 2010 for loon by  doxygen 1.3.9.1