1 /**************************************************************************
2 * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
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
21 * Author: Markus Fasel
24 #include "AliEmcalTriggerBitConfig.h"
26 ClassImp(AliEmcalTriggerBitConfig)
27 ClassImp(AliEmcalTriggerBitConfigOld)
28 ClassImp(AliEmcalTriggerBitConfigNew)
30 //________________________________________________________________________
31 AliEmcalTriggerBitConfig::AliEmcalTriggerBitConfig():
41 * Dummy constructor for the configuraiton base classes, not to be callled
45 //________________________________________________________________________
46 AliEmcalTriggerBitConfig::AliEmcalTriggerBitConfig(
53 TNamed("EmcalTriggerBitConfigUninit", ""),
59 fTriggerTypesEnd(mcoffset)
62 * Constructor initialising the configurations. Used by the inheriting classes
66 //________________________________________________________________________
67 void AliEmcalTriggerBitConfig::Initialise(const AliEmcalTriggerBitConfig& ref) {
69 * Initialise from other object
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();
80 //________________________________________________________________________
81 AliEmcalTriggerBitConfigOld::AliEmcalTriggerBitConfigOld():
82 AliEmcalTriggerBitConfig(0,2,2,1,1,3) // To be checked
85 * Settings for the 2-bit configuration
87 SetName("EmcalTriggerBitConfigOld");
90 //________________________________________________________________________
91 AliEmcalTriggerBitConfigNew::AliEmcalTriggerBitConfigNew():
92 AliEmcalTriggerBitConfig(0,3,4,1,2,5) // To be checked
95 * Settings for the 4-bit configuration
97 SetName("EmcalTriggerBitConfigNew");