LCOV - code coverage report
Current view: top level - STEER/AOD - AliAODJetEventBackground.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 15 6.7 %
Date: 2016-06-14 17:26:59 Functions: 1 10 10.0 %

          Line data    Source code
       1             : #ifndef AliAODJETBACKGROUND_H
       2             : #define AliAODJETBACKGROUND_H
       3             : /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
       4             :  * See cxx source for full Copyright notice                               */
       5             : 
       6             : //-------------------------------------------------------------------------
       7             : //     AOD jet background class
       8             : //     Stores Different background calculations on an event by event level
       9             : //     Author: Christian Klein-Boesing, IKP Muenster
      10             : //-------------------------------------------------------------------------
      11             : 
      12             : #include "TNamed.h"
      13             : #include "TString.h"
      14             : 
      15             : 
      16             : class AliAODJetEventBackground : public TNamed {
      17             : 
      18             :  public:
      19             :     AliAODJetEventBackground();
      20             :     virtual ~AliAODJetEventBackground();
      21             :     AliAODJetEventBackground(const AliAODJetEventBackground& jet); 
      22             :     AliAODJetEventBackground& operator=(const AliAODJetEventBackground& jet);
      23             : 
      24             :     virtual void SetBackground(Int_t i,Double_t back,Double_t sigma,Double_t meanarea){
      25           0 :       fBackground[i] = back;
      26           0 :       fSigma[i]=sigma;
      27           0 :       fMeanArea[i]=meanarea;
      28           0 :     }
      29             : 
      30             :     virtual Double_t GetBackground(Int_t i){
      31           0 :       if(i>=0&&i<kMaxBackground)return fBackground[i];
      32           0 :       return 0;
      33           0 :     }
      34             : 
      35             : 
      36             :     virtual Double_t GetSigma(Int_t i){
      37           0 :       if(i>=0&&i<kMaxBackground)return fSigma[i];
      38           0 :       return 0;
      39           0 :     }
      40             : 
      41             :     virtual Double_t GetMeanarea(Int_t i){     
      42           0 :       if(i>=0&&i<kMaxBackground)return fMeanArea[i];     
      43           0 :       return 0;
      44           0 :     }
      45             : 
      46             : 
      47           0 :     static const char* StdBranchName(){return fgkStdBranchName.Data();}
      48             :     virtual void       Print(Option_t* /*option*/) const;
      49             :     virtual void       Reset();
      50             : 
      51             :     enum { kSmallR = 0,
      52             :            kOnlyCharged,
      53             :            kOutOfCone,
      54             :            kStatistical,
      55             :            kMaxBackground};
      56             : 
      57             :  private:
      58             :     static TString fgkStdBranchName;                    // Standard branch name
      59             :     Double32_t      fBackground[kMaxBackground];        // Background from different schemes, normalized to area
      60             : 
      61             :     Double32_t      fSigma[kMaxBackground];             // Sigma
      62             :     Double32_t      fMeanArea[kMaxBackground];          // Mean area 
      63         170 :     ClassDef(AliAODJetEventBackground,3);
      64             : 
      65             : };
      66             : 
      67             : 
      68             : #endif

Generated by: LCOV version 1.11