LCOV - code coverage report
Current view: top level - EMCAL/EMCALTriggerBase - AliEMCALTriggerBitConfig.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 3 40 7.5 %
Date: 2016-06-14 17:26:59 Functions: 3 12 25.0 %

          Line data    Source code
       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             : #include "AliEMCALTriggerBitConfig.h"
      16             : 
      17             : /// \cond CLASSIMP
      18          22 : ClassImp(AliEMCALTriggerBitConfig)
      19          22 : ClassImp(AliEMCALTriggerBitConfigOld)
      20          22 : ClassImp(AliEMCALTriggerBitConfigNew)
      21             : /// \endcond
      22             : 
      23             : /**
      24             :  * Dummy constructor for the configuraiton base classes, not to be callled
      25             :  */
      26             : AliEMCALTriggerBitConfig::AliEMCALTriggerBitConfig():
      27           0 :     TNamed(),
      28           0 :     fL0Bit(-1),
      29           0 :     fJHighBit(-1),
      30           0 :     fJLowBit(-1),
      31           0 :     fGHighBit(-1),
      32           0 :     fGLowBit(-1),
      33           0 :     fBkgBit(-1),
      34           0 :     fTriggerTypesEnd(-1)
      35           0 : {
      36           0 : }
      37             : 
      38             : /**
      39             :  * Constructor initialising the configurations. Used by the inheriting classes
      40             :  * @param l0bit Trigger bit for Level0 triggers
      41             :  * @param jhighbit Trigger bit for jet trigger, high threshold
      42             :  * @param jlowbit Trigger bit for jet trigger, low threshold
      43             :  * @param ghighbit Trigger bit for gamma trigger, high threshold
      44             :  * @param glowbit Trigger bit for gamma trigger, low threshold
      45             :  * @param mcoffset Offset for MC
      46             :  */
      47             : AliEMCALTriggerBitConfig::AliEMCALTriggerBitConfig(
      48             :     Int_t l0bit,
      49             :     Int_t jhighbit,
      50             :     Int_t jlowbit,
      51             :     Int_t ghighbit,
      52             :     Int_t glowbit,
      53             :     Int_t bkgbit,
      54             :     Int_t mcoffset):
      55           0 :     TNamed("EmcalTriggerBitConfigUninit", ""),
      56           0 :     fL0Bit(l0bit),
      57           0 :     fJHighBit(jhighbit),
      58           0 :     fJLowBit(jlowbit),
      59           0 :     fGHighBit(ghighbit),
      60           0 :     fGLowBit(glowbit),
      61           0 :     fBkgBit(bkgbit),
      62           0 :     fTriggerTypesEnd(mcoffset)
      63           0 : {
      64           0 : }
      65             : 
      66             : /**
      67             :  * Initialise from other object
      68             :  * @param ref Reference to initialize this trigger bit configuaration from
      69             :  */
      70             : void AliEMCALTriggerBitConfig::Initialise(const AliEMCALTriggerBitConfig& ref) {
      71           0 :   SetName(ref.GetName());
      72           0 :   fL0Bit = ref.GetLevel0Bit();
      73           0 :   fJHighBit = ref.GetJetHighBit();
      74           0 :   fJLowBit = ref.GetJetLowBit();
      75           0 :   fGHighBit = ref.GetGammaHighBit();
      76           0 :   fGLowBit = ref.GetGammaLowBit();
      77           0 :   fBkgBit = ref.GetBkgBit();
      78           0 :   fTriggerTypesEnd = ref.GetTriggerTypesEnd();
      79           0 : }
      80             : 
      81             : /**
      82             :  * Constructor, initializing the configuration
      83             :  */
      84             : AliEMCALTriggerBitConfigOld::AliEMCALTriggerBitConfigOld():
      85           0 :     AliEMCALTriggerBitConfig(0,2,2,1,1,2,3)       // To be checked
      86           0 : {
      87           0 :   SetName("EmcalTriggerBitConfigOld");
      88           0 : }
      89             : 
      90             : /**
      91             :  * Constructor, initializing the configuration
      92             :  */
      93             : AliEMCALTriggerBitConfigNew::AliEMCALTriggerBitConfigNew():
      94           0 :     AliEMCALTriggerBitConfig(0,3,4,1,2,5,5)       // To be checked
      95           0 : {
      96           0 :   SetName("EmcalTriggerBitConfigNew");
      97           0 : }
      98             : 

Generated by: LCOV version 1.11