]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG3/AliAODEventInfo.cxx
New classes for Dimuon AOD files and their corresponding analysis task (Enrico, Pietr...
[u/mrichter/AliRoot.git] / PWG3 / AliAODEventInfo.cxx
CommitLineData
71b7d225 1/* AliAODEventInfo: a class for AODs for the MUON Arm of the ALICE Experiment
2 * Author: P. Cortese, Universita' del Piemonte Orientale in Alessandria and
3 * INFN of Torino - Italy
4 */
5
6#include "AliAODEventInfo.h"
7#define AliAODEventInfo_CXX
8
9// ************************************************************************** //
10ClassImp(AliAODEventInfo)
11
12//______________________________________________________________________________
13AliAODEventInfo::AliAODEventInfo():fBeamEnergy(0),
14 fMUON_Single_LPt_L0(0),fMUON_Single_HPt_L0(0),fMUON_Like_LPt_L0(0),
15 fMUON_Like_HPt_L0(0),fMUON_Unlike_LPt_L0(0),fMUON_Unlike_HPt_L0(0),
16 ev(0),ei(this),he(0),tr(0),di(0)
17{
18}
19
20//______________________________________________________________________________
21AliAODEventInfo::~AliAODEventInfo()
22{
23}
24
25//______________________________________________________________________________
26Bool_t AliAODEventInfo::IsHeaderAccessible(Char_t *msg){
27 if(he!=0){
28 return 1;
29 }else{
30 if(msg)printf("Error! Header is not accessible: %s",msg);
31 return 0;
32 }
33}
34
35//______________________________________________________________________________
36Bool_t AliAODEventInfo::MUON_Single_LPt_L0(){
37 if(IsHeaderAccessible("MUON_Single_LPt_L0"))
38 return ((((AliAODHeader*)he.GetObject())->GetTriggerMask())>>fMUON_Single_LPt_L0)&0x1;
39 else
40 return 0;
41}
42
43//______________________________________________________________________________
44Bool_t AliAODEventInfo::MUON_Single_HPt_L0(){
45 if(IsHeaderAccessible("MUON_Single_HPt_L0"))
46 return ((((AliAODHeader*)he.GetObject())->GetTriggerMask())>>fMUON_Single_HPt_L0)&0x1;
47 else
48 return 0;
49}
50
51//______________________________________________________________________________
52Bool_t AliAODEventInfo::MUON_Like_LPt_L0(){
53 if(IsHeaderAccessible("MUON_Like_LPt_L0"))
54 return ((((AliAODHeader*)he.GetObject())->GetTriggerMask())>>fMUON_Like_LPt_L0)&0x1;
55 else
56 return 0;
57}
58
59//______________________________________________________________________________
60Bool_t AliAODEventInfo::MUON_Like_HPt_L0(){
61 if(IsHeaderAccessible("MUON_Like_HPt_L0"))
62 return ((((AliAODHeader*)he.GetObject())->GetTriggerMask())>>fMUON_Like_HPt_L0)&0x1;
63 else
64 return 0;
65}
66
67//______________________________________________________________________________
68Bool_t AliAODEventInfo::MUON_Unlike_LPt_L0(){
69 if(IsHeaderAccessible("MUON_Unlike_LPt_L0"))
70 return ((((AliAODHeader*)he.GetObject())->GetTriggerMask())>>fMUON_Unlike_LPt_L0)&0x1;
71 else
72 return 0;
73}
74
75//______________________________________________________________________________
76Bool_t AliAODEventInfo::MUON_Unlike_HPt_L0(){
77 if(IsHeaderAccessible("MUON_Unlike_HPt_L0"))
78 return ((((AliAODHeader*)he.GetObject())->GetTriggerMask())>>fMUON_Unlike_HPt_L0)&0x1;
79 else
80 return 0;
81}