]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG3/AliAODEventInfo.h
Some more effc++ warnings.
[u/mrichter/AliRoot.git] / PWG3 / AliAODEventInfo.h
CommitLineData
71b7d225 1#include "AliAODHeader.h"
2#include "TClonesArray.h"
3
4#ifndef AliAODEventInfo_H
5#define AliAODEventInfo_H
6
7#include "AliAODEvent.h"
8
9
10/* AliAODEventInfo: a class for AODs for the MUON Arm of the ALICE Experiment
11 * Author: P. Cortese, Universita' del Piemonte Orientale in Alessandria and
12 * INFN of Torino - Italy
13 */
14
15/* 2007/11/06 v0.00 Initial version */
16/* 2007/12/18 v0.01 More compact information for what regards trigger info */
17
18class AliAODEventInfo : public TNamed {
19public:
20 AliAODEventInfo();
21 ~AliAODEventInfo();
22
23 // Missing in AliAODHeader and added here
24 Double_t fBeamEnergy; // Add beam energy not present in AliAODHeader
25 UChar_t fMUON_Single_LPt_L0; // Decode trigger info
26 UChar_t fMUON_Single_HPt_L0; // Decode trigger info
27 UChar_t fMUON_Like_LPt_L0; // Decode trigger info
28 UChar_t fMUON_Like_HPt_L0; // Decode trigger info
29 UChar_t fMUON_Unlike_LPt_L0; // Decode trigger info
30 UChar_t fMUON_Unlike_HPt_L0; // Decode trigger info
31
32 void SetBeamEnergy(Double_t BeamEnergy){ fBeamEnergy=BeamEnergy; };
33 Double_t EBeam(){ return fBeamEnergy; };
34 Double_t SqrtS(){ return 2*fBeamEnergy; };
35
36 // Data members and functions that provide automatic access
37 TRef ev; // Event
38 TRef ei; // EventInfo
39 TRef he; // Header
40 TRef tr; // Tracks
41 TRef di; // Dimuons
42 Bool_t IsHeaderAccessible(Char_t *msg=0);
43
44 // -- Trigger information (to be updated in future)
45 Bool_t MUON_Single_LPt_L0();
46 Bool_t MUON_Single_HPt_L0();
47 Bool_t MUON_Like_LPt_L0();
48 Bool_t MUON_Like_HPt_L0();
49 Bool_t MUON_Unlike_LPt_L0();
50 Bool_t MUON_Unlike_HPt_L0();
51
52 Int_t GetNDimuons() const { return (di!=0) ? ((TClonesArray*)di.GetObject())->GetSize() : 0;}
53 Int_t NDimu() { return GetNDimuons();}
54
55 ClassDef(AliAODEventInfo,1) // Additional header for MUON arm
56};
57
58#endif