]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG/EMCAL/AliEmcalTriggerBitConfig.cxx
Add functionality for debugging
[u/mrichter/AliRoot.git] / PWG / EMCAL / AliEmcalTriggerBitConfig.cxx
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
26 ClassImp(AliEmcalTriggerBitConfig)
27 ClassImp(AliEmcalTriggerBitConfigOld)
28 ClassImp(AliEmcalTriggerBitConfigNew)
29
30 //________________________________________________________________________
31 AliEmcalTriggerBitConfig::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 //________________________________________________________________________
46 AliEmcalTriggerBitConfig::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):
53     TNamed("EmcalTriggerBitConfigUninit", ""),
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 //________________________________________________________________________
67 void AliEmcalTriggerBitConfig::Initialise(const AliEmcalTriggerBitConfig& ref) {
68   /*
69    * Initialise from other object
70    */
71   SetName(ref.GetName());
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 //________________________________________________________________________
81 AliEmcalTriggerBitConfigOld::AliEmcalTriggerBitConfigOld():
82     AliEmcalTriggerBitConfig(0,2,2,1,1,3)       // To be checked
83 {
84   /*
85    * Settings for the 2-bit configuration
86    */
87   SetName("EmcalTriggerBitConfigOld");
88 }
89
90 //________________________________________________________________________
91 AliEmcalTriggerBitConfigNew::AliEmcalTriggerBitConfigNew():
92     AliEmcalTriggerBitConfig(0,3,4,1,2,5)       // To be checked
93 {
94   /*
95    * Settings for the 4-bit configuration
96    */
97   SetName("EmcalTriggerBitConfigNew");
98 }
99