Protection against wrong trigger bc mask pattern
[u/mrichter/AliRoot.git] / T0 / VertexMaker.C
CommitLineData
dc7ca31d 1void VertexMaker(Int_t evNumber=1)
2{
3
4 // Dynamically link some shared libs
5 if (gClassTable->GetID("AliRun") < 0) {
6 gROOT->LoadMacro("loadlibs.C");
7 loadlibs();
8 }
9
10 char filename[100];
11 sprintf(filename,"galice.root");
12 AliRunLoader* rl = AliRunLoader::Open("galice.root",AliConfig::GetDefaultEventFolderName(),"read");
13 if (rl == 0x0)
14 {
15 cerr<<"Can not open session for file galice.root\n";
16 return;
17 }
18
19 rl->LoadgAlice();
20 gAlice = rl->GetAliRun();
21
22 AliT0* T0 = (AliT0 *)gAlice->GetDetector("T0");
23 /*
24 rl->LoadHeader();
25
26 rl->LoadKinematics("READ");
27 Int_t retval;
28 AliLoader* lstart = rl->GetLoader("T0Loader");
29 lstart->LoadDigits("READ");
30 // lstart->Dump();
31 // lstart->LoadRecPoints("UPDATE");
32 */
33 vertex= new AliT0vertex();
34 TBranch *bRec=0;
35 vertex->Dump();
36
37 // Event ------------------------- LOOP
38 // Int_t iNevents=rl->GetNumberOfEvents();
39 // cout<<" nevents "<<iNevents<<endl;
40
41 // for (Int_t j=0; j<iNevents; j++){
42 // lstart->LoadDigits("READ");
43 vertex->Reconstruct();
44 // }
45
46} // end of macro
47
48
49
50