fmssim
SmallCell.h
Go to the documentation of this file.
00001 #ifndef _FMS_GEOMETRY_SMALLCELL_H_
00002 #define _FMS_GEOMETRY_SMALLCELL_H_
00003 
00004 //
00005 // SmallCell.h
00006 //
00007 // Created by TB on 9/16/11.
00008 // Copyright 2011 BNL. All rights reserved.
00009 //
00010 
00011 #include <Rtypes.h>
00012 
00013 #include "Cell.h"
00014 
00015 namespace fms {
00016    
00017    namespace geometry {
00018       
00022       class SmallCell : public Cell {
00023          
00024       public:
00025          
00026          SmallCell(Double_t xmin = 0., Double_t xmax = 0.,
00027                    Double_t ymin = 0., Double_t ymax = 0.);
00028          
00029          
00035          SmallCell(Int_t column, Int_t row, Bool_t south);
00036          
00037          virtual ~SmallCell();
00038          
00039          virtual void Draw(Option_t* = "");
00040          virtual UInt_t Channel() const;
00041          virtual void SetChannel(UInt_t);
00042          virtual Double_t Width() const;
00043          virtual Double_t Height() const;
00044          virtual Int_t GetQtBoard() const;
00045          virtual void SetQtBoard(Int_t);
00046          
00047       protected:
00048          
00049          static Double_t smWidth;
00050          static Double_t smHeight;
00051          
00052          ClassDef(fms::geometry::SmallCell, 1)
00053       };
00054       
00055       inline UInt_t SmallCell::Channel() const { return mChannel; }
00056       inline void SmallCell::SetChannel(UInt_t c) { mChannel = c; }
00057       
00058       inline Double_t SmallCell::Width() const { return smWidth; }
00059       inline Double_t SmallCell::Height() const { return smHeight; }
00060       
00061       inline Int_t SmallCell::GetQtBoard() const { return mQtBoard; }
00062       
00063       inline void SmallCell::SetQtBoard(Int_t i) { mQtBoard = i; }
00064       
00065    } // namespace geometry
00066    
00067 } // namespace fms
00068 
00069 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines