CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/RecoTauTag/TauTagTools/src/ECALBounds.cc

Go to the documentation of this file.
00001 #include "RecoTauTag/TauTagTools/interface/ECALBounds.h"
00002 
00003 void ECALBounds::initialize(){
00004   const float epsilon = 0.001; // should not matter at all
00005   Surface::RotationType rot; // unit rotation matrix
00006   theCylinder=new BoundCylinder(barrel_innerradius(), Surface::PositionType(0,0,0),rot, 
00007                                  new SimpleCylinderBounds(barrel_innerradius()-epsilon, 
00008                                                           barrel_innerradius()+epsilon, 
00009                                                          -barrel_halfLength(), 
00010                                                           barrel_halfLength()));
00011 
00012 
00013   theNegativeDisk=new BoundDisk(Surface::PositionType(0,0,-endcap_innerZ()),rot, 
00014                    new SimpleDiskBounds(0,endcap_outerradius(),-epsilon,epsilon));
00015 
00016   thePositiveDisk = 
00017     new BoundDisk( Surface::PositionType(0,0,endcap_innerZ()),rot, 
00018                    new SimpleDiskBounds(0,endcap_outerradius(),-epsilon,epsilon));
00019 
00020 
00021   theInit = true;
00022 }
00023 
00024 // static initializers
00025 ReferenceCountingPointer<Surface> ECALBounds::theCylinder = 0;
00026 ReferenceCountingPointer<Surface> ECALBounds::theNegativeDisk = 0;
00027 ReferenceCountingPointer<Surface> ECALBounds::thePositiveDisk = 0;
00028 bool ECALBounds::theInit = false;
00029 
00030