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

TofGeomSvc Class Reference

#include <TofGeomSvc.h>

Inheritance diagram for TofGeomSvc:

ITofGeomSvc ITofGeomSvc List of all members.

Public Member Functions

BTofGeoBTof (unsigned id) const
BTofGeoBTof (unsigned id) const
void Dump ()
void Dump ()
ETofGeoETof (unsigned id) const
ETofGeoETof (unsigned id) const
virtual StatusCode finalize ()
virtual StatusCode finalize ()
const double getBPhiMax (unsigned id)
const double getBPhiMax (unsigned id)
const double getBPhiMin (unsigned id)
const double getBPhiMin (unsigned id)
const double getEPhiMax (unsigned id)
const double getEPhiMax (unsigned id)
const double getEPhiMin (unsigned id)
const double getEPhiMin (unsigned id)
virtual StatusCode initialize ()
virtual StatusCode initialize ()
virtual StatusCode queryInterface (const InterfaceID &riid, void **ppvUnknown)
virtual StatusCode queryInterface (const InterfaceID &riid, void **ppvUnknown)
 TofGeomSvc (const std::string &name, ISvcLocator *svcloc)
 TofGeomSvc (const std::string &name, ISvcLocator *svcloc)
 ~TofGeomSvc ()
 ~TofGeomSvc ()

Static Public Member Functions

const InterfaceID & interfaceID ()
const InterfaceID & interfaceID ()

Private Attributes

vector< BTofGeo * > fBTofGeo
vector< BTofGeo * > fBTofGeo
vector< ETofGeo * > fETofGeo
vector< ETofGeo * > fETofGeo

Constructor & Destructor Documentation

TofGeomSvc::TofGeomSvc const std::string &  name,
ISvcLocator *  svcloc
 

00009 : Service(name, svcloc) {}

TofGeomSvc::~TofGeomSvc  ) 
 

00039                        {
00040   for(vector<BTofGeo*>::iterator it1 = fBTofGeo.begin(); it1 != fBTofGeo.end(); it1++) delete *it1;
00041   for(vector<ETofGeo*>::iterator it2 = fETofGeo.begin(); it2 != fETofGeo.end(); it2++) delete *it2;  
00042   fBTofGeo.clear();
00043   fETofGeo.clear();
00044 }

TofGeomSvc::TofGeomSvc const std::string &  name,
ISvcLocator *  svcloc
 

TofGeomSvc::~TofGeomSvc  ) 
 


Member Function Documentation

BTofGeo* TofGeomSvc::BTof unsigned  id  )  const [virtual]
 

Implements ITofGeomSvc.

BTofGeo * TofGeomSvc::BTof unsigned  id  )  const [virtual]
 

Implements ITofGeomSvc.

00166                                           {
00167     if (id < fBTofGeo.size())
00168         return  fBTofGeo[id];
00169     return 0;
00170 }

void TofGeomSvc::Dump  )  [virtual]
 

Implements ITofGeomSvc.

void TofGeomSvc::Dump  )  [virtual]
 

Implements ITofGeomSvc.

00115                      {
00116   std::cout<<"Now can get the TOF Geometry Service!!"<<std::endl;
00117 /*
00118   std::cout<<"Barrel TOF Counter Number = "<<fBTofGeo.size()<<std::endl;
00119   std::cout<<"Endcap TOF Counter Number = "<<fETofGeo.size()<<std::endl;
00120   for(int ib=0; ib<176; ib++){  
00121      cout<<"The"<<" "<<ib<<" "<<"Barrel TOF phiMax is"<<" "<<BTof(ib)->getPhiMax()<<endl;
00122      cout<<"The"<<" "<<ib<<" "<<"Barrel TOF phiMin is"<<" "<<BTof(ib)->getPhiMin()<<endl; 
00123   }
00124   for(int ie=0; ie<96; ie++){  
00125      cout<<"The"<<" "<<ie<<" "<<"Endcap TOF phiMax is"<<" "<<ETof(ie)->getPhiMax()<<endl;
00126      cout<<"The"<<" "<<ie<<" "<<"Endcap TOF phiMin is"<<" "<<ETof(ie)->getPhiMin()<<endl; 
00127   }  
00128   cout<<"The 33rd  Barrel TOF Counter  inrad is"<<" "<<BTof(33)->getInrad()<<endl; 
00129   cout<<"The 133rd Barrel TOF Counter  inrad is"<<" "<<BTof(133)->getInrad()<<endl; 
00130   cout<<"The 133rd Barrel TOF Counter  length is"<<" "<<BTof(133)->getLength()<<endl; 
00131   cout<<"The 133rd Barrel TOF Counter  thick  is"<<" "<<BTof(133)->getThick()<<endl; 
00132   cout<<"The 22rd  Endcap TOF Counter  inrad is"<<" "<<ETof(22)->getInrad()<<endl; 
00133   cout<<"The 22rd  Endcap TOF Counter  outrad is"<<" "<<ETof(22)->getOutrad()<<endl; 
00134   cout<<"The 22rd  Endcap TOF Counter  thick  is"<<" "<<ETof(22)->getThick()<<endl; 
00135   cout<<"The 22rd  Endcap TOF Counter  thetaMax is"<<" "<<ETof(22)->getThetaMax()<<endl; 
00136   cout<<"The 22rd  Endcap TOF Counter  thetaMin is"<<" "<<ETof(22)->getThetaMin()<<endl; 
00137   cout<<"The 90rd  Endcap TOF Counter  thetaMax is"<<" "<<ETof(90)->getThetaMax()<<endl; 
00138   cout<<"The 90rd  Endcap TOF Counter  thetaMin is"<<" "<<ETof(90)->getThetaMin()<<endl; 
00139 */
00140 }

ETofGeo* TofGeomSvc::ETof unsigned  id  )  const [virtual]
 

Implements ITofGeomSvc.

ETofGeo * TofGeomSvc::ETof unsigned  id  )  const [virtual]
 

Implements ITofGeomSvc.

00172                                           {
00173     if (id < fETofGeo.size())
00174         return  fETofGeo[id];
00175     return 0;
00176 }

virtual StatusCode TofGeomSvc::finalize  )  [virtual]
 

StatusCode TofGeomSvc::finalize  )  [virtual]
 

00033                                   {
00034   MsgStream log(messageService(), name());
00035   log << MSG::INFO << name() << ": End of Run" << endreq;
00036   return StatusCode::SUCCESS;
00037 }

const double TofGeomSvc::getBPhiMax unsigned  id  )  [virtual]
 

Implements ITofGeomSvc.

const double TofGeomSvc::getBPhiMax unsigned  id  )  [virtual]
 

Implements ITofGeomSvc.

00142                                                {
00143   if (id < fBTofGeo.size())
00144         return  fBTofGeo[id]->getPhiMax();
00145     return 0;
00146 }

const double TofGeomSvc::getBPhiMin unsigned  id  )  [virtual]
 

Implements ITofGeomSvc.

const double TofGeomSvc::getBPhiMin unsigned  id  )  [virtual]
 

Implements ITofGeomSvc.

00148                                                {
00149   if (id < fBTofGeo.size())
00150         return  fBTofGeo[id]->getPhiMin();
00151     return 0;
00152 }

const double TofGeomSvc::getEPhiMax unsigned  id  )  [virtual]
 

Implements ITofGeomSvc.

const double TofGeomSvc::getEPhiMax unsigned  id  )  [virtual]
 

Implements ITofGeomSvc.

00154                                                {
00155   if (id < fETofGeo.size())
00156         return  fETofGeo[id]->getPhiMax();
00157     return 0;
00158 }

const double TofGeomSvc::getEPhiMin unsigned  id  )  [virtual]
 

Implements ITofGeomSvc.

const double TofGeomSvc::getEPhiMin unsigned  id  )  [virtual]
 

Implements ITofGeomSvc.

00160                                                {
00161   if (id < fETofGeo.size())
00162         return  fETofGeo[id]->getPhiMin();
00163     return 0;
00164 }

virtual StatusCode TofGeomSvc::initialize  )  [virtual]
 

StatusCode TofGeomSvc::initialize  )  [virtual]
 

00021                                     {
00022   MsgStream log(messageService(), name());
00023   log << MSG::INFO << name() << ": Start of run initialisation" << endreq;
00024   
00025   StatusCode sc = Service::initialize();
00026   if ( sc.isFailure() ) return sc;
00027 
00028   //  get geometry data
00029  // Fill();    
00030   return StatusCode::SUCCESS;
00031 }  

const InterfaceID& ITofGeomSvc::interfaceID  )  [inline, static, inherited]
 

00016 { return IID_ITofGeomSvc; }

const InterfaceID& ITofGeomSvc::interfaceID  )  [inline, static, inherited]
 

00016 { return IID_ITofGeomSvc; }

virtual StatusCode TofGeomSvc::queryInterface const InterfaceID &  riid,
void **  ppvUnknown
[virtual]
 

StatusCode TofGeomSvc::queryInterface const InterfaceID &  riid,
void **  ppvUnknown
[virtual]
 

00011                                                                                    {
00012   
00013   if ( IID_ITofGeomSvc.versionMatch(riid) ) { 
00014     *ppvInterface = static_cast<ITofGeomSvc*> (this); 
00015   } else { 
00016     return Service::queryInterface(riid, ppvInterface) ; 
00017   }
00018   return StatusCode::SUCCESS;
00019 }


Member Data Documentation

vector<BTofGeo*> TofGeomSvc::fBTofGeo [private]
 

vector<BTofGeo*> TofGeomSvc::fBTofGeo [private]
 

vector<ETofGeo*> TofGeomSvc::fETofGeo [private]
 

vector<ETofGeo*> TofGeomSvc::fETofGeo [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 18:58:50 2011 for BOSS6.5.5 by  doxygen 1.3.9.1