]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG/EMCAL/AliEmcalTriggerBitConfig.cxx
Add functionality for debugging
[u/mrichter/AliRoot.git] / PWG / EMCAL / AliEmcalTriggerBitConfig.cxx
CommitLineData
541c65eb 1/**************************************************************************
2 * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/*
17 * Trigger bit configuration used in the trigger patch maker and by the trigger patches
18 * themselves in order to identify of which type the trigger patch is. Can be adapted to different
19 * trigger bit configurations use in different reconstructions
20 *
21 * Author: Markus Fasel
22 */
23
24#include "AliEmcalTriggerBitConfig.h"
25
26ClassImp(AliEmcalTriggerBitConfig)
27ClassImp(AliEmcalTriggerBitConfigOld)
28ClassImp(AliEmcalTriggerBitConfigNew)
29
30//________________________________________________________________________
31AliEmcalTriggerBitConfig::AliEmcalTriggerBitConfig():
32 TObject(),
33 fL0Bit(-1),
34 fJHighBit(-1),
35 fJLowBit(-1),
36 fGHighBit(-1),
37 fGLowBit(-1),
38 fTriggerTypesEnd(-1)
39{
40 /*
41 * Dummy constructor for the configuraiton base classes, not to be callled
42 */
43}
44
45//________________________________________________________________________
46AliEmcalTriggerBitConfig::AliEmcalTriggerBitConfig(
47 Int_t l0bit,
48 Int_t jhighbit,
49 Int_t jlowbit,
50 Int_t ghighbit,
51 Int_t glowbit,
52 Int_t mcoffset):
acad44c5 53 TNamed("EmcalTriggerBitConfigUninit", ""),
541c65eb 54 fL0Bit(l0bit),
55 fJHighBit(jhighbit),
56 fJLowBit(jlowbit),
57 fGHighBit(ghighbit),
58 fGLowBit(glowbit),
59 fTriggerTypesEnd(mcoffset)
60{
61 /*
62 * Constructor initialising the configurations. Used by the inheriting classes
63 */
64}
65
66//________________________________________________________________________
67void AliEmcalTriggerBitConfig::Initialise(const AliEmcalTriggerBitConfig& ref) {
68 /*
69 * Initialise from other object
70 */
acad44c5 71 SetName(ref.GetName());
541c65eb 72 fL0Bit = ref.GetLevel0Bit();
73 fJHighBit = ref.GetJetHighBit();
74 fJLowBit = ref.GetJetLowBit();
75 fGHighBit = ref.GetGammaHighBit();
76 fGLowBit = ref.GetJetLowBit();
77 fTriggerTypesEnd = ref.GetTriggerTypesEnd();
78}
79
80//________________________________________________________________________
81AliEmcalTriggerBitConfigOld::AliEmcalTriggerBitConfigOld():
82 AliEmcalTriggerBitConfig(0,2,2,1,1,3) // To be checked
83{
84 /*
85 * Settings for the 2-bit configuration
86 */
acad44c5 87 SetName("EmcalTriggerBitConfigOld");
541c65eb 88}
89
90//________________________________________________________________________
91AliEmcalTriggerBitConfigNew::AliEmcalTriggerBitConfigNew():
92 AliEmcalTriggerBitConfig(0,3,4,1,2,5) // To be checked
93{
94 /*
95 * Settings for the 4-bit configuration
96 */
acad44c5 97 SetName("EmcalTriggerBitConfigNew");
541c65eb 98}
99