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
StGmtAlignmentMaker
macros
runGmtTree.C
1
// ROOT headers
2
#include "TROOT.h"
3
#include "TSystem.h"
4
#include "TString.h"
5
6
// STAR headers
7
#include "StMaker.h"
8
#include "StGmtAlignmentMaker.h"
9
10
// C/C++ headers
11
#include <iostream>
12
13
//________________
14
void
runGmtTree(
const
Char_t *input,
const
Char_t *output=0) {
15
16
gROOT->LoadMacro(
"bfc.C"
);
17
Load();
18
TString Input(input);
19
TString Chain(
"in,StEvent,mysql,libPhysics,db,StarMagField,MagF,svtDb,ssdDb,GmtAligner,nodefault"
);
20
if
(Input.Contains(
"rcf"
) || Input.Contains(
"gstar"
)) {
21
Chain +=
",y2005e,simu"
;
22
}
23
std::cout <<
"Chain used:\t"
<< Chain << std::endl;
24
bfc(-1, Chain.Data(), input, 0, output);
25
StMaker
*db = chain->Maker(
"db"
);
26
if
(db) {
27
db->SetDebug(1);
28
}
29
StGmtAlignmentMaker
*mtree = (
StGmtAlignmentMaker
*)chain->Maker(
"GmtAligner"
);
30
if
(!mtree) {
31
*mtree =
new
StGmtAlignmentMaker
();
32
}
33
if
(!mtree)
return
;
34
#if 0
35
mtree->SetMinNoHits(2);
36
mtree->SetpCut(0.2);
37
#else
38
mtree->SetMinNoHits(0);
39
mtree->SetpCut(0);
40
#endif
41
chain->Init();
42
chain->EventLoop(9999);
43
}
StGmtAlignmentMaker
Definition:
StGmtAlignmentMaker.h:16
StMaker
Definition:
StMaker.h:57
Generated by
1.8.5