12#include "GaudiKernel/AlgFactory.h"
13#include "GaudiKernel/DataObject.h"
14#include "GaudiKernel/IEventProcessor.h"
16#include "GaudiKernel/Incident.h"
17#include "GaudiKernel/IIncidentSvc.h"
18#include "GaudiKernel/Memory.h"
23#include "GaudiKernel/ISvcLocator.h"
24#include "GaudiKernel/IDataProviderSvc.h"
25#include "GaudiKernel/Bootstrap.h"
26#include "GaudiKernel/RegistryEntry.h"
27#include "GaudiKernel/MsgStream.h"
37#include "GaudiKernel/SmartDataPtr.h"
45 Algorithm(name,pSvcLocator){
47 declareProperty(
"LUTfile", lutfile =
"/bes3fs/cgemCosmic/data/CGEM_cosmic_look_up_table_from_17_to_17.root");
54 MsgStream log(
msgSvc(), name());
56 cout <<
"TestGeometry initialize" << endl;
57 StatusCode sc = service(
"CgemGeomSvc", m_geomSvc);
58 if(sc != StatusCode::SUCCESS) {
59 log << MSG::ERROR <<
"can not use CgemGeomSvc" << endreq;
60 return StatusCode::FAILURE;
68 const int nsheet[nlayer] = {1, 2, 2};
71 for(
int ilayer = 0; ilayer < nlayer; ilayer++) {
72 for(
int isheet = 0; isheet < nsheet[ilayer]; isheet++) {
73 for(
int iview=0; iview < nview; iview++) {
82 if(iview==1) nstrip = nvstrip;
84 for(
int istrip=0; istrip < nstrip; istrip++) {
91 cout << layerid <<
" " << sheetid <<
" " << iview <<
" " << stripid <<
" " <<
length << endl;
100 return StatusCode::SUCCESS;
105 MsgStream log(
msgSvc(), name());
106 cout <<
"->TestGeometry::execute" << endl;
107 cout <<
"geomtry service pointer " << m_geomSvc << endl;
108 return StatusCode::SUCCESS;
114 MsgStream log(
msgSvc(),name());
115 log << MSG::INFO <<
"TestGeometry finalize()" << endreq;
117 return StatusCode::SUCCESS;
double getVStripLength(int V_ID) const
static int strip(const Identifier &id)
static bool is_xstrip(const Identifier &id)
static Identifier strip_id(int f_layer, int f_sheet, int f_strip_type, int f_strip)
virtual CgemGeoReadoutPlane * getReadoutPlane(int iLayer, int iSheet) const =0
TestGeometry(const std::string &name, ISvcLocator *pSvcLocator)