StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StFwdTrackMaker
macro
daq
prod.C
1
//usr/bin/env root4star -l -b -q $0; exit $?
2
// that is a valid shebang to run script as executable
3
4
void
prod(
int
n = 10000,
const
char
*inFile =
"input.daq"
) {
5
6
TString _chain;
7
gSystem->Load(
"libStarRoot.so"
);
8
9
// Simplest chain with fst, fcs, ftt and fwdTracker
10
_chain =
"in, dev2022, db, tpcDB, MakeEvent, StEvent, MuDST, fst, fstQA, ftt, fttQA, CMuDst, evout, tree"
;
11
12
// needed in this wonky spack environment
13
gROOT->SetMacroPath(
".:/star-sw/StRoot/macros:./StRoot/macros:./StRoot/macros/graphics:./StRoot/macros/analysis:./StRoot/macros/test:./StRoot/macros/examples:./StRoot/macros/html:./StRoot/macros/qa:./StRoot/macros/calib:./StRoot/macros/mudst:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/graphics:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/analysis:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/test:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/examples:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/html:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/qa:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/calib:/afs/rhic.bnl.gov/star/packages/DEV/StRoot/macros/mudst:/afs/rhic.bnl.gov/star/ROOT/36/5.34.38/.sl73_x8664_gcc485/rootdeb/macros:/afs/rhic.bnl.gov/star/ROOT/36/5.34.38/.sl73_x8664_gcc485/rootdeb/tutorials"
);
14
15
gROOT->LoadMacro(
"bfc.C"
);
16
bfc(-1, _chain, inFile,
"OUTPUT.root"
);
17
18
StFttHitCalibMaker
*fttHitCalib = (
StFttHitCalibMaker
*) chain->GetMaker(
"fttHitCalib"
);
19
fttHitCalib->SetMode( StFttHitCalibMaker::CalibMode::Calibration );
20
21
22
// Initialize the chain
23
chain->Init();
24
25
//_____________________________________________________________________________
26
//
27
// MAIN EVENT LOOP
28
//_____________________________________________________________________________
29
for
(
int
i = 0; i < n; i++) {
30
chain->
Clear
();
31
if
(
kStOK
!= chain->
Make
())
32
break
;
33
}
34
}
StChain::Clear
virtual void Clear(Option_t *option="")
User defined functions.
Definition:
StChain.cxx:77
StFttHitCalibMaker
Definition:
StFttHitCalibMaker.h:32
StChain::Make
virtual Int_t Make()
Definition:
StChain.cxx:110
kStOK
Definition:
Stypes.h:40
Generated by
1.8.5