From d076c8d50a1623661d15ead7bdc66ea74a064a67 Mon Sep 17 00:00:00 2001 From: decaro Date: Fri, 5 Nov 2004 07:20:08 +0000 Subject: [PATCH] TOF library splitting and conversion of some printout messages in AliLog schema (T.Kuhr) --- TOF/AliTOF.cxx | 71 +++------- TOF/AliTOF.h | 6 - TOF/AliTOFDDLRawData.cxx | 3 +- TOF/AliTOFDigitizer.cxx | 22 +-- TOF/AliTOFGeometry.cxx | 22 +-- TOF/AliTOFGeometry.h | 3 +- TOF/AliTOFHitMap.cxx | 3 +- TOF/AliTOFMerger.cxx | 266 ------------------------------------ TOF/AliTOFMerger.h | 63 --------- TOF/AliTOFReconstructor.cxx | 21 +-- TOF/AliTOFSDigit.cxx | 11 +- TOF/AliTOFSDigitizer.cxx | 66 ++++----- TOF/AliTOFdigit.cxx | 1 - TOF/AliTOFtrack.cxx | 5 +- TOF/AliTOFtracker.cxx | 17 ++- TOF/AliTOFv4T0.cxx | 45 +++--- TOF/TOFLinkDef.h | 1 - TOF/TOFbaseLinkDef.h | 15 ++ TOF/TOFrecLinkDef.h | 19 +++ TOF/TOFsimLinkDef.h | 26 ++++ TOF/libTOF.pkg | 2 +- TOF/libTOFbase.pkg | 10 ++ TOF/libTOFsim.pkg | 15 ++ 23 files changed, 207 insertions(+), 506 deletions(-) delete mode 100644 TOF/AliTOFMerger.cxx delete mode 100644 TOF/AliTOFMerger.h create mode 100644 TOF/TOFbaseLinkDef.h create mode 100644 TOF/TOFrecLinkDef.h create mode 100644 TOF/TOFsimLinkDef.h create mode 100644 TOF/libTOFbase.pkg create mode 100644 TOF/libTOFsim.pkg diff --git a/TOF/AliTOF.cxx b/TOF/AliTOF.cxx index 57637ceeba4..294037d4c93 100644 --- a/TOF/AliTOF.cxx +++ b/TOF/AliTOF.cxx @@ -57,6 +57,7 @@ #include #include +#include "AliLog.h" #include "AliConfig.h" #include "AliHeader.h" #include "AliConst.h" @@ -90,7 +91,6 @@ AliTOF::AliTOF() fDigits = 0 ; fReconParticles = 0x0; fName="TOF"; - fMerger = 0x0; fTZero = kFALSE; fTOFGeometry = 0; } @@ -111,23 +111,22 @@ AliTOF::AliTOF(const char *name, const char *title, Option_t *option) fDTask = 0x0; fReTask = 0x0; fReconParticles= 0x0; - fMerger = 0x0; fTOFGeometry = 0; if (strstr(option,"tzero")){ fHits = new TClonesArray("AliTOFhitT0", 1000); fTZero = kTRUE; - cout << "tzero option requires AliTOFv4T0 as TOF version (check Your Config.C)" << endl; + AliWarning("tzero option requires AliTOFv4T0 as TOF version (check Your Config.C)"); }else{ fHits = new TClonesArray("AliTOFhit", 1000); fTZero = kFALSE; } if (gAlice==0) { - Fatal("AliTOF","gAlice==0 !"); + AliFatal("gAlice==0 !"); } if (gAlice->GetMCApp()->GetHitLists()) gAlice->GetMCApp()->AddHitList(fHits); - else Error("AliTOF","gAlice->GetHitLists()==0"); + else AliError("gAlice->GetHitLists()==0"); fIshunt = 0; fSDigits = new TClonesArray("AliTOFSDigit", 1000); @@ -138,7 +137,6 @@ AliTOF::AliTOF(const char *name, const char *title, Option_t *option) fDTask = 0x0; fReTask = 0x0; fReconParticles = 0x0; - fMerger = 0x0; // // Digitization parameters @@ -359,7 +357,7 @@ void AliTOF::DrawModule() const // Draw a shaded view of the common part of the TOF geometry // - cout << " Drawing of AliTOF"<< endl; + AliInfo(" Drawing of AliTOF"); // Set everything unseen gMC->Gsatt("*", "seen", -1); // @@ -579,6 +577,11 @@ void AliTOF::Init() // Set id of TOF sensitive volume if (IsVersion() !=0) fIdSens=gMC->VolId("FPAD"); // + // Save the geometry + TDirectory* saveDir = gDirectory; + gAlice->GetRunLoader()->CdGAFile(); + fTOFGeometry->Write("TOFGeometry"); + saveDir->cd(); } //____________________________________________________________________________ @@ -638,7 +641,7 @@ void AliTOF::Makehits(Bool_t hits) if (hits && (IsVersion()!=0)) fIdSens = gMC->VolId("FPAD"); else - cout << "Option for writing the TOF-hits branch on TreeH: disabled" << endl; + AliInfo("Option for writing the TOF-hits branch on TreeH: disabled"); } //____________________________________________________________________________ @@ -647,44 +650,6 @@ void AliTOF::FinishEvent() // do nothing } -//___________________________________________ -void AliTOF::SDigits2Digits() -{ -// -// Generate digits performing merging -// - /* - int nparticles = gAlice->GetNtrack(); - cout << "Particles :" < 0 ) { - - AliTOF::Hits2Digits(); - - } - */ - cout<<"AliTOF::SDigits2Digits"<Init(); - cout<<"AliTOF::SDigits2Digits Init"<Digitise(); - cout<<"AliTOF::SDigits2Digits Digitise() "<GetRunLoader(); AliTOFSDigitizer sd((rl->GetFileName()).Data()); - if (GetDebug()) sd.Print(""); + ToAliDebug(1, sd.Print("")); sd.Exec("") ; @@ -710,14 +675,14 @@ void AliTOF::Hits2SDigits(Int_t evNumber1, Int_t evNumber2) // if ((evNumber2-evNumber1)==1) - cout << ": I am making sdigits for the " << evNumber1 << "th event \n"; + AliDebug(1, Form("I am making sdigits for the %dth event", evNumber1)) else if ((evNumber2-evNumber1)>1) - cout << ": I am making sdigits for the events from the " - << evNumber1 << "th to the " << evNumber2-1 << "th \n"; + AliDebug(1, Form("I am making sdigits for the events from the " + "%dth to the %dth", evNumber1, evNumber2-1)); AliRunLoader * rl = fLoader->GetRunLoader(); AliTOFSDigitizer sd((rl->GetFileName()).Data(),evNumber1,evNumber2) ; - if (GetDebug()) sd.Print(""); + ToAliDebug(1, sd.Print("")); sd.Exec("") ; @@ -796,14 +761,14 @@ void AliTOF::Digits2Raw() TTree* digits = fLoader->TreeD(); if (!digits) { - Error("Digits2Raw", "no digits tree"); + AliError("no digits tree"); return; } AliTOFDDLRawData rawWriter; rawWriter.SetVerbose(0); - Info("Digits2Raw", "Formatting raw data for TOF"); + AliInfo("Formatting raw data for TOF"); digits->GetEvent(0); rawWriter.RawDataTOF(digits->GetBranch("TOF")); diff --git a/TOF/AliTOF.h b/TOF/AliTOF.h index 26586c1bf3b..67093cab2c8 100644 --- a/TOF/AliTOF.h +++ b/TOF/AliTOF.h @@ -22,13 +22,11 @@ class TDirectory; class TString ; class TTask ; class TFolder ; -class AliTOFMerger; #include "TObject.h" #include "TTree.h" #include "AliDetector.h" #include -#include "AliTOFMerger.h" #include "AliTOFSDigitizer.h" #include "AliTOFGeometry.h" @@ -73,9 +71,6 @@ public: //virtual void DrawDetectorStripsinFrame()=0; void CreateTOFFolders(); Bool_t CheckOverlap(Int_t* vol, Float_t* digit, Int_t Track); - virtual void SDigits2Digits(); - virtual void SetMerger(AliTOFMerger* merger); - virtual AliTOFMerger* Merger(); //virtual void Hits2Digits(); virtual void Hits2SDigits(); virtual void Hits2SDigits(Int_t evNumber1, Int_t evNumber2); @@ -99,7 +94,6 @@ protected: TClonesArray* fSDigits; //! List of summable digits Int_t fNSDigits; //! Number of sdigits TClonesArray* fReconParticles; // List of reconstructed particles - AliTOFMerger *fMerger; // ! pointer to merger //Float_t fGapA; // Gap beetween tilted strip in A-type plate //Float_t fGapB; // Gap beetween tilted strip in B-type plate diff --git a/TOF/AliTOFDDLRawData.cxx b/TOF/AliTOFDDLRawData.cxx index 2397b66491f..20828cf18f9 100644 --- a/TOF/AliTOFDDLRawData.cxx +++ b/TOF/AliTOFDDLRawData.cxx @@ -31,6 +31,7 @@ Revision 0.01 2004/6/11 A.De Caro, S.B.Sellitto, R.Silvestri #include #include #include +#include "AliLog.h" #include "AliTOF.h" #include "AliTOFGeometry.h" #include "AliTOFdigit.h" @@ -93,7 +94,7 @@ void AliTOFDDLRawData::GetDigits(TClonesArray *TOFdigits,Int_t nDDL,UInt_t *buf) ofstream ftxt; if(!ndigits) { - Error("GetDigits", "No found TOF digits\n"); + AliError("No found TOF digits"); return; } diff --git a/TOF/AliTOFDigitizer.cxx b/TOF/AliTOFDigitizer.cxx index 51d4f0df486..70d2fb62dc2 100644 --- a/TOF/AliTOFDigitizer.cxx +++ b/TOF/AliTOFDigitizer.cxx @@ -41,6 +41,7 @@ #include "AliDigitizer.h" #include "AliRunDigitizer.h" +#include "AliLog.h" #include "AliRun.h" #include "AliRunLoader.h" #include "AliLoader.h" @@ -77,7 +78,7 @@ AliTOFDigitizer::~AliTOFDigitizer() //--------------------------------------------------------------------- -void AliTOFDigitizer::Exec(Option_t* option) +void AliTOFDigitizer::Exec(Option_t* /*option*/) { // // Perform digitization and merging. @@ -89,7 +90,7 @@ void AliTOFDigitizer::Exec(Option_t* option) // - the sdigits container is used to create the array of AliTOFdigit. // - if(strstr(option,"deb")) cout<<"AliTOFDigitizer::Exec\n"; + AliDebug(1, ""); // get the ptr to TOF detector @@ -104,14 +105,14 @@ void AliTOFDigitizer::Exec(Option_t* option) AliRunLoader* outrl = AliRunLoader::GetRunLoader(fManager->GetOutputFolderName()); if (outrl == 0x0) { - Error("Exec","Can not find Run Loader in output folder."); + AliError("Can not find Run Loader in output folder."); return; } AliLoader* outgime = outrl->GetLoader("TOFLoader"); if (outgime == 0x0) { - Error("Exec","Can not get TOF Loader from Output Run Loader."); + AliError("Can not get TOF Loader from Output Run Loader."); return; } @@ -195,8 +196,7 @@ void AliTOFDigitizer::CreateDigits() Bool_t isSDigitBad = (sector<0 || sector>17 || plate<0 || plate >4 || padz<0 || padz>1 || padx<0 || padx>47); if (isSDigitBad) { - cout << " strange sdigit found" << endl; - abort(); + AliFatal("strange sdigit found"); } //------------------------------------------------------- @@ -246,14 +246,14 @@ void AliTOFDigitizer::ReadSDigit(Int_t inputFile ) AliRunLoader* rl = AliRunLoader::GetRunLoader(fManager->GetInputFolderName(inputFile)); if (rl == 0x0) { - Error("ReadSDigit","Can not find Run Loader in input %d folder.",inputFile); + AliError(Form("Can not find Run Loader in input %d folder.",inputFile)); return; } AliLoader* gime = rl->GetLoader("TOFLoader"); if (gime == 0x0) { - Error("ReadSDigit","Can not get TOF Loader from Input %d Run Loader.",inputFile); + AliError(Form("Can not get TOF Loader from Input %d Run Loader.",inputFile)); return; } @@ -263,13 +263,13 @@ void AliTOFDigitizer::ReadSDigit(Int_t inputFile ) Int_t retval = gime->LoadSDigits(); if (retval) { - Error("ReadSDigit","Error occured while loading S. Digits for Input %d",inputFile); + AliError(Form("Error occured while loading S. Digits for Input %d",inputFile)); return; } currentTreeS=gime->TreeS(); if (currentTreeS == 0x0) { - Error("ReadSDigit","Can not get S. Digits Tree for Input %d",inputFile); + AliError(Form("Can not get S. Digits Tree for Input %d",inputFile)); return; } } @@ -280,7 +280,7 @@ void AliTOFDigitizer::ReadSDigit(Int_t inputFile ) TBranch* tofBranch=currentTreeS->GetBranch("TOF"); if(!tofBranch){ - Fatal("ReadSDigit","TOF branch not found for input %d",inputFile); + AliFatal(Form("TOF branch not found for input %d",inputFile)); } tofBranch->SetAddress(&sdigitsDummyContainer); diff --git a/TOF/AliTOFGeometry.cxx b/TOF/AliTOFGeometry.cxx index 6bd1fc10ec6..9202d4ea16b 100644 --- a/TOF/AliTOFGeometry.cxx +++ b/TOF/AliTOFGeometry.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.6 2004/06/15 15:27:59 decaro +TOF raw data: preliminary implementation and style changes + Revision 1.5 2004/04/20 14:37:22 hristov Using TMath::Abs instead of fabs, arrays of variable size created/deleted correctly (HP,Sun) @@ -51,6 +54,7 @@ Revision 0.01 2003/12/04 S.Arcelli // // /////////////////////////////////////////////////////////////////////////////// +#include "AliLog.h" #include "AliConst.h" #include "AliTOFGeometry.h" @@ -424,15 +428,15 @@ Int_t AliTOFGeometry::GetPadX(Float_t *pos) Int_t isector = GetSector(pos); if(isector == -1){ - cout << "Detector Index could not be determined" << endl; + AliError("Detector Index could not be determined"); return iPadX;} Int_t iplate = GetPlate(pos); if(iplate == -1){ - cout << "Detector Index could not be determined" << endl; + AliError("Detector Index could not be determined"); return iPadX;} Int_t istrip = GetStrip(pos); if(istrip == -1){ - cout << "Detector Index could not be determined" << endl; + AliError("Detector Index could not be determined"); return iPadX;} @@ -468,7 +472,7 @@ Int_t AliTOFGeometry::GetPlate(Float_t *pos) Int_t isector = GetSector(pos); if(isector == -1){ - cout << "Detector Index could not be determined" << endl; + AliError("Detector Index could not be determined"); return iPlate;} Float_t x = pos[0]; @@ -504,11 +508,11 @@ Int_t AliTOFGeometry::GetStrip(Float_t *pos) Int_t isector = GetSector(pos); if(isector == -1){ - cout << "Detector Index could not be determined" << endl; + AliError("Detector Index could not be determined"); return iStrip;} Int_t iplate = GetPlate(pos); if(iplate == -1){ - cout << "Detector Index could not be determined" << endl; + AliError("Detector Index could not be determined"); return iStrip;} @@ -551,15 +555,15 @@ Int_t AliTOFGeometry::GetPadZ(Float_t *pos) Int_t isector = GetSector(pos); if(isector == -1){ - cout << "Detector Index could not be determined" << endl; + AliError("Detector Index could not be determined"); return iPadZ;} Int_t iplate = GetPlate(pos); if(iplate == -1){ - cout << "Detector Index could not be determined" << endl; + AliError("Detector Index could not be determined"); return iPadZ;} Int_t istrip = GetStrip(pos); if(istrip == -1){ - cout << "Detector Index could not be determined" << endl; + AliError("Detector Index could not be determined"); return iPadZ;} diff --git a/TOF/AliTOFGeometry.h b/TOF/AliTOFGeometry.h index 5f63bd9a5fe..83c1556e5a7 100644 --- a/TOF/AliTOFGeometry.h +++ b/TOF/AliTOFGeometry.h @@ -12,8 +12,9 @@ /////////////////////////////////////////////////////////////////////////////// +#include "TObject.h" -class AliTOFGeometry{ +class AliTOFGeometry: public TObject{ public: AliTOFGeometry(); diff --git a/TOF/AliTOFHitMap.cxx b/TOF/AliTOFHitMap.cxx index f657814ec5b..6029d0a9973 100644 --- a/TOF/AliTOFHitMap.cxx +++ b/TOF/AliTOFHitMap.cxx @@ -36,6 +36,7 @@ #include #include +#include "AliLog.h" #include "AliTOFHitMap.h" #include "AliTOFSDigit.h" #include "AliTOFGeometry.h" @@ -118,7 +119,7 @@ Int_t AliTOFHitMap::CheckedIndex(Int_t *vol) const (vol[4]/*-1*/); // padz if (index >= fMaxIndex) { - Error("AliTOFHitMap","CheckedIndex - input outside bounds"); + AliError("CheckedIndex - input outside bounds"); return -1; } else { return index; diff --git a/TOF/AliTOFMerger.cxx b/TOF/AliTOFMerger.cxx deleted file mode 100644 index c86deeb53e8..00000000000 --- a/TOF/AliTOFMerger.cxx +++ /dev/null @@ -1,266 +0,0 @@ -/************************************************************************** - * Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. * - * * - * Author: The ALICE Off-line Project. * - * Contributors are mentioned in the code where appropriate. * - * * - * Permission to use, copy, modify and distribute this software and its * - * documentation strictly for non-commercial purposes is hereby granted * - * without fee, provided that the above copyright notice appears in all * - * copies and that both the copyright notice and this permission notice * - * appear in the supporting documentation. The authors make no claims * - * about the suitability of this software for any purpose. It is * - * provided "as is" without express or implied warranty. * - **************************************************************************/ -//Piotr.Skowronski@cern.ch : -//Corrections applied in order to compile (only) with new I/O and folder structure -//To be implemented correctly by responsible - -#include "AliRunLoader.h" -#include "AliLoader.h" - -#include -#include -#include -#include -#include - - -#include "AliTOFMerger.h" -#include "AliTOF.h" -#include "AliTOFSDigitizer.h" -#include "AliTOFhit.h" -#include "AliTOFdigit.h" - -#include "AliRun.h" -#include "AliPDG.h" - -#include -#include -#include - -ClassImp(AliTOFMerger) - -//___________________________________________ - AliTOFMerger::AliTOFMerger() -{ -// Default ctor - fNDigits = 0; - fEvNrSig = 0; - fEvNrBgr = 0; - fMerge =kDigitize; - fDigits = 0; - fSDigits =0; - fFnBgr = 0; - fFnSig = 0; - fBgrFile = 0; - fRunLoader = 0 ; -} - -//------------------------------------------------------------------------ -AliTOFMerger::~AliTOFMerger() -{ -// Dtor - if(fSDigits) { - fSDigits->Delete(); - delete fSDigits ; - fSDigits = 0; - } - delete fBgrFile; - fBgrFile = 0; - if(fFnBgr) { - delete[] fFnBgr; - fFnBgr = 0; - } - if(fFnSig) { - delete[] fFnSig; - fFnSig = 0; - } - delete fRunLoader; -} - - -//------------------------------------------------------------------------ -void AliTOFMerger::Init() -{ -// Initialisation - if (fMerge) fBgrFile = InitBgr(); - -} - - - -//------------------------------------------------------------------------ -TFile* AliTOFMerger::InitBgr() -{ -// Initialise background event - fRunLoader = AliRunLoader::Open(fFnBgr);//open session and mount on default event folder - - TFile *file = new TFile(fFnBgr); -// add error checking later - printf("\n AliTOFMerger has opened %s file with background event \n", fFnBgr); - return file; -} - -//------------------------------------------------------------------------ -void AliTOFMerger::Digitise() -{ -// as in FMD -// keep galice.root for signal and name differently the file for -// background when add! otherwise the track info for signal will be lost ! - -#ifdef DEBUG - cout<<"ALiTOFMerger::>SDigits2Digits start...\n"; -#endif - Int_t retval; - - if (fRunLoader == 0x0) - { - Error("Exec","Event is not loaded. Exiting"); - return; - } - - if (fRunLoader->GetAliRun() == 0x0) { - retval = fRunLoader->LoadgAlice(); - if (retval) - { - Error("Exec","Error occured while loading gAlice. Exiting"); - return; - } - } - - if (fRunLoader->TreeE() == 0x0) { - retval = fRunLoader->LoadHeader(); - if (retval) - { - Error("Exec","Error occured while loading header. Exiting"); - return; - } - } - - if (fRunLoader->TreeK() == 0x0) { - retval = fRunLoader->LoadKinematics("READ"); - if (retval) - { - Error("Exec","Error occured while loading kinematics. Exiting"); - return; - } - } - - AliLoader* gime = fRunLoader->GetLoader("TOFLoader"); - if (gime == 0x0) - { - Error("Exec","Can not find TOF loader in event. Exiting."); - return; - } - gAlice = fRunLoader->GetAliRun(); - - AliTOF* TOF = (AliTOF *) gAlice->GetDetector("TOF") ; - - - TFile *f1 =0; - TTree *TK = fRunLoader->TreeK(); - if (TK) f1 = TK->GetCurrentFile(); - - fRunLoader->GetEvent(fEvNrSig); - - if(gime->TreeD() == 0) - gime->MakeTree("D") ; - - gime->TreeD()->Reset(); - - // read and write digits for signal - ReadWriteDigit(fEvNrSig); - - if(fMerge) - { - // bgr file - fBgrFile->cd(); - // gAlice->TreeS()->Reset(); - gAlice = (AliRun*)fBgrFile->Get("gAlice"); - ReadWriteDigit(fEvNrBgr); - } //if merge - - - f1->cd(); - - //Make branch for digits - TOF->MakeBranch("D"); - - gime->TreeD()->Reset(); - gime->TreeD()->Fill(); - - fDigits = TOF->Digits(); - - gime->WriteDigits("OVERWRITE"); - - gAlice->ResetDigits(); - -} - -//--------------------------------------------------------------------- - -void AliTOFMerger::ReadWriteDigit(Int_t iEvNum) -{ -// -// Read Sdigits from the current file and write them in the TreeD -// - AliTOFdigit* tofsdigit; - - AliTOF * tofinfile = (AliTOF *) gAlice->GetDetector("TOF") ; - - Int_t retval = fRunLoader->GetEvent(iEvNum); - if (retval) - { - Error("ReadWriteDigit","Error while getting event %d",iEvNum); - return; - } - - AliLoader* gime = fRunLoader->GetLoader("TOFLoader"); - if (gime == 0x0) - { - Error("Exec","Can not find TOF loader in event. Exiting."); - return; - } - - - - if(gime->TreeS()==0) - { - cout<<" TreeS==0 -> return"<TreeS()<ResetDigits(); - gime->TreeS()->GetEvent(iEvNum); - TClonesArray * TOFdigits = tofinfile->SDigits(); - - ndig=TOFdigits->GetEntries(); - - for (k=0; kUncheckedAt(k); - - tracks[0] = tofsdigit->GetTrack(0); - tracks[1] = tofsdigit->GetTrack(1); - tracks[2] = tofsdigit->GetTrack(2); - - vol[0] = tofsdigit->GetSector(); - vol[1] = tofsdigit->GetPlate(); - vol[2] = tofsdigit->GetStrip(); - vol[3] = tofsdigit->GetPadx(); - vol[4] = tofsdigit->GetPadz(); - - digit[0] = tofsdigit->GetTdc(); - digit[1] = tofsdigit->GetAdc(); - - new ((*fDigits)[fNDigits++]) AliTOFdigit(tracks, vol, digit); - } // end loop on sdigits in the current file -} - - - diff --git a/TOF/AliTOFMerger.h b/TOF/AliTOFMerger.h deleted file mode 100644 index 5eada3121b8..00000000000 --- a/TOF/AliTOFMerger.h +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef ALITOFMERGER_H -#define ALITOFMERGER_H -/* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. * - * See cxx source for full Copyright notice */ - -// #include "AliMerger.h" -// #include "AliMergable.h" -#include "TRandom.h" -#include "AliDetector.h" -#include "AliTOF.h" -//Piotr.Skowronski@cern.ch : -//Corrections applied in order to compile (only) with new I/O and folder structure -//To be implemented correctly by responsible -class AliRunLoader; - -typedef enum {kDigitize=0, kMerge = 1} MergeMode_t; - -class AliTOFMerger { - public: - - AliTOFMerger(); - virtual ~AliTOFMerger(); - - - // Initialize merging and digitisation - virtual void Init(); - - // Do the main work - void Digitise() ; - TClonesArray *SDigits() const {return fSDigits;} - - void ReadWriteDigit(Int_t); - - // Setters -> Later Communication with gAlice - void SetSignalEventNumber(Int_t i) {fEvNrSig = i;} - void SetBackgroundEventNumber(Int_t i) {fEvNrBgr = i;} - void SetBackgroundFileName(char* file) {fFnBgr = file;} - void SetSignalFileName(char* file) {fFnSig = file;} - void SetMode(MergeMode_t mode) {fMerge = mode;} - - enum {kBgTag = -1}; - - private: - // Open the bgr file - TFile *InitBgr(); - - - private: - TClonesArray *fDigits; // ! array with digits - TClonesArray *fSDigits ; // List of summable digits - Int_t fNDigits; // number of digits - Int_t fEvNrSig; // signal event number - Int_t fEvNrBgr; // background event number - MergeMode_t fMerge; // merging type kDigitize, kMerge - char *fFnBgr; // background file name - char *fFnSig; // signal file name - TFile *fBgrFile; // Pointer to background file - - AliRunLoader * fRunLoader; //! Run Loader - ClassDef(AliTOFMerger,0) -}; -#endif - diff --git a/TOF/AliTOFReconstructor.cxx b/TOF/AliTOFReconstructor.cxx index 6ff0e34a495..f89ecc4112d 100644 --- a/TOF/AliTOFReconstructor.cxx +++ b/TOF/AliTOFReconstructor.cxx @@ -25,8 +25,9 @@ #include "AliTOFReconstructor.h" #include "AliRunLoader.h" #include "AliRun.h" -#include "AliTOF.h" #include "AliTOFtracker.h" +#include "AliLog.h" +#include ClassImp(AliTOFReconstructor) @@ -64,19 +65,11 @@ AliTOFGeometry* AliTOFReconstructor::GetTOFGeometry(AliRunLoader* runLoader) con { // get the TOF parameters - if (!runLoader->GetAliRun()) runLoader->LoadgAlice(); - if (!runLoader->GetAliRun()) { - Error("GetTOFGeometry", "couldn't get AliRun object"); + runLoader->CdGAFile(); + AliTOFGeometry* tofGeom = (AliTOFGeometry*) gFile->Get("TOFGeometry"); + if (!tofGeom) { + AliError("no TOF geometry available"); return NULL; } - AliTOF* tof = (AliTOF*) runLoader->GetAliRun()->GetDetector("TOF"); - if (!tof) { - Error("GetTOFGeometry", "couldn't get TOF detector"); - return NULL; - } - if (!tof->GetGeometry()) { - Error("GetTOFGeometry", "no TOF geometry available"); - return NULL; - } - return tof->GetGeometry(); + return tofGeom; } diff --git a/TOF/AliTOFSDigit.cxx b/TOF/AliTOFSDigit.cxx index ece39a8b567..f5644ee00c1 100644 --- a/TOF/AliTOFSDigit.cxx +++ b/TOF/AliTOFSDigit.cxx @@ -33,6 +33,7 @@ #include "TArrayF.h" #include "TArrayI.h" +#include "AliLog.h" #include "AliRun.h" #include "AliTOF.h" #include "AliTOFGeometry.h" @@ -161,9 +162,8 @@ void AliTOFSDigit::Update(Float_t tdcbin, Int_t tdc, Int_t adc, Int_t track) } // write warning about many tracks going to this pad if (iTrack == kMAXDIGITS) { - cerr<<"WARNING: AliTOFSDigit::Update Many hits in the padhit"< #include +#include "AliLog.h" #include "AliDetector.h" #include "AliLoader.h" #include "AliRun.h" @@ -92,7 +93,7 @@ AliTOFSDigitizer::AliTOFSDigitizer(const char* HeaderFile, Int_t evNumber1, Int_ fRunLoader = AliRunLoader::Open(HeaderFile);//open session and mount on default event folder if (fRunLoader == 0x0) { - Fatal("AliTOFSDigitizer","Event is not loaded. Exiting"); + AliFatal("Event is not loaded. Exiting"); return; } @@ -106,10 +107,10 @@ AliTOFSDigitizer::AliTOFSDigitizer(const char* HeaderFile, Int_t evNumber1, Int_ else fEvent2 = 1; if (!(fEvent2>fEvent1)) { - cout << " ERROR: fEvent2 = " << fEvent2 << " <= fEvent1 = " << fEvent1 << endl; + AliError(Form("fEvent2 = %d <= fEvent1 = %d", fEvent2, fEvent1)); fEvent1 = 0; fEvent2 = 1; - cout << " Correction: fEvent2 = " << fEvent2 << " <= fEvent1 = " << fEvent1 << endl; + AliError(Form("Correction: fEvent2 = %d <= fEvent1 = %d", fEvent2, fEvent1)); } // init parameters for sdigitization @@ -118,7 +119,7 @@ AliTOFSDigitizer::AliTOFSDigitizer(const char* HeaderFile, Int_t evNumber1, Int_ fTOFLoader = fRunLoader->GetLoader("TOFLoader"); if (fTOFLoader == 0x0) { - Fatal("AliTOFSDigitizer","Can not find TOF loader in event. Exiting."); + AliFatal("Can not find TOF loader in event. Exiting."); return; } fTOFLoader->PostSDigitizer(this); @@ -218,7 +219,7 @@ void AliTOFSDigitizer::Exec(Option_t *verboseOption) { AliTOF *tof = (AliTOF *) gAlice->GetDetector("TOF"); if (!tof) { - Error("AliTOFSDigitizer","TOF not found"); + AliError("TOF not found"); return; } @@ -409,14 +410,14 @@ void AliTOFSDigitizer::Exec(Option_t *verboseOption) { if (tof->SDigits()) tof->ResetSDigits(); if (strstr(verboseOption,"all")) { - cout << "---------------------------------------- \n"; - cout << " \n"; - cout << "After sdigitizing " << nselectedHitsinEv << " hits" << " in event " << iEvent << endl; + AliInfo("----------------------------------------"); + AliInfo(" "); + AliInfo(Form("After sdigitizing %d hits in event %d", nselectedHitsinEv, iEvent)); //" (" << nHitsFromPrim << " from primaries and " << nHitsFromSec << " from secondaries) TOF hits, " - cout << ntotalsdigitsinEv << " digits have been created \n"; - cout << "(" << nsignalsdigitsinEv << " due to signals and " << nnoisesdigitsinEv << " due to border effect) \n"; - cout << ntotalupdatesinEv << " total updates of the hit map have been performed in current event \n"; - cout << "---------------------------------------- \n"; + AliInfo(Form("%d digits have been created", ntotalsdigitsinEv)); + AliInfo(Form("(%d due to signals and %d due to border effect)", nsignalsdigitsinEv, nnoisesdigitsinEv)); + AliInfo(Form("%d total updates of the hit map have been performed in current event", ntotalupdatesinEv)); + AliInfo("----------------------------------------"); } } //event loop on events @@ -434,27 +435,27 @@ void AliTOFSDigitizer::Exec(Option_t *verboseOption) { nHitsFromSec=nselectedHits-nHitsFromPrim; if(strstr(verboseOption,"all")){ - cout << "---------------------------------------- \n"; - cout << "---------------------------------------- \n"; - cout << "-----------SDigitization Summary-------- \n"; - cout << " \n"; - cout << "After sdigitizing " << nselectedHits << " hits \n"; - cout << "in " << (fEvent2-fEvent1) << " events \n"; + AliInfo("----------------------------------------"); + AliInfo("----------------------------------------"); + AliInfo("-----------SDigitization Summary--------"); + AliInfo(" "); + AliInfo(Form("After sdigitizing %d hits", nselectedHits)); + AliInfo(Form("in %d events", fEvent2-fEvent1)); //" (" << nHitsFromPrim << " from primaries and " << nHitsFromSec << " from secondaries) TOF hits, " - cout << ntotalsdigits << " sdigits have been created \n"; - cout << "(" << nsignalsdigits << " due to signals and " - << nnoisesdigits << " due to border effect) \n"; - cout << ntotalupdates << " total updates of the hit map have been performed \n"; - cout << "in " << nlargeTofDiff << " cases the time of flight difference is greater than 200 ps \n"; + AliInfo(Form("%d sdigits have been created", ntotalsdigits)); + AliInfo(Form("(%d due to signals and " + "%d due to border effect)", nsignalsdigits, nnoisesdigits)); + AliInfo(Form("%d total updates of the hit map have been performed", ntotalupdates)); + AliInfo(Form("in %d cases the time of flight difference is greater than 200 ps", nlargeTofDiff)); } if(strstr(verboseOption,"tim") || strstr(verboseOption,"all")){ gBenchmark->Stop("TOFSDigitizer"); - cout << "AliTOFSDigitizer: \n"; - cout << " took " << gBenchmark->GetCpuTime("TOFSDigitizer") << " seconds in order to make sdigits " - << gBenchmark->GetCpuTime("TOFSDigitizer")/(fEvent2-fEvent1) << " seconds per event \n"; - cout << " +++++++++++++++++++++++++++++++++++++++++++++++++++ \n"; + AliInfo("AliTOFSDigitizer:"); + AliInfo(Form(" took %f seconds in order to make sdigits " + "%f seconds per event", gBenchmark->GetCpuTime("TOFSDigitizer"), gBenchmark->GetCpuTime("TOFSDigitizer")/(fEvent2-fEvent1))); + AliInfo(" +++++++++++++++++++++++++++++++++++++++++++++++++++ "); } } @@ -470,15 +471,14 @@ void AliTOFSDigitizer::SelectSectorAndPlate(Int_t sector, Int_t plate) { Bool_t isaWrongSelection=(sector < 0) || (sector >= AliTOFGeometry::NSectors()) || (plate < 0) || (plate >= AliTOFGeometry::NPlates()); if(isaWrongSelection){ - cout << "You have selected an invalid value for sector or plate " << endl; - cout << "The correct range for sector is [0,"<< AliTOFGeometry::NSectors()-1 <<"]\n"; - cout << "The correct range for plate is [0,"<< AliTOFGeometry::NPlates()-1 <<"]\n"; - cout << "By default we continue sdigitizing all hits in all plates of all sectors \n"; + AliError("You have selected an invalid value for sector or plate "); + AliError(Form("The correct range for sector is [0,%d]", AliTOFGeometry::NSectors()-1)); + AliError(Form("The correct range for plate is [0,%d]", AliTOFGeometry::NPlates()-1)); + AliError("By default we continue sdigitizing all hits in all plates of all sectors"); } else { fSelectedSector=sector; fSelectedPlate =plate; - cout << "SDigitizing only hits in plate " << fSelectedPlate << " of the sector " - << fSelectedSector << endl; + AliInfo(Form("SDigitizing only hits in plate %d of the sector %d", fSelectedPlate, fSelectedSector)); } } diff --git a/TOF/AliTOFdigit.cxx b/TOF/AliTOFdigit.cxx index c8bbc091172..bd5f0bf55cf 100644 --- a/TOF/AliTOFdigit.cxx +++ b/TOF/AliTOFdigit.cxx @@ -33,7 +33,6 @@ #include #include "AliRun.h" -#include "AliTOF.h" #include "AliTOFGeometry.h" #include "AliTOFdigit.h" diff --git a/TOF/AliTOFtrack.cxx b/TOF/AliTOFtrack.cxx index 04618391349..32d63e34e27 100644 --- a/TOF/AliTOFtrack.cxx +++ b/TOF/AliTOFtrack.cxx @@ -23,6 +23,7 @@ #include #include +#include "AliLog.h" #include "AliTOFtrack.h" #include "AliESDtrack.h" @@ -320,14 +321,14 @@ Int_t AliTOFtrack::Rotate(Double_t alpha) Double_t r2=fC*fX - fE; if (TMath::Abs(r2) >= 0.90000) { - cerr<<" AliTOFtrack warning: Rotation failed !\n"; + AliWarning("Rotation failed !"); return 0; } if((r2*r2) > 1) return 0; Double_t y0=fY + sqrt(1.- r2*r2)/fC; if ((fY-y0)*fC >= 0.) { - cerr<<" AliTOFtrack warning: Rotation failed !!!\n"; + AliWarning("Rotation failed !!!"); return 0; } diff --git a/TOF/AliTOFtracker.cxx b/TOF/AliTOFtracker.cxx index df1161c9dad..9b642f24221 100644 --- a/TOF/AliTOFtracker.cxx +++ b/TOF/AliTOFtracker.cxx @@ -26,10 +26,9 @@ #include "AliTOFtracker.h" #include "AliTOFtrack.h" #include "TClonesArray.h" -#include "TError.h" +#include "AliLog.h" #include "AliTOFdigit.h" #include "AliTOFGeometry.h" -#include "AliTOF.h" #include "AliRun.h" #include "AliModule.h" @@ -91,7 +90,7 @@ void AliTOFtracker::Init() { AliModule* frame=gAlice->GetModule("FRAME"); if(!frame) { - Error("Init","Could Not load FRAME! Assume Frame with Holes \n"); + AliError("Could Not load FRAME! Assume Frame with Holes"); fHoles=true; } else{ if(frame->IsVersion()==1) {fHoles=false;} @@ -136,9 +135,9 @@ Int_t AliTOFtracker::PropagateBack(AliESD* event) { //Second Step with Looser Matching Criterion MatchTracks(kTRUE); - Info("PropagateBack","Number of matched tracks: %d",fnmatch); - Info("PropagateBack","Number of good matched tracks: %d",fngoodmatch); - Info("PropagateBack","Number of bad matched tracks: %d",fnbadmatch); + AliInfo(Form("Number of matched tracks: %d",fnmatch)); + AliInfo(Form("Number of good matched tracks: %d",fngoodmatch)); + AliInfo(Form("Number of bad matched tracks: %d",fnbadmatch)); //Update the matched ESD tracks @@ -444,7 +443,7 @@ Int_t AliTOFtracker::LoadClusters(TTree *dTree) { TBranch *branch=dTree->GetBranch("TOF"); if (!branch) { - Error("LoadClusters"," can't get the branch with the TOF digits !\n"); + AliError("can't get the branch with the TOF digits !"); return 1; } @@ -453,7 +452,7 @@ Int_t AliTOFtracker::LoadClusters(TTree *dTree) { dTree->GetEvent(0); Int_t nd=digits->GetEntriesFast(); - Info("LoadClusters","number of digits: %d",nd); + AliInfo(Form("number of digits: %d",nd)); for (Int_t i=0; iUncheckedAt(i); @@ -492,7 +491,7 @@ Int_t AliTOFtracker::InsertCluster(AliTOFcluster *c) { //This function adds a cluster to the array of clusters sorted in Z //-------------------------------------------------------------------- if (fN==kMaxCluster) { - Error("InsertCluster","Too many clusters !\n"); + AliError("Too many clusters !"); return 1; } diff --git a/TOF/AliTOFv4T0.cxx b/TOF/AliTOFv4T0.cxx index 9f68bce3569..f6c0117e02b 100644 --- a/TOF/AliTOFv4T0.cxx +++ b/TOF/AliTOFv4T0.cxx @@ -48,6 +48,7 @@ #include #include +#include "AliLog.h" #include "AliConst.h" #include "AliRun.h" #include "AliTOFv4T0.h" @@ -78,20 +79,19 @@ AliTOFv4T0::AliTOFv4T0(const char *name, const char *title) AliModule* frame=gAlice->GetModule("FRAME"); if(!frame) { - Error("Ctor","TOF needs FRAME to be present\n"); - exit(1); + AliFatal("TOF needs FRAME to be present"); } else{ if (fTOFGeometry) delete fTOFGeometry; fTOFGeometry = new AliTOFGeometry(); if(frame->IsVersion()==1) { - cout << " Frame version " << frame->IsVersion() << endl; - cout << " Full Coverage for TOF" << endl; + AliInfo(Form("Frame version %d", frame->IsVersion())); + AliInfo("Full Coverage for TOF"); fTOFHoles=false;} else { - cout << " Frame version " << frame->IsVersion() << endl; - cout << " TOF with Holes for PHOS " << endl; + AliInfo(Form("Frame version %d", frame->IsVersion())); + AliInfo("TOF with Holes for PHOS"); fTOFHoles=true;} } fTOFGeometry->SetHoles(fTOFHoles); @@ -276,8 +276,7 @@ void AliTOFv4T0::TOFpc(Float_t xtof, Float_t ytof, Float_t zlenC, par[0] = xFLT*0.5; par[1] = yFLT*0.5; - if (fDebug) cout << ClassName() << - ": ************************* TOF geometry **************************"<Gsvolu("FLTA", "BOX ", idtmed[512], par, 3); // Insensitive Freon @@ -462,9 +461,7 @@ void AliTOFv4T0::TOFpc(Float_t xtof, Float_t ytof, Float_t zlenC, Float_t zpos = tan(ang)*radius; Float_t ypos= fTOFGeometry->GetHeights(2,istrip); gMC->Gspos("FSTR",AliTOFGeometry::NStripA()-istrip,"FLTA",0.,ypos, zpos,idrotm[0], "ONLY"); - if(fDebug>=1) { - printf("y = %f, z = %f, , z coord = %f, Rot ang = %f, St. %2i \n",ypos,zpos,tan(ang)*radius ,ang*kRaddeg,istrip); - } + AliDebug(1, Form("y = %f, z = %f, , z coord = %f, Rot ang = %f, St. %2i",ypos,zpos,tan(ang)*radius ,ang*kRaddeg,istrip)); } @@ -478,9 +475,7 @@ void AliTOFv4T0::TOFpc(Float_t xtof, Float_t ytof, Float_t zlenC, Float_t zpos = tan(ang)*radius+(zFLTA*0.5+zFLTB*0.5+db); Float_t ypos= fTOFGeometry->GetHeights(3,istrip); gMC->Gspos("FSTR",istrip+1,"FLTB",0.,ypos, zpos,idrotm[nrot], "ONLY"); - if(fDebug>=1) { - printf("y = %f, z = %f, , z coord = %f, Rot ang = %f, St. %2i \n",ypos,zpos,tan(ang)*radius,ang*kRaddeg,istrip); - } + AliDebug(1, Form("y = %f, z = %f, , z coord = %f, Rot ang = %f, St. %2i",ypos,zpos,tan(ang)*radius,ang*kRaddeg,istrip)); } @@ -494,9 +489,7 @@ void AliTOFv4T0::TOFpc(Float_t xtof, Float_t ytof, Float_t zlenC, Float_t zpos = tan(ang)*radius+(zFLTC*0.5+zFLTB+zFLTA*0.5+db*2); Float_t ypos= fTOFGeometry->GetHeights(4,istrip); gMC->Gspos("FSTR",istrip+1,"FLTC",0.,ypos, zpos,idrotm[nrot], "ONLY"); - if(fDebug>=1) { - printf("y = %f, z = %f, z coord = %f, Rot ang = %f, St. %2i \n",ypos,zpos,tan(ang)*radius,ang*kRaddeg,istrip); - } + AliDebug(1, Form("y = %f, z = %f, z coord = %f, Rot ang = %f, St. %2i",ypos,zpos,tan(ang)*radius,ang*kRaddeg,istrip)); } ////////// Layers after strips ///////////////// @@ -907,13 +900,11 @@ void AliTOFv4T0::Init() // // Initialise the detector after the geometry has been defined // - if(fDebug) { - printf("%s: **************************************" + AliDebug(1, "**************************************" " TOF " - "**************************************\n",ClassName()); - printf("\n%s: Version 4 of TOF initialing, " - "symmetric TOF - Full Coverage version\n",ClassName()); - } + "**************************************"); + AliDebug(1, " Version 4 of TOF initialing, " + "symmetric TOF - Full Coverage version"); AliTOF::Init(); @@ -924,11 +915,9 @@ void AliTOFv4T0::Init() fIdFLTB = gMC->VolId("FLTB"); fIdFLTC = gMC->VolId("FLTC"); - if(fDebug) { - printf("%s: **************************************" + AliDebug(1, "**************************************" " TOF " - "**************************************\n",ClassName()); - } + "**************************************"); } //_____________________________________________________________________________ @@ -990,7 +979,7 @@ void AliTOFv4T0::StepManager() if (TMath::Abs(ppad[1])>1) { - Warning("StepManager","Abs(ppad) > 1"); + AliWarning("Abs(ppad) > 1"); ppad[1]=TMath::Sign((Float_t)1,ppad[1]); } incidenceAngle = TMath::ACos(ppad[1])*kRaddeg; diff --git a/TOF/TOFLinkDef.h b/TOF/TOFLinkDef.h index 854af2208e1..28197d6937a 100644 --- a/TOF/TOFLinkDef.h +++ b/TOF/TOFLinkDef.h @@ -21,7 +21,6 @@ #pragma link C++ class AliTOFSDigit+; #pragma link C++ class AliTOFSDigitizer+; -#pragma link C++ class AliTOFMerger+; #pragma link C++ class AliTOFDigitMap+; #pragma link C++ class AliTOFdigit+; diff --git a/TOF/TOFbaseLinkDef.h b/TOF/TOFbaseLinkDef.h new file mode 100644 index 00000000000..1b91705c5a1 --- /dev/null +++ b/TOF/TOFbaseLinkDef.h @@ -0,0 +1,15 @@ +#ifdef __CINT__ +/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * + * See cxx source for full Copyright notice */ + +/* $Id$ */ + +#pragma link off all globals; +#pragma link off all classes; +#pragma link off all functions; + +#pragma link C++ class AliTOFGeometry+; + +#pragma link C++ class AliTOFdigit+; + +#endif diff --git a/TOF/TOFrecLinkDef.h b/TOF/TOFrecLinkDef.h new file mode 100644 index 00000000000..33db434c269 --- /dev/null +++ b/TOF/TOFrecLinkDef.h @@ -0,0 +1,19 @@ +#ifdef __CINT__ +/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * + * See cxx source for full Copyright notice */ + +/* $Id$ */ + +#pragma link off all globals; +#pragma link off all classes; +#pragma link off all functions; + +#pragma link C++ class AliTOFtrack+; +#pragma link C++ class AliTOFtracker+; +#pragma link C++ class AliTOFpidESD+; +#pragma link C++ class AliTOFReconstructor+; + +#pragma link C++ class AliTOFPID+; +#pragma link C++ class AliTOFProb+; + +#endif diff --git a/TOF/TOFsimLinkDef.h b/TOF/TOFsimLinkDef.h new file mode 100644 index 00000000000..0ffba3cd7c0 --- /dev/null +++ b/TOF/TOFsimLinkDef.h @@ -0,0 +1,26 @@ +#ifdef __CINT__ +/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * + * See cxx source for full Copyright notice */ + +/* $Id$ */ + +#pragma link off all globals; +#pragma link off all classes; +#pragma link off all functions; + +#pragma link C++ class AliTOF+; +#pragma link C++ class AliTOFv4T0+; +#pragma link C++ class AliTOFhit+; +#pragma link C++ class AliTOFhitT0+; + +#pragma link C++ class AliTOFHitMap+; +#pragma link C++ class AliTOFSDigit+; +#pragma link C++ class AliTOFSDigitizer+; +#pragma link C++ class AliTOFDigitizer+; + +#pragma link C++ class AliTOFDigitMap+; +#pragma link C++ class AliTOFDDLRawData+; + +#pragma link C++ class AliTOFT0+; + +#endif diff --git a/TOF/libTOF.pkg b/TOF/libTOF.pkg index 5819ad19430..661649567b6 100644 --- a/TOF/libTOF.pkg +++ b/TOF/libTOF.pkg @@ -3,7 +3,7 @@ SRCS = AliTOF.cxx AliTOFGeometry.cxx AliTOFv4T0.cxx \ AliTOFT0.cxx \ AliTOFHitMap.cxx \ AliTOFSDigit.cxx AliTOFSDigitizer.cxx \ - AliTOFMerger.cxx AliTOFDigitMap.cxx \ + AliTOFDigitMap.cxx \ AliTOFdigit.cxx AliTOFDigitizer.cxx \ AliTOFDDLRawData.cxx \ AliTOFtrack.cxx AliTOFtracker.cxx AliTOFReconstructor.cxx \ diff --git a/TOF/libTOFbase.pkg b/TOF/libTOFbase.pkg new file mode 100644 index 00000000000..889a8188bc5 --- /dev/null +++ b/TOF/libTOFbase.pkg @@ -0,0 +1,10 @@ +#-*- Mode: Makefile -*- +# $Id$ + +SRCS = AliTOFGeometry.cxx \ + AliTOFdigit.cxx + + +HDRS:= $(SRCS:.cxx=.h) + +DHDR=TOFbaseLinkDef.h diff --git a/TOF/libTOFsim.pkg b/TOF/libTOFsim.pkg new file mode 100644 index 00000000000..101e9a82353 --- /dev/null +++ b/TOF/libTOFsim.pkg @@ -0,0 +1,15 @@ +#-*- Mode: Makefile -*- +# $Id$ + +SRCS = AliTOF.cxx AliTOFv4T0.cxx \ + AliTOFhit.cxx AliTOFhitT0.cxx \ + AliTOFHitMap.cxx \ + AliTOFSDigit.cxx AliTOFSDigitizer.cxx \ + AliTOFdigit.cxx AliTOFDigitizer.cxx \ + AliTOFDigitMap.cxx \ + AliTOFDDLRawData.cxx \ + AliTOFT0.cxx + +HDRS:= $(SRCS:.cxx=.h) + +DHDR=TOFsimLinkDef.h -- 2.39.3