/* $Id$ */
+/// -----------------------
+/// Class AliMUONTriggerLut
+/// -----------------------
+/// Local Trigger Look Up Table
+/// reading interface LUT data is stored into TH3S histograms and readout
+/// from the Local Trigger algorithm
+/// Author: Philippe Crochet
+
#include "AliMUONTriggerLut.h"
#include "AliLog.h"
#include "TFile.h"
#include "TH3.h"
+/// \cond CLASSIMP
ClassImp(AliMUONTriggerLut)
+/// \endcond
//----------------------------------------------------------------------
AliMUONTriggerLut::AliMUONTriggerLut()
- : TNamed()
+ : TNamed(),
+ fLptPlus(0),
+ fLptMinu(0),
+ fLptUnde(0),
+ fHptPlus(0),
+ fHptMinu(0),
+ fHptUnde(0),
+ fAptPlus(0),
+ fAptMinu(0),
+ fAptUnde(0)
{
-// constructor
- fLptPlus = fLptMinu = fLptUnde = 0;
- fHptPlus = fHptMinu = fHptUnde = 0;
- fAptPlus = fAptMinu = fAptUnde = 0;
+ //ctor
}
+
//----------------------------------------------------------------------
AliMUONTriggerLut::~AliMUONTriggerLut()
{
- // destructor
+/// Destructor
+
delete fLptPlus;
delete fLptMinu;
delete fLptUnde;
delete fAptUnde;
}
-//----------------------------------------------------------------------
-AliMUONTriggerLut::AliMUONTriggerLut (const AliMUONTriggerLut& theMUONTriggerLut)
- : TNamed(theMUONTriggerLut)
-{
-// Protected copy constructor
-
- AliFatal("Not implemented.");
-}
-
-//----------------------------------------------------------------------
-AliMUONTriggerLut &
-AliMUONTriggerLut::operator=(const AliMUONTriggerLut& rhs)
-{
-// Protected assignement operator
-
- if (this == &rhs) return *this;
-
- AliFatal( "Not implemented.");
-
- return *this;
-}
-
void
AliMUONTriggerLut::ReadFromFile(const char* filename)
{
+/// Return output of LuT for corresponding TH3S
+
TFile f(filename);
if ( f.IsZombie() )
//----------------------------------------------------------------------
void AliMUONTriggerLut::GetLutOutput(Int_t circuit, Int_t xstrip, Int_t idev,
Int_t ystrip, Int_t lutLpt[2],
- Int_t lutHpt[2], Int_t lutApt[2])
+ Int_t lutHpt[2])
{
- // return output of LuT for corresponding TH3S
+/// Return output of LuT for corresponding TH3S
if ( !fLptPlus )
{
bin = fHptUnde->GetBin(circuit,xstrip,idev);
binc = (Short_t)fHptUnde->GetBinContent(bin);
if ((binc & mask)!=0) lutHpt[0]=lutHpt[1]=1;
-
+/*
// All pts.............................................
bin = fAptPlus->GetBin(circuit,xstrip,idev);
binc = (Short_t)fAptPlus->GetBinContent(bin);
bin = fAptUnde->GetBin(circuit,xstrip,idev);
binc = (Short_t)fAptUnde->GetBinContent(bin);
if ((binc & mask)!=0) lutApt[0]=lutApt[1]=1;
-
+*/
}
//----------------------------------------------------------------------
Int_t AliMUONTriggerLut::GetMask(Int_t ystrip)
{
- // returns the mask corresponding to ystrip
+/// Return the mask corresponding to ystrip
+
Int_t tabMask[16]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
Int_t mask=0;
tabMask[ystrip]=1;