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