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