AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTriggerChamberEfficiency Class Reference

Calculate, apply and possibly draw trigger chamber efficiency. More...

#include <AliMUONTriggerChamberEfficiency.h>

Inheritance diagram for AliMUONTriggerChamberEfficiency:

Public Types

enum  { kHboardEff, kHslatEff }
 

Public Member Functions

 AliMUONTriggerChamberEfficiency (AliMUONTriggerEfficiencyCells *effMap)
 
 AliMUONTriggerChamberEfficiency (const Char_t *filename, const Char_t *listname="triggerChamberEff")
 
 AliMUONTriggerChamberEfficiency (const AliMUONTriggerChamberEfficiency &other)
 
AliMUONTriggerChamberEfficiencyoperator= (const AliMUONTriggerChamberEfficiency &other)
 
virtual ~AliMUONTriggerChamberEfficiency ()
 
Float_t GetCellEfficiency (Int_t detElemId, Int_t localBoard, Int_t hType) const
 
Float_t GetCellEfficiencyError (Int_t detElemId, Int_t localBoard, Int_t hType, Int_t errType) const
 
TObject * GetEffObject (Int_t histoType, Int_t countType, Int_t chamber)
 
void IsTriggered (Int_t detElemId, Int_t localBoard, Bool_t &trigBend, Bool_t &trigNonBend) const
 
Bool_t LowStatisticsSettings (Bool_t useMeanValues=kTRUE)
 
void DisplayEfficiency (Bool_t perSlat=kFALSE, Bool_t show2Dhisto=kTRUE)
 

Private Member Functions

Int_t FindChamberIndex (Int_t detElemId) const
 
void FillFromList (Bool_t useMeanValues=kFALSE)
 
Int_t GetIndex (Int_t histoType, Int_t countType, Int_t chamber=-1) const
 
TGraphAsymmErrors * GetEfficiencyGraph (TH1 *histoNum, TH1 *histoDen)
 

Private Attributes

Bool_t fIsOwner
 Owner of efficiency map. More...
 
AliMUONTriggerEfficiencyCellsfEfficiencyMap
 Efficiency map. More...
 
TObjArrayfEfficiencyObjects
 Collect all efficiency. More...
 
TList * fDisplayList
 ! List of objects for display More...
 

Detailed Description

Calculate, apply and possibly draw trigger chamber efficiency.

A class to store and give access to the trigger chamber efficiency.

Efficiency is stored per cathode on local boards

The main method of this class is IsTriggered().

Author
Diego Stocco; INFN Torino

Definition at line 22 of file AliMUONTriggerChamberEfficiency.h.

Member Enumeration Documentation

anonymous enum
Enumerator
kHboardEff 

Efficiency per board index.

kHslatEff 

Efficiency per slat index.

Definition at line 45 of file AliMUONTriggerChamberEfficiency.h.

Constructor & Destructor Documentation

AliMUONTriggerChamberEfficiency::AliMUONTriggerChamberEfficiency ( AliMUONTriggerEfficiencyCells effMap)

Default constructor.

Definition at line 56 of file AliMUONTriggerChamberEfficiency.cxx.

AliMUONTriggerChamberEfficiency::AliMUONTriggerChamberEfficiency ( const Char_t *  filename,
const Char_t *  listname = "triggerChamberEff" 
)

Constructor using an ASCII file.

Definition at line 69 of file AliMUONTriggerChamberEfficiency.cxx.

AliMUONTriggerChamberEfficiency::AliMUONTriggerChamberEfficiency ( const AliMUONTriggerChamberEfficiency other)

Copy constructor

Definition at line 84 of file AliMUONTriggerChamberEfficiency.cxx.

AliMUONTriggerChamberEfficiency::~AliMUONTriggerChamberEfficiency ( )
virtual

Destructor.

Definition at line 112 of file AliMUONTriggerChamberEfficiency.cxx.

Member Function Documentation

void AliMUONTriggerChamberEfficiency::DisplayEfficiency ( Bool_t  perSlat = kFALSE,
Bool_t  show2Dhisto = kTRUE 
)

Display calculated efficiency.

Definition at line 300 of file AliMUONTriggerChamberEfficiency.cxx.

Referenced by MUONTriggerChamberEfficiency(), and ShowOCDBmap().

void AliMUONTriggerChamberEfficiency::FillFromList ( Bool_t  useMeanValues = kFALSE)
private

Fills internal histos from list.

Definition at line 210 of file AliMUONTriggerChamberEfficiency.cxx.

Referenced by AliMUONTriggerChamberEfficiency(), and LowStatisticsSettings().

Int_t AliMUONTriggerChamberEfficiency::FindChamberIndex ( Int_t  detElemId) const
private

From detElemId to chamber number

Definition at line 198 of file AliMUONTriggerChamberEfficiency.cxx.

Referenced by GetCellEfficiency(), and GetCellEfficiencyError().

Float_t AliMUONTriggerChamberEfficiency::GetCellEfficiency ( Int_t  detElemId,
Int_t  localBoard,
Int_t  hType 
) const

Get the efficiencies of the 2 cathodes at a given local board

Definition at line 123 of file AliMUONTriggerChamberEfficiency.cxx.

Referenced by IsTriggered().

Float_t AliMUONTriggerChamberEfficiency::GetCellEfficiencyError ( Int_t  detElemId,
Int_t  localBoard,
Int_t  hType,
Int_t  errType 
) const

Get the efficiencie errors of the 2 cathodes at a given local board errype 0 -> low error errype 1 -> high error

Definition at line 141 of file AliMUONTriggerChamberEfficiency.cxx.

TGraphAsymmErrors * AliMUONTriggerChamberEfficiency::GetEfficiencyGraph ( TH1 *  histoNum,
TH1 *  histoDen 
)
private

Create the graph of efficiency from the numerator and denominator histogram in such a way to have a point set also for detection elements with efficiency = 0 or non calculated

Definition at line 445 of file AliMUONTriggerChamberEfficiency.cxx.

Referenced by FillFromList().

TObject * AliMUONTriggerChamberEfficiency::GetEffObject ( Int_t  histoType,
Int_t  countType,
Int_t  chamber 
)

Get efficiency object

Definition at line 433 of file AliMUONTriggerChamberEfficiency.cxx.

Int_t AliMUONTriggerChamberEfficiency::GetIndex ( Int_t  histoType,
Int_t  countType,
Int_t  chamber = -1 
) const
private

Return the index of the object in the array

Definition at line 414 of file AliMUONTriggerChamberEfficiency.cxx.

Referenced by DisplayEfficiency(), FillFromList(), GetCellEfficiency(), GetCellEfficiencyError(), and GetEffObject().

void AliMUONTriggerChamberEfficiency::IsTriggered ( Int_t  detElemId,
Int_t  localBoard,
Bool_t &  trigBend,
Bool_t &  trigNonBend 
) const

Whether or not a given local board has a chance to trig, on each cathode.

Definition at line 168 of file AliMUONTriggerChamberEfficiency.cxx.

Referenced by AliMUONDigitizerV3::ApplyResponseToTriggerDigit().

Bool_t AliMUONTriggerChamberEfficiency::LowStatisticsSettings ( Bool_t  useMeanValues = kTRUE)

In case of low statistics, fill the local board efficiency with the average value of the RPC

Definition at line 396 of file AliMUONTriggerChamberEfficiency.cxx.

AliMUONTriggerChamberEfficiency & AliMUONTriggerChamberEfficiency::operator= ( const AliMUONTriggerChamberEfficiency other)

Asignment operator

Definition at line 96 of file AliMUONTriggerChamberEfficiency.cxx.

Member Data Documentation

TList* AliMUONTriggerChamberEfficiency::fDisplayList
private

! List of objects for display

Definition at line 63 of file AliMUONTriggerChamberEfficiency.h.

Referenced by DisplayEfficiency(), operator=(), and ~AliMUONTriggerChamberEfficiency().

AliMUONTriggerEfficiencyCells* AliMUONTriggerChamberEfficiency::fEfficiencyMap
private
TObjArray* AliMUONTriggerChamberEfficiency::fEfficiencyObjects
private
Bool_t AliMUONTriggerChamberEfficiency::fIsOwner
private

Owner of efficiency map.

Definition at line 59 of file AliMUONTriggerChamberEfficiency.h.

Referenced by operator=(), and ~AliMUONTriggerChamberEfficiency().


The documentation for this class was generated from the following files: