BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
ExtBesSubdetector.h
Go to the documentation of this file.
1#ifndef ExtBesSubdetector_H
2#define ExtBesSubdetector_H 1
3
4#include "G4LogicalVolume.hh"
5#include "G4Processor/GDMLProcessor.hh"
6
8public:
10 virtual ~ExtBesSubdetector(){};
11
12 // construct your detector and position it in BES world volume
13 // You MUST derive your concrete class and implement it
14 virtual void Construct( G4LogicalVolume* bes ) = 0;
15 inline G4LogicalVolume* FindLogicalVolume( const G4String& vn );
16};
17
18inline G4LogicalVolume* ExtBesSubdetector::FindLogicalVolume( const G4String& vn ) {
19 return const_cast<G4LogicalVolume*>( GDMLProcessor::GetInstance()->GetLogicalVolume( vn ) );
20}
21
22#endif
G4LogicalVolume * FindLogicalVolume(const G4String &vn)
virtual void Construct(G4LogicalVolume *bes)=0