EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4_Bbc.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4_Bbc.C
1
#pragma once
2
#if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
3
#include <
fun4all/Fun4AllServer.h
>
4
#include <
g4bbc/BbcVertexFastSimReco.h
>
5
R__LOAD_LIBRARY
(libg4bbc.so)
6
#endif
7
8
void
BbcInit
() {}
9
10
double
Bbc
(
PHG4Reco
* g4Reco,
11
double
radius
,
12
const
int
absorberactive = 0,
13
int
verbosity = 0) {
14
15
// the BBC is a fast sim only at the moment
16
// this is a place holder for the G4 material setup
17
18
return
radius
;
19
}
20
21
void
Bbc_Reco
(
int
verbosity = 0) {
22
23
//---------------
24
// Load libraries
25
//---------------
26
27
gSystem->Load(
"libfun4all.so"
);
28
gSystem->Load(
"libg4bbc.so"
);
29
30
//---------------
31
// Fun4All server
32
//---------------
33
34
Fun4AllServer
*se =
Fun4AllServer::instance
();
35
36
BbcVertexFastSimReco
* bbcvertex =
new
BbcVertexFastSimReco
();
37
bbcvertex->
set_z_smearing
(0.0);
// 6 mm, temporarily perfect for TPC initial vertexing
38
bbcvertex->
set_t_smearing
(0.002);
// 20 ps
39
se->
registerSubsystem
(bbcvertex);
40
41
return
;
42
}
g4lblvtx
blob
master
macros
G4_Bbc.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:54
using
1.8.2 with
EIC GitHub integration