CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Simulation/BOOST/MucSim/MucSim-00-01-03/MucSim/BesMucEfficiency.hh
Go to the documentation of this file.
1//
2//
3//
4//
5
6
7#ifndef BesMucEfficiency_h
8#define BesMucEfficiency_h 1
9
10#include "GaudiKernel/IMessageSvc.h"
11#include "GaudiKernel/MsgStream.h"
12
13#include "BesMucHit.hh"
14#include "BesMucDigit.hh"
15#include "G4VPhysicalVolume.hh"
16#include "G4LogicalVolume.hh"
17
18#include "MucCalibConstSvc/IMucCalibConstSvc.h"
19#include "MucCalibConstSvc/MucCalibConstSvc.h"
20
21#define part_Max (3)
22//#define segOnPart[3] ({4,8,4})
23//#define gapOnPart[3] ({8,9,8})
24#define seg_Max (8)
25#define gap_Max (9)
26#define strip_Max (96)
27#define pad_Max (100)
28
29using namespace std;
30
32{
33public:
36
37 void Initialize(G4String filename);
38
40 void SetHit(BesMucHit* hit);
41 void GetPosLengthWidth(G4VPhysicalVolume* pvStrip);
42
43 G4int GetPad();
44 G4double GetEfficiency();
45 static BesMucEfficiency * Instance(void);
46
47public:
48 IMessageSvc* msgSvc;
49
50private:
51 BesMucHit* m_pHit;
52 G4double m_Pos_Hit;
53 G4double m_Pos_Strip;
54 G4double m_Length;
55 G4double m_Width;
56 G4int m_Strip;
57 G4double m_effi[part_Max][seg_Max][gap_Max][strip_Max][pad_Max];
58 static BesMucEfficiency * fPointer;
59 G4double IsAddEffi;
60
61 IMucCalibConstSvc* m_ptrCalibSvc; // pointer of calibration constants service
62};
63
64#endif
static BesMucEfficiency * Instance(void)
void SetHit(BesMucHit *hit)
void Initialize(G4String filename)
G4double GetEfficiency()
void GetPosLengthWidth(G4VPhysicalVolume *pvStrip)