]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTriggerLut.cxx
Optional geometry without CPV
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerLut.cxx
index 40bf136fa4dd1efbdf07e1a84769c41b65cc5633..82c8a38ce43245be764f7d90d8ab92880c185df2 100644 (file)
 
 /* $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;
@@ -48,31 +66,11 @@ AliMUONTriggerLut::~AliMUONTriggerLut()
   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() )
@@ -105,9 +103,9 @@ AliMUONTriggerLut::ReadFromFile(const char* filename)
 //----------------------------------------------------------------------
 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 )
   {
@@ -143,7 +141,7 @@ void AliMUONTriggerLut::GetLutOutput(Int_t circuit, Int_t xstrip, Int_t idev,
   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);
@@ -156,13 +154,14 @@ void AliMUONTriggerLut::GetLutOutput(Int_t circuit, Int_t xstrip, Int_t idev,
   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;