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
StSvtPool
SvtMatchedTree
runSvtTree.C
1
void
runSvtTree(
const
Char_t *input,
const
Char_t *output=0) {
2
gROOT->LoadMacro(
"bfc.C"
);
3
Load();
4
TString Input(input);
5
TString Chain(
"in,StEvent,mysql,libPhysics,db,StarMagField,MagF,svtDb,ssdDb,SvtMatTree,nodefault"
);
6
if
(Input.Contains(
"rcf"
) || Input.Contains(
"gstar"
)) Chain +=
",y2005e,simu"
;
7
cout <<
"Chain used:\t"
<< Chain << endl;
8
bfc(-1,Chain.Data(),input,0,output);
9
StMaker
*db = chain->Maker(
"db"
);
10
if
(db) db->SetDebug(1);
11
SvtMatchedTree
*mtree = (
SvtMatchedTree
*) chain->Maker(
"SvtMatTree"
);
12
if
(! mtree) *mtree =
new
SvtMatchedTree
();
13
if
(! mtree)
return
;
14
#if 0
15
mtree->SetMinNoHits(2);
16
mtree->SetpCut(0.2);
17
#else
18
mtree->SetMinNoHits(0);
19
mtree->SetpCut(0);
20
#endif
21
chain->Init();
22
chain->EventLoop(9999);
23
}
StMaker
Definition:
StMaker.h:57
SvtMatchedTree
Definition:
SvtMatchedTree.h:8
Generated by
1.8.5