X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=MUON%2FAliMUONTriggerLut.cxx;h=7093f76a761330f8cbaa333f62d156b69dbea86f;hp=08385bb0005ebaae6a71ec3c4899182334a1ba0f;hb=d05ca1a432950982bda13182aa5dc8107f393d0b;hpb=94de381804dbc3c6cc154b06fc58284dc8266705 diff --git a/MUON/AliMUONTriggerLut.cxx b/MUON/AliMUONTriggerLut.cxx index 08385bb0005..7093f76a761 100644 --- a/MUON/AliMUONTriggerLut.cxx +++ b/MUON/AliMUONTriggerLut.cxx @@ -12,35 +12,26 @@ * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ -/* -$Log$ -Revision 1.4 2000/10/02 16:58:29 egangler -Cleaning of the code : --> coding conventions --> void Streamers --> some useless includes removed or replaced by "class" statement -Revision 1.3 2000/06/25 16:47:43 pcrochet -pow replaced by TMath::Power +/* $Id$ */ -*/ +#include +#include +#include +#include -#include "AliMUONTriggerCircuit.h" #include "AliMUONTriggerLut.h" -#include "TTree.h" +#include "AliMUONTriggerCircuit.h" #include "AliRun.h" #include "AliMUON.h" -#include "AliMUONPoints.h" -#include "TMath.h" -#include "TFile.h" -#include "TROOT.h" -#include "TH3.h" -#include +#include "AliLog.h" ClassImp(AliMUONTriggerLut) //---------------------------------------------------------------------- -AliMUONTriggerLut::AliMUONTriggerLut() { +AliMUONTriggerLut::AliMUONTriggerLut() + : TNamed() +{ // constructor fLptPlus = fLptMinu = fLptUnde = 0; fHptPlus = fHptMinu = fHptUnde = 0; @@ -64,16 +55,25 @@ AliMUONTriggerLut::~AliMUONTriggerLut() { } //---------------------------------------------------------------------- -AliMUONTriggerLut::AliMUONTriggerLut (const AliMUONTriggerLut& MUONTriggerLut) +AliMUONTriggerLut::AliMUONTriggerLut (const AliMUONTriggerLut& theMUONTriggerLut) + : TNamed(theMUONTriggerLut) { -// Dummy copy constructor +// Protected copy constructor + + AliFatal("Not implemented."); } //---------------------------------------------------------------------- -AliMUONTriggerLut & AliMUONTriggerLut::operator=(const AliMUONTriggerLut& MUONTriggerLut) +AliMUONTriggerLut & +AliMUONTriggerLut::operator=(const AliMUONTriggerLut& rhs) { -// Dummy assignment operator - return *this; +// Protected assignement operator + + if (this == &rhs) return *this; + + AliFatal( "Not implemented."); + + return *this; } //---------------------------------------------------------------------- @@ -85,7 +85,7 @@ void AliMUONTriggerLut::GetLutOutput(Int_t circuit, Int_t xstrip, Int_t idev, static TFile *fileLut; static Bool_t first=kTRUE; if(first) { - cout << " opening MUONTriggerLut.root " << "\n"; + // printf(" opening MUONTriggerLut.root \n"); fileLut = new TFile("$(ALICE_ROOT)/MUON/MUONTriggerLut.root","READ"); first=kFALSE; } @@ -146,10 +146,12 @@ void AliMUONTriggerLut::GetLutOutput(Int_t circuit, Int_t xstrip, Int_t idev, if ((binc & mask)!=0) lutApt[0]=lutApt[1]=1; // get back to the first file +/* no need for this with NewIO TTree *tK = gAlice->TreeK(); TFile *file1 = 0; if (tK) file1 = tK->GetCurrentFile(); file1->cd(); +*/ } //---------------------------------------------------------------------- @@ -175,7 +177,7 @@ void AliMUONTriggerLut::LoadLut(){ char fileName[60]; sprintf(fileName,"$(ALICE_ROOT)/MUON/MUONTriggerLut.root"); - cout << " file name is " << fileName << "\n"; + printf(" file name is %s\n",fileName); // open output file containing histos TFile *hfile = new TFile(fileName,"RECREATE","Trigger Look Up Table"); @@ -200,7 +202,7 @@ void AliMUONTriggerLut::LoadLut(){ AliMUONTriggerCircuit* triggerCircuit; for (Int_t icirc=0; icirc<234; icirc++) { - cout << " Loading LuT for circuit " << icirc << " of 234 " << "\n"; + printf(" Loading LuT for circuit %d \n",icirc); triggerCircuit = &(pMUON->TriggerCircuit(icirc)); for (Int_t istripX=0; istripX<31; istripX++) {