]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/alice-macros/beams_info.C
Use ESDs directly in data pattern, not tag files, old tag files currently not compati...
[u/mrichter/AliRoot.git] / EVE / alice-macros / beams_info.C
1 // Author: Stefano Carrazza 2010
2
3 /**************************************************************************
4  * Copyright(c) 1998-2009, ALICE Experiment at CERN, all rights reserved. *
5  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
6  * full copyright notice.                                                 *
7  **************************************************************************/
8
9 AliEveBeamsInfo* beams_info(){
10
11   AliEveEventManager *mng = AliEveEventManager::GetMaster();
12   AliEveBeamsInfo *beamsinfo = mng->FindGlobal("BeamsInfo");
13
14   if ( beamsinfo == 0) {
15      beamsinfo = new AliEveBeamsInfo();
16      mng->InsertGlobal("BeamsInfo", beamsinfo);
17    } else {
18      beamsinfo->Update();
19    }
20
21   return beamsinfo;
22
23 }
24 // Author: Stefano Carrazza 2010
25
26 /**************************************************************************
27  * Copyright(c) 1998-2009, ALICE Experiment at CERN, all rights reserved. *
28  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
29  * full copyright notice.                                                 *
30  **************************************************************************/
31
32 AliEveBeamsInfo* beams_info(){
33
34   AliEveEventManager *mng = AliEveEventManager::GetMaster();
35   AliEveBeamsInfo *beamsinfo = mng->FindGlobal("BeamsInfo");
36
37   if ( beamsinfo == 0) {
38      beamsinfo = new AliEveBeamsInfo();
39      mng->InsertGlobal("BeamsInfo", beamsinfo);
40    } else {
41      beamsinfo->Update();
42    }
43
44   return beamsinfo;
45
46 }
47 // Author: Stefano Carrazza 2010
48
49 /**************************************************************************
50  * Copyright(c) 1998-2009, ALICE Experiment at CERN, all rights reserved. *
51  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
52  * full copyright notice.                                                 *
53  **************************************************************************/
54
55 AliEveBeamsInfo* beams_info(){
56
57   AliEveEventManager *mng = AliEveEventManager::GetMaster();
58   AliEveBeamsInfo *beamsinfo = mng->FindGlobal("BeamsInfo");
59
60   if ( beamsinfo == 0) {
61      beamsinfo = new AliEveBeamsInfo();
62      mng->InsertGlobal("BeamsInfo", beamsinfo);
63    } else {
64      beamsinfo->Update();
65    }
66
67   return beamsinfo;
68
69 }