*/
//End_Html
+#include "TFile.h"
+#include "TFolder.h"
+#include "TROOT.h"
+#include "TTask.h"
+#include "TTree.h"
+#include "TVirtualMC.h"
-
-#include <Riostream.h>
-#include <Rstrstream.h>
-#include <stdlib.h>
-
-#include <TBRIK.h>
-#include <TFile.h>
-#include <TFolder.h>
-#include <TNode.h>
-#include <TObject.h>
-#include <TROOT.h>
-#include <TSystem.h>
-#include <TTask.h>
-#include <TTree.h>
-#include <TVirtualMC.h>
-#include <TDirectory.h>
-
-#include "AliLog.h"
-#include "AliConfig.h"
-#include "AliHeader.h"
#include "AliConst.h"
#include "AliLoader.h"
-#include "AliMagF.h"
+#include "AliLog.h"
+#include "AliMC.h"
#include "AliRun.h"
-#include "AliTOF.h"
-#include "AliTOFGeometry.h"
-#include "AliTOFGeometryV4.h"
-#include "AliTOFGeometryV5.h"
-#include "AliTOFSDigit.h"
+
+#include "AliTOFDDLRawData.h"
+#include "AliTOFDigitizer.h"
#include "AliTOFdigit.h"
-#include "AliTOFhit.h"
#include "AliTOFhitT0.h"
-#include "AliMC.h"
-#include "AliTOFDigitizer.h"
-#include "AliTOFDDLRawData.h"
-#include "AliTOFcluster.h"
+#include "AliTOFhit.h"
+#include "AliTOFGeometry.h"
+#include "AliTOFSDigitizer.h"
+#include "AliTOFSDigit.h"
+#include "AliTOF.h"
+
+class AliTOFcluster;
+
+extern TFile *gFile;
+extern TROOT *gROOT;
+extern TVirtualMC *gMC;
+
+extern AliRun *gAlice;
+
ClassImp(AliTOF)
if (gAlice==0) {
AliFatal("gAlice==0 !");
}
- if (gAlice->GetMCApp()->GetHitLists())
- gAlice->GetMCApp()->AddHitList(fHits);
+
+ AliMC *mcApplication = (AliMC*)gAlice->GetMCApp();
+
+ if (mcApplication->GetHitLists())
+ mcApplication->AddHitList(fHits);
else AliError("gAlice->GetHitLists()==0");
fIshunt = 0;
}
//_____________________________________________________________________________
-Int_t AliTOF::DistancetoPrimitive(Int_t , Int_t ) const
+Int_t AliTOF::DistancetoPrimitive(Int_t , Int_t )
{
//
// Returns distance from mouse pointer to detector, default version
// Use the TOF SDigitizer to make TOF SDigits
//
-// cout<<"AliTOF::Hits2SDigits> start...\n";
+// AliInfo("Start...");
AliRunLoader * rl = fLoader->GetRunLoader();
AliTOFSDigitizer sd((rl->GetFileName()).Data());
+#ifndef ALITOF_H
+#define ALITOF_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id$ */
+
////////////////////////////////////////////////
// //
-// Manager classe for TOF //
+// Manager class for TOF //
// Interface : //
// AliTOF //
// Associations between TOF related objects //
// //
////////////////////////////////////////////////
-#ifndef ALITOF_H
-#define ALITOF_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice */
+#include "AliDetector.h"
-/* $Id$ */
+#include "AliTOFTrigger.h"
-class TFile;
class TDirectory;
+class TFile;
+class TFolder ;
class TString ;
class TTask ;
-class TFolder ;
-
-#include "TObject.h"
-#include "TTree.h"
-#include "AliDetector.h"
-
-#include "AliTOFSDigitizer.h"
-#include "AliTOFGeometry.h"
-#include "AliTOFTrigger.h"
+class AliTOFGeometry;
class AliTOF : public AliDetector {
public:
virtual void Makehits(Bool_t hits=1);
virtual void FinishEvent();
virtual Int_t IsVersion() const =0;
- Int_t DistancetoPrimitive(Int_t px, Int_t py) const;
+ Int_t DistancetoPrimitive(Int_t px, Int_t py);
virtual void StepManager()=0;
virtual void TOFpc(Float_t /*xtof*/, Float_t /*ytof*/, Float_t /*zlenC*/,
Float_t /*zlenB*/, Float_t /*zlenA*/, Float_t /*ztof0*/){};
* 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. *
+***************************************************************************/
+
+/*
$Log$
+Revision 1.5 2006/04/16 22:29:05 hristov
+Coding conventions (Annalisa)
+
Revision 1.4 2006/04/05 08:35:38 hristov
Coding conventions (S.Arcelli, C.Zampolli)
author: Silvia Arcelli, arcelli@bo.infn.it
*/
-#include <TBenchmark.h>
+/////////////////////////////////////////////////////////
+// //
+// Class for alignment procedure //
+// //
+// //
+// //
+/////////////////////////////////////////////////////////
+
#include <Rtypes.h>
-#include "TClonesArray.h"
-#include "TObjString.h"
+
+#include "TRandom.h"
+#include "TString.h"
+
#include "AliLog.h"
-#include "AliRun.h"
-#include "AliModule.h"
-#include "AliTOFAlignment.h"
#include "AliAlignObj.h"
#include "AliAlignObjAngles.h"
#include "AliCDBManager.h"
#include "AliCDBMetaData.h"
-#include "AliCDBStorage.h"
#include "AliCDBId.h"
#include "AliCDBEntry.h"
+#include "AliTOFAlignment.h"
ClassImp(AliTOFAlignment)
//////////////////////////////////////////////////////////////////
#include "TTask.h"
-#include "AliAlignObj.h"
+
+class TObjArray;
class AliTOFAlignment :public TTask{
/*
$Log$
+Revision 1.5 2006/04/16 22:29:05 hristov
+Coding conventions (Annalisa)
+
Revision 1.4 2006/04/05 08:35:38 hristov
Coding conventions (S.Arcelli, C.Zampolli)
// //
///////////////////////////////////////////////////////////////////////////////
-#include "TObject.h"
-#include "TROOT.h"
#include "TBrowser.h"
-#include "TClass.h"
+#include "TROOT.h"
+
#include "AliLog.h"
-#include "AliTOFGeometryV5.h"
+
#include "AliTOFCalSector.h"
#include "AliTOFCal.h"
-#include "AliTOFChannel.h"
+#include "AliTOFGeometryV5.h"
extern TROOT *gROOT;
//_____________________________________________________________
#include "TObject.h"
-#include "TROOT.h"
-#include "TBrowser.h"
-#include "TClass.h"
-#include "AliTOFGeometry.h"
#include "AliTOFChannel.h"
+class TBrowser;
+class AliTOFGeometry;
+
class AliTOFCal: public TObject
{
/*
$Log$
+Revision 1.5 2006/04/16 22:29:05 hristov
+Coding conventions (Annalisa)
+
Revision 1.4 2006/04/05 08:35:38 hristov
Coding conventions (S.Arcelli, C.Zampolli)
// //
///////////////////////////////////////////////////////////////////////////////
-#include "TObject.h"
-#include "TROOT.h"
#include "TBrowser.h"
-#include "TClass.h"
+
#include "AliLog.h"
-#include "AliTOFGeometryV5.h"
-#include "AliTOFChannel.h"
+
#include "AliTOFCalPadZ.h"
+#include "AliTOFChannel.h"
+#include "AliTOFGeometryV5.h"
ClassImp(AliTOFCalPadZ)
//_____________________________________________________________
#include "TObject.h"
-#include "TROOT.h"
-#include "TBrowser.h"
-#include "TClass.h"
-#include "AliTOFGeometry.h"
-#include "AliTOFChannel.h"
+class TBrowser;
+class AliTOFGeometry;
+class AliTOFChannel;
class AliTOFCalPadZ: public TObject
{
/*
$Log$
+Revision 1.5 2006/04/16 22:29:05 hristov
+Coding conventions (Annalisa)
+
Revision 1.4 2006/04/05 08:35:38 hristov
Coding conventions (S.Arcelli, C.Zampolli)
// //
///////////////////////////////////////////////////////////////////////////////
-#include "TObject.h"
-#include "TROOT.h"
#include "TBrowser.h"
-#include "TClass.h"
+
#include "AliLog.h"
-#include "AliTOFGeometryV5.h"
-#include "AliTOFCalStrip.h"
+
#include "AliTOFCalPlateA.h"
+#include "AliTOFCalStrip.h"
#include "AliTOFChannel.h"
+#include "AliTOFGeometryV5.h"
ClassImp(AliTOFCalPlateA)
//_____________________________________________________________
#include "TObject.h"
-#include "TROOT.h"
-#include "TBrowser.h"
-#include "TClass.h"
-#include "AliTOFGeometry.h"
-#include "AliTOFChannel.h"
+class TBrowser;
+
+class AliTOFChannel;
+class AliTOFGeometry;
class AliTOFCalPlateA: public TObject
{
/*
$Log$
+Revision 1.5 2006/04/16 22:29:05 hristov
+Coding conventions (Annalisa)
+
Revision 1.4 2006/04/05 08:35:38 hristov
Coding conventions (S.Arcelli, C.Zampolli)
// //
///////////////////////////////////////////////////////////////////////////////
-#include "TObject.h"
-#include "TROOT.h"
#include "TBrowser.h"
-#include "TClass.h"
+
#include "AliLog.h"
-#include "AliTOFGeometryV5.h"
-#include "AliTOFCalStrip.h"
+
#include "AliTOFCalPlateB.h"
+#include "AliTOFCalStrip.h"
#include "AliTOFChannel.h"
+#include "AliTOFGeometryV5.h"
ClassImp(AliTOFCalPlateB)
//_____________________________________________________________
#include "TObject.h"
-#include "TROOT.h"
-#include "TBrowser.h"
-#include "TClass.h"
-#include "AliTOFGeometry.h"
-#include "AliTOFChannel.h"
+class TBrowser;
+
+class AliTOFChannel;
+class AliTOFGeometry;
class AliTOFCalPlateB: public TObject
{
/*
$Log$
+Revision 1.5 2006/04/16 22:29:05 hristov
+Coding conventions (Annalisa)
+
Revision 1.4 2006/04/05 08:35:38 hristov
Coding conventions (S.Arcelli, C.Zampolli)
// //
///////////////////////////////////////////////////////////////////////////////
-#include "TObject.h"
-#include "TROOT.h"
#include "TBrowser.h"
-#include "TClass.h"
+
#include "AliLog.h"
-#include "AliTOFGeometryV5.h"
-#include "AliTOFCalStrip.h"
+
#include "AliTOFCalPlateC.h"
+#include "AliTOFCalStrip.h"
#include "AliTOFChannel.h"
+#include "AliTOFGeometryV5.h"
ClassImp(AliTOFCalPlateC)
//_____________________________________________________________
#include "TObject.h"
-#include "TROOT.h"
-#include "TBrowser.h"
-#include "TClass.h"
-#include "AliTOFGeometry.h"
-#include "AliTOFChannel.h"
+class TBrowser;
+
+class AliTOFChannel;
+class AliTOFGeometry;
class AliTOFCalPlateC: public TObject
{
/*
$Log$
+Revision 1.5 2006/04/16 22:29:05 hristov
+Coding conventions (Annalisa)
+
Revision 1.4 2006/04/05 08:35:38 hristov
Coding conventions (S.Arcelli, C.Zampolli)
// //
///////////////////////////////////////////////////////////////////////////////
-#include "TObject.h"
-#include "TROOT.h"
#include "TBrowser.h"
-#include "TClass.h"
+#include "TROOT.h"
+
#include "AliLog.h"
-#include "AliTOFGeometryV5.h"
+
#include "AliTOFCalPlateA.h"
#include "AliTOFCalPlateB.h"
#include "AliTOFCalPlateC.h"
#include "AliTOFCalSector.h"
#include "AliTOFChannel.h"
+#include "AliTOFGeometryV5.h"
extern TROOT *gROOT;
//_____________________________________________________________
#include "TObject.h"
-#include "TROOT.h"
-#include "TBrowser.h"
-#include "TClass.h"
-#include "AliTOFGeometry.h"
-#include "AliTOFChannel.h"
-#include "AliTOFCalPlateA.h"
-#include "AliTOFCalPlateB.h"
-#include "AliTOFCalPlateC.h"
+class TBrowser;
+class AliTOFGeometry;
+class AliTOFChannel;
class AliTOFCalSector: public TObject
{
/*
$Log$
+Revision 1.5 2006/04/16 22:29:05 hristov
+Coding conventions (Annalisa)
+
Revision 1.4 2006/04/05 08:35:38 hristov
Coding conventions (S.Arcelli, C.Zampolli)
// //
///////////////////////////////////////////////////////////////////////////////
-#include "TObject.h"
-#include "TROOT.h"
#include "TBrowser.h"
-#include "TClass.h"
+
#include "AliLog.h"
-#include "AliTOFGeometryV5.h"
-#include "AliTOFChannel.h"
-#include "AliTOFCalStrip.h"
+
#include "AliTOFCalPadZ.h"
+#include "AliTOFCalStrip.h"
+#include "AliTOFChannel.h"
+#include "AliTOFGeometryV5.h"
ClassImp(AliTOFCalStrip)
//_____________________________________________________________
#include "TObject.h"
-#include "TROOT.h"
-#include "TBrowser.h"
-#include "TClass.h"
-#include "AliTOFGeometry.h"
-#include "AliTOFChannel.h"
+
+class TBrowser;
+class AliTOFGeometry;
+class AliTOFChannel;
class AliTOFCalStrip: public TObject
{
// class for TOF calibration //
////////////////////////////////////////////////
-#include "TNamed.h"
+#include "TObject.h"
class AliTOFChSim: public TObject {
// class for TOF calibration //
////////////////////////////////////////////////
-#include "TNamed.h"
+#include "TObject.h"
class AliTOFChannel: public TObject {
// //
////////////////////////////////////////////////////////////////
-#include <TTree.h>
-#include <TObjArray.h>
-#include <TClonesArray.h>
-#include <TFile.h>
+#include "TClonesArray.h"
+#include "TFile.h"
+#include "TTree.h"
+#include "AliLoader.h"
#include "AliLog.h"
+#include "AliRawReader.h"
#include "AliRunLoader.h"
-#include "AliLoader.h"
-#include "AliTOFdigit.h"
-#include "AliTOFcluster.h"
-#include "AliTOFGeometry.h"
-#include "AliTOFGeometryV4.h"
-#include "AliTOFGeometryV5.h"
-#include "AliTOFRawStream.h"
#include "AliTOFcalib.h"
#include "AliTOFCal.h"
#include "AliTOFChannel.h"
-
#include "AliTOFClusterFinder.h"
+#include "AliTOFcluster.h"
+#include "AliTOFdigit.h"
+#include "AliTOFGeometryV5.h"
+#include "AliTOFGeometry.h"
+#include "AliTOFRawStream.h"
+
+extern TFile *gFile;
ClassImp(AliTOFClusterFinder)
// Task: Transform digits/raw data to TOF Clusters, to fill TOF RecPoints
// and feed TOF tracking
-#include "AliRawReader.h"
+#include "TObject.h"
class TClonesArray;
class TFile;
class AliLoader;
class AliRunLoader;
+class AliRawReader;
class AliTOFGeometry;
+class AliTOFcluster;
class AliTOFClusterFinder : public TObject
{
//
//////////////////////////////////////////////////////////////////
-#include <stdlib.h>
-#include <Riostream.h>
-#include <TClonesArray.h>
-#include <TTree.h>
-#include <TMath.h>
-#include "AliLog.h"
+#include "Riostream.h"
+
+#include "TBranch.h"
+#include "TClonesArray.h"
+#include "TMath.h"
-#include "AliRawDataHeader.h"
#include "AliBitPacking.h"
+#include "AliLog.h"
+#include "AliRawDataHeader.h"
-#include "AliTOFGeometry.h"
-#include "AliTOFGeometryV4.h"
-#include "AliTOFGeometryV5.h"
+#include "AliTOFDDLRawData.h"
#include "AliTOFdigit.h"
+#include "AliTOFGeometry.h"
#include "AliTOFRawStream.h"
-#include "AliTOFDDLRawData.h"
ClassImp(AliTOFDDLRawData)
+#ifndef AliTOFDDLRAWDATA_H
+#define AliTOFDDLRAWDATA_H
+
/* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
////////////////////////////////////////////////////////////////////////////
+// //
// Class used for generating the files containing raw data, //
-// required for Data Challenge //
+// required for Data Challenge //
+// //
////////////////////////////////////////////////////////////////////////////
-#ifndef AliTOFDDLRAWDATA_H
-#define AliTOFDDLRAWDATA_H
+#include "TObject.h"
-class AliTOF;
class AliTOFGeometry;
-class TTree;
class AliTOFDDLRawData:public TObject{
public:
//
////////////////////////////////////////////////////////////////////////
-#include <Riostream.h>
-#include <TMath.h>
+#include "TClonesArray.h"
#include "AliTOFDigitMap.h"
-#include "AliTOFdigit.h"
#include "AliTOFGeometry.h"
-
-#include <TClonesArray.h>
-
ClassImp(AliTOFDigitMap)
AliTOFDigitMap::AliTOFDigitMap()
* See cxx source for full Copyright notice */
-////////////////////////////////////////////////////////////////////////
-//
-// AliTOFDigitMap class
-//
-// digitmap enables fast check if the pad was already hit
-//
-// Author: F. Pierella | pierella@bo.infn.it
-//
-////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////
+// //
+// AliTOFDigitMap class //
+// //
+// digitmap enables fast check if the pad was already hit //
+// //
+// Author: F. Pierella | pierella@bo.infn.it //
+// //
+//////////////////////////////////////////////////////////////
-#include "AliHitMap.h"
#include "TObject.h"
-#include "AliTOFGeometry.h"
+
+#include "AliHitMap.h"
class TClonesArray;
class AliTOFGeometry;
* provided "as is" without express or implied warranty. *
**************************************************************************/
-//_________________________________________________________________________
-// This is a TTask that makes TOF-Digits out of TOF-SDigits.
-// The simulation of the detector is performed at sdigits level:
-// during digitization the unique task is the sum of all sdigits in the
-// same pad.
-// Digits are written to TreeD in branch "TOF".
-//
-// -- Author : F. Pierella (Bologna University) pierella@bo.infn.it
-//////////////////////////////////////////////////////////////////////////////
-
-
-#include <stdlib.h>
-#include <Riostream.h>
-#include <TTree.h>
-#include <TVector.h>
-#include <TObjArray.h>
-#include <TFile.h>
-#include <TDirectory.h>
-#include <TRandom.h>
-#include "TF1.h"
+//_________________________________________________________________________//
+// //
+// This is a TTask that makes TOF-Digits out of TOF-SDigits. //
+// The simulation of the detector is performed at sdigits level: //
+// during digitization the unique task is the sum of all sdigits in the //
+// same pad. //
+// Digits are written to TreeD in branch "TOF". //
+// //
+// -- Author : F. Pierella (Bologna University) pierella@bo.infn.it //
+// //
+//_________________________________________________________________________//
+
+#include "Riostream.h"
+
+#include "TFile.h"
#include "TH1F.h"
-#include "TList.h"
-#include "TRandom.h"
+#include "TTree.h"
-#include "AliLog.h"
-#include "AliRun.h"
-#include "AliRunLoader.h"
#include "AliLoader.h"
-#include "AliDigitizer.h"
+#include "AliLog.h"
#include "AliRunDigitizer.h"
-#include "AliPDG.h"
+#include "AliRunLoader.h"
+#include "AliRun.h"
-#include "AliTOF.h"
+#include "AliTOFCal.h"
+#include "AliTOFcalib.h"
+#include "AliTOFChannel.h"
#include "AliTOFDigitizer.h"
-#include "AliTOFSDigitizer.h"
-#include "AliTOFhit.h"
#include "AliTOFdigit.h"
-#include "AliTOFSDigit.h"
#include "AliTOFHitMap.h"
-#include "AliTOFChannel.h"
-#include "AliTOFCal.h"
#include "AliTOFGeometryV5.h"
+#include "AliTOFSDigit.h"
+#include "AliTOF.h"
+
+extern TDirectory *gDirectory;
+extern TFile *gFile;
+extern TRandom *gRandom;
+
+extern AliRun *gAlice;
+
ClassImp(AliTOFDigitizer)
#ifndef ALITOFDIGITIZER_H
#define ALITOFDIGITIZER_H
+
/* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-//_________________________________________________________________________
-// Task Class for making Digits in TOF
-// Class performs digitization of Summable digits (in the TOF case this is just
-// sum of contributions of all signals into a given pad).
-// In addition it performs mixing of summable digits from different events.
-//
-//*-- Author: Fabrizio Pierella (Bologna University)
+//_______________________________________________________________________________//
+// //
+// Task Class for making Digits in TOF //
+// Class performs digitization of Summable digits (in the TOF case this is just //
+// sum of contributions of all signals into a given pad). //
+// In addition it performs mixing of summable digits from different events. //
+// //
+// -- Author: Fabrizio Pierella (Bologna University)
+// //
+//_______________________________________________________________________________//
+
+/* $Id$ */
-#include "TH1F.h"
-#include "TList.h"
#include "AliDigitizer.h"
-#include "AliTOFcalib.h"
-#include "AliTOFCal.h"
-#include "AliTOFGeometry.h"
class AliRunDigitizer;
class AliTOFHitMap;
class AliTOFSDigit;
+class AliTOFcalib;
+class AliTOFGeometry;
class AliTOFDigitizer : public AliDigitizer {
public:
/*
$Log$
+Revision 1.15 2006/04/16 22:29:05 hristov
+Coding conventions (Annalisa)
+
Revision 1.14 2006/04/05 08:35:38 hristov
Coding conventions (S.Arcelli, C.Zampolli)
Revision 0.01 2003/12/04 S.Arcelli
*/
-#include <stdlib.h>
-#include <Riostream.h>
///////////////////////////////////////////////////////////////////////////////
// //
// TOF Geometry class //
// //
///////////////////////////////////////////////////////////////////////////////
-#include "AliLog.h"
-#include "AliConst.h"
#include "AliTOFGeometry.h"
ClassImp(AliTOFGeometry)
#ifndef ALITOFGEOMETRY_H
#define ALITOFGEOMETRY_H
+
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
// //
///////////////////////////////////////////////////////////////////////////////
-
+#include "TGeoMatrix.h"
#include "TObject.h"
-#include "TGeoManager.h"
class AliTOFGeometry: public TObject{
/*
$Log$
+Revision 1.4 2006/04/16 22:29:05 hristov
+Coding conventions (Annalisa)
+
Revision 1.3 2006/03/12 14:38:13 arcelli
Changes for TOF Reconstruction using TGeo
according to the PPR TOF geometry
*/
-#include <stdlib.h>
-#include <Riostream.h>
///////////////////////////////////////////////////////////////////////////////
// //
// TOF Geometry class (PPR version) //
// //
///////////////////////////////////////////////////////////////////////////////
-#include "AliLog.h"
+#include "TGeoManager.h"
+
#include "AliConst.h"
+#include "AliLog.h"
-#include "AliTOFGeometry.h"
#include "AliTOFGeometryV4.h"
+extern TGeoManager *gGeoManager;
+
ClassImp(AliTOFGeometryV4)
#ifndef ALITOFGEOMETRYV4_H
#define ALITOFGEOMETRYV4_H
+
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-
///////////////////////////////////////////////////////////////////////////////
// //
// TOF geometry class (PPR version) //
// //
///////////////////////////////////////////////////////////////////////////////
-
#include "AliTOFGeometry.h"
class AliTOFGeometryV4: public AliTOFGeometry {
/*
$Log$
+Revision 1.4 2006/04/16 22:29:05 hristov
+Coding conventions (Annalisa)
+
Revision 1.3 2006/03/12 14:38:05 arcelli
Changes for TOF Reconstruction using TGeo
according to the new TOF geometry
*/
-#include <stdlib.h>
-#include <Riostream.h>
///////////////////////////////////////////////////////////////////////////////
// //
// TOF Geometry class (new version) //
// //
///////////////////////////////////////////////////////////////////////////////
-#include "AliLog.h"
+#include "TGeoManager.h"
+
#include "AliConst.h"
-#include "AliTOFGeometry.h"
+#include "AliLog.h"
+
#include "AliTOFGeometryV5.h"
+extern TGeoManager *gGeoManager;
+
ClassImp(AliTOFGeometryV5)
#ifndef ALITOFGEOMETRYV5_H
#define ALITOFGEOMETRYV5_H
+
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-
///////////////////////////////////////////////////////////////////////////////
// //
// TOF geometry class (new version) //
// //
///////////////////////////////////////////////////////////////////////////////
-
#include "AliTOFGeometry.h"
class AliTOFGeometryV5: public AliTOFGeometry {
//
////////////////////////////////////////////////////////////////////////
-#include <Riostream.h>
-#include <TMath.h>
-
#include "AliLog.h"
#include "AliTOFHitMap.h"
-#include "AliTOFSDigit.h"
#include "AliTOFGeometry.h"
/* $Id$ */
-////////////////////////////////////////////////////////////////////////
-//
-// AliTOFHitMap class
-//
-// hitmap enables fast check if the pad was already hit
-//
-// Author: Jiri Chudoba (CERN)
-//
-////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////
+// //
+// AliTOFHitMap class //
+// //
+// hitmap enables fast check if the pad was already hit //
+// //
+// Author: Jiri Chudoba (CERN) //
+// //
+//////////////////////////////////////////////////////////////
-#include "AliHitMap.h"
#include "TObject.h"
+#include "AliHitMap.h"
+
class TClonesArray;
class AliTOFGeometry;
GetPadX()
*/
-///////////////////////////////////////////////////////////////////////////////
-//
-// This class provides access to TOF raw data in DDL files.
-//
-// It loops over all TOF raw data given by the AliRawReader.
-//
-///////////////////////////////////////////////////////////////////////////////
-
-#include "AliLog.h"
+////////////////////////////////////////////////////////////////////////
+// //
+// This class provides access to TOF raw data in DDL files. //
+// //
+// It loops over all TOF raw data given by the AliRawReader. //
+// //
+////////////////////////////////////////////////////////////////////////
+
#include "AliRawReader.h"
#include "AliTOFGeometry.h"
/* $Id$ */
-////////////////////////////////////////////////////////////
-//
-// This class provides the key-reading for TOF raw data.
-//
-////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////
+// //
+// This class provides the key-reading for TOF raw data. //
+// //
+///////////////////////////////////////////////////////////////
-#include <TObject.h>
+#include "TObject.h"
class AliRawReader;
// //
///////////////////////////////////////////////////////////////////////////////
-
-#include <TFile.h>
+#include "TFile.h"
#include "AliLog.h"
-#include "AliRun.h"
+#include "AliRawReader.h"
#include "AliRunLoader.h"
+#include "AliTOFClusterFinder.h"
#include "AliTOFGeometry.h"
-#include "AliTOFGeometryV4.h"
-#include "AliTOFGeometryV5.h"
-#include "AliTOFtracker.h"
#include "AliTOFtrackerMI.h"
-#include "AliTOFClusterFinder.h"
+#include "AliTOFtracker.h"
#include "AliTOFReconstructor.h"
+class TTree;
+
+class AliESD;
+
+extern TDirectory *gDirectory;
+extern TFile *gFile;
+
ClassImp(AliTOFReconstructor)
//_____________________________________________________________________________
#ifndef ALITOFRECONSTRUCTOR_H
#define ALITOFRECONSTRUCTOR_H
+
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
/* $Id$ */
+///////////////////////////////////////////////////////////////////////////////
+// //
+// class for TOF reconstruction //
+// //
+///////////////////////////////////////////////////////////////////////////////
+
#include "AliReconstructor.h"
+class TTree;
+
+class AliESD;
+class AliRawReader;
+class AliRunLoader;
+
class AliTOFGeometry;
class AliTOFReconstructor: public AliReconstructor {
/* $Id$ */
-//_________________________________________________________________________
-// TOF sdigit: member variables
-// fSector : TOF sector
-// fPlate : TOF plate
-// fStrip : strips number
-// fPadx : pad number along x
-// fPadz : pad number along z
-// fTdc : TArrayF of TDC values
-// fAdc : TArrayF of ADC values
-//
-// Getters, setters and member functions defined here
-//
-//*-- Authors: F. Pierella, A. Seganti, D. Vicinanza
+//_________________________________________________________________________//
+// //
+// TOF sdigit: member variables //
+// fSector : TOF sector //
+// fPlate : TOF plate //
+// fStrip : strips number //
+// fPadx : pad number along x //
+// fPadz : pad number along z //
+// fTdc : TArrayF of TDC values //
+// fAdc : TArrayF of ADC values //
+// //
+// Getters, setters and member functions defined here //
+// //
+// -- Authors: F. Pierella, A. Seganti, D. Vicinanza //
+//_________________________________________________________________________//
-#include <Riostream.h>
#include "TArrayF.h"
#include "TArrayI.h"
#include "AliLog.h"
-#include "AliRun.h"
-#include "AliTOF.h"
+
#include "AliTOFGeometry.h"
#include "AliTOFSDigit.h"
#ifndef ALITOFSDIGIT_H
#define ALITOFSDIGIT_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
////////////////////////////////////////////////
// //
// Class for TOF SDigits //
// //
////////////////////////////////////////////////
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice */
-
/* $Id$ */
+#include "TObject.h"
#include "TArrayF.h"
#include "TArrayI.h"
-#include "AliDigit.h"
-//class TArrayF;
class AliTOFGeometry;
class AliTOFSDigit : public TObject {
/* $Id$ */
-//_________________________________________________________________________
-// This is a TTask that constructs SDigits out of Hits
-// A Summable Digits is the "sum" of all hits in a pad
-// Detector response has been simulated via the method
-// SimulateDetectorResponse
-//
-//-- Authors: F. Pierella, A. De Caro
-// Use case: see AliTOFhits2sdigits.C macro in the CVS
-//////////////////////////////////////////////////////////////////////////////
-
-#include <Riostream.h>
-#include <stdlib.h>
-
-#include <TBenchmark.h>
-#include <TF1.h>
-#include <TFile.h>
-#include <TFolder.h>
-#include <TH1.h>
-#include <TParticle.h>
-#include <TROOT.h>
-#include <TSystem.h>
-#include <TTask.h>
-#include <TTree.h>
+//__________________________________________________________//
+// //
+// This is a TTask that constructs SDigits out of Hits //
+// A Summable Digits is the "sum" of all hits in a pad //
+// Detector response has been simulated via the method //
+// SimulateDetectorResponse //
+// //
+// -- Authors: F. Pierella, A. De Caro //
+// Use case: see AliTOFhits2sdigits.C macro in the CVS //
+//__________________________________________________________//
+
+#include "TBenchmark.h"
+#include "TF1.h"
+#include "TFile.h"
+#include "TParticle.h"
+#include "TTree.h"
-#include "AliLog.h"
-#include "AliDetector.h"
#include "AliLoader.h"
+#include "AliLog.h"
#include "AliMC.h"
-#include "AliRun.h"
#include "AliRunLoader.h"
+#include "AliRun.h"
-#include "AliTOF.h"
#include "AliTOFGeometry.h"
#include "AliTOFHitMap.h"
-#include "AliTOFSDigit.h"
-#include "AliTOFSDigitizer.h"
-#include "AliTOFhit.h"
#include "AliTOFhitT0.h"
+#include "AliTOFhit.h"
+#include "AliTOFSDigitizer.h"
+#include "AliTOFSDigit.h"
+#include "AliTOF.h"
+
+extern TBenchmark *gBenchmark;
+extern TDirectory *gDirectory;
+extern TFile *gFile;
+extern TRandom *gRandom;
+extern TROOT *gROOT;
+
+extern AliRun *gAlice;
+
ClassImp(AliTOFSDigitizer)
fTOFLoader->LoadSDigits("recreate");
for (Int_t iEvent=fEvent1; iEvent<fEvent2; iEvent++) {
-// cout << "------------------- "<< GetName() << " ------------- \n";
-// cout << "Sdigitizing event " << iEvent << endl;
+ //AliInfo(Form("------------------- %s -------------", GetName()));
+ //AliInfo(Form("Sdigitizing event %i", iEvent));
fRunLoader->GetEvent(iEvent);
{
gAlice->ResetHits();
tofHitsBranch->GetEvent(track);
- particle = gAlice->GetMCApp()->Particle(track);
+
+ AliMC *mcApplication = (AliMC*)gAlice->GetMCApp();
+
+ particle = mcApplication->Particle(track);
Int_t nhits = tofHitArray->GetEntriesFast();
// cleaning all hits of the same track in the same pad volume
// it is a rare event, however it happens
//__________________________________________________________________
void AliTOFSDigitizer::Print(Option_t* /*opt*/)const
{
- cout << "------------------- "<< GetName() << " ------------- \n";
+ AliInfo(Form(" ------------------- %s ------------- ", GetName()));
}
//__________________________________________________________________
//
// Print parameters used for sdigitization
//
- cout << " ------------------- "<< GetName() << " -------------" << endl ;
- cout << " Parameters used for TOF SDigitization " << endl ;
+ AliInfo(Form(" ------------------- %s -------------", GetName()));
+ AliInfo(" Parameters used for TOF SDigitization ");
// Printing the parameters
- cout << " Number of events: " << (fEvent2-fEvent1) << endl;
- cout << " from event " << fEvent1 << " to event " << (fEvent2-1) << endl;
- cout << " Time Resolution (ns) "<< fTimeResolution <<" Pad Efficiency: "<< fpadefficiency << endl;
- cout << " Edge Effect option: "<< fEdgeEffect<< endl;
-
- cout << " Boundary Effect Simulation Parameters " << endl;
- cout << " Hparameter: "<< fHparameter<<" H2parameter:"<< fH2parameter <<" Kparameter:"<< fKparameter<<" K2parameter: "<< fK2parameter << endl;
- cout << " Efficiency in the central region of the pad: "<< fEffCenter << endl;
- cout << " Efficiency at the boundary region of the pad: "<< fEffBoundary << endl;
- cout << " Efficiency value at H2parameter "<< fEff2Boundary << endl;
- cout << " Efficiency value at K2parameter "<< fEff3Boundary << endl;
- cout << " Resolution (ps) in the central region of the pad: "<< fResCenter << endl;
- cout << " Resolution (ps) at the boundary of the pad : "<< fResBoundary << endl;
- cout << " Slope (ps/K) for neighbouring pad : "<< fResSlope <<endl;
- cout << " Time walk (ps) in the central region of the pad : "<< fTimeWalkCenter << endl;
- cout << " Time walk (ps) at the boundary of the pad : "<< fTimeWalkBoundary<< endl;
- cout << " Slope (ps/K) for neighbouring pad : "<< fTimeWalkSlope<<endl;
- cout << " Pulse Heigth Simulation Parameters " << endl;
- cout << " Flag for delay due to the PulseHeightEffect : "<< fTimeDelayFlag <<endl;
- cout << " Pulse Height Slope : "<< fPulseHeightSlope<<endl;
- cout << " Time Delay Slope : "<< fTimeDelaySlope<<endl;
- cout << " Minimum charge amount which could be induced : "<< fMinimumCharge<<endl;
- cout << " Smearing in charge in (q1/q2) vs x plot : "<< fChargeSmearing<<endl;
- cout << " Smearing in log of charge ratio : "<< fLogChargeSmearing<<endl;
- cout << " Smearing in time in time vs log(q1/q2) plot : "<< fTimeSmearing<<endl;
- cout << " Flag for average time : "<< fAverageTimeFlag<<endl;
- cout << " Edge tails option : "<< fEdgeTails << endl;
+ AliInfo(Form(" Number of events: %i ", (fEvent2-fEvent1)));
+ AliInfo(Form(" from event %i to event %i", fEvent1, (fEvent2-1)));
+ AliInfo(Form(" Time Resolution (ns) %d Pad Efficiency: %d ", fTimeResolution, fpadefficiency));
+ AliInfo(Form(" Edge Effect option: %d", fEdgeEffect));
+
+ AliInfo(" Boundary Effect Simulation Parameters ");
+ AliInfo(Form(" Hparameter: %d H2parameter: %d Kparameter: %d K2parameter: %d", fHparameter, fH2parameter, fKparameter, fK2parameter));
+ AliInfo(Form(" Efficiency in the central region of the pad: %d", fEffCenter));
+ AliInfo(Form(" Efficiency at the boundary region of the pad: %d", fEffBoundary));
+ AliInfo(Form(" Efficiency value at H2parameter %d", fEff2Boundary));
+ AliInfo(Form(" Efficiency value at K2parameter %d", fEff3Boundary));
+ AliInfo(Form(" Resolution (ps) in the central region of the pad: %d", fResCenter));
+ AliInfo(Form(" Resolution (ps) at the boundary of the pad : %d", fResBoundary));
+ AliInfo(Form(" Slope (ps/K) for neighbouring pad : %d", fResSlope));
+ AliInfo(Form(" Time walk (ps) in the central region of the pad : %d", fTimeWalkCenter));
+ AliInfo(Form(" Time walk (ps) at the boundary of the pad : %d", fTimeWalkBoundary));
+ AliInfo(Form(" Slope (ps/K) for neighbouring pad : %d", fTimeWalkSlope));
+ AliInfo(" Pulse Heigth Simulation Parameters ");
+ AliInfo(Form(" Flag for delay due to the PulseHeightEffect : %d", fTimeDelayFlag));
+ AliInfo(Form(" Pulse Height Slope : %d", fPulseHeightSlope));
+ AliInfo(Form(" Time Delay Slope : %d", fTimeDelaySlope));
+ AliInfo(Form(" Minimum charge amount which could be induced : %d", fMinimumCharge));
+ AliInfo(Form(" Smearing in charge in (q1/q2) vs x plot : %d", fChargeSmearing));
+ AliInfo(Form(" Smearing in log of charge ratio : %d", fLogChargeSmearing));
+ AliInfo(Form(" Smearing in time in time vs log(q1/q2) plot : %d", fTimeSmearing));
+ AliInfo(Form(" Flag for average time : %d", fAverageTimeFlag));
+ AliInfo(Form(" Edge tails option : %d", fEdgeTails));
}
#ifndef ALITOFSDigitizer_H
#define ALITOFSDigitizer_H
+
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
+//__________________________________________//
+// //
+// Task Class for making SDigits in TOF //
+// //
+//-- Authors: F. Pierella, A. De Caro //
+// //
+//__________________________________________//
-//_________________________________________________________________________
-// Task Class for making SDigits in TOF
-//
-//-- Authors: F. Pierella, A. De Caro
-
+/* $Id$ */
#include "TTask.h"
-#include "TString.h"
-class AliRunLoader;
+
+class TF1;
+class TString;
+
class AliLoader;
+class AliRunLoader;
class AliTOFGeometry;
-class TF1;
class AliTOFSDigitizer: public TTask {
/* $Id$ */
//_________________________________________________________________________
+//
// This is a TTask that made the calculation of the Time zero using TOF.
// Description: The algorithm used to calculate the time zero of
// interaction using TOF detector is the following.
// The strong assumption is the MC selection of primary particles. It
// will be introduced in the future also some more realistic
// simulation about this point.
-
+//
// Use case:
// root [0] AliTOFT0 * tzero = new AliTOFT0("galice.root")
// Warning in <TDatabasePDG::TDatabasePDG>: object already instantiated
// misidentified tracks and a comparison about the
// true configuration (known from MC) and the best
// assignment
+//
//-- Author: F. Pierella
-//////////////////////////////////////////////////////////////////////////////
-
-#include <Riostream.h>
-#include <stdlib.h>
-
-#include <TBenchmark.h>
-#include <TCanvas.h>
-#include <TClonesArray.h>
-#include <TFile.h>
-#include <TFolder.h>
-#include <TFrame.h>
-#include <TH1.h>
-#include <TParticle.h>
-#include <TROOT.h>
-#include <TSystem.h>
-#include <TTask.h>
-#include <TTree.h>
-#include <TVirtualMC.h>
-
-#include "AliDetector.h"
+//
+//_________________________________________________________________________
+
+#include "TCanvas.h"
+#include "TClonesArray.h"
+#include "TFile.h"
+#include "TFolder.h"
+#include "TFrame.h"
+#include "TH1.h"
+#include "TParticle.h"
+#include "TRandom.h"
+#include "TBenchmark.h"
+#include "TSystem.h"
+#include "TTask.h"
+#include "TTree.h"
+
#include "AliMC.h"
#include "AliRun.h"
-#include "AliTOF.h"
-#include "AliTOFT0.h"
#include "AliTOFhitT0.h"
-#include "AliTOFv4T0.h"
-#include "AliTOFv5T0.h"
+#include "AliTOFT0.h"
+#include "AliTOF.h"
+
+extern TBenchmark *gBenchmark;
+extern TSystem *gSystem;
+extern TRandom *gRandom;
+extern TROOT *gROOT;
+
+extern AliRun *gAlice;
+
ClassImp(AliTOFT0)
}
if(strstr(option,"all")){
- cout << "Selecting primary tracks with momentum between " << fLowerMomBound << " GeV/c and " << fUpperMomBound << " GeV/c" << endl;
- cout << "Memorandum: 0 means PION | 1 means KAON | 2 means PROTON" << endl;
+ AliInfo(Form("Selecting primary tracks with momentum between %d GeV/c and %d GeV/c", fLowerMomBound, fUpperMomBound));
+ AliInfo("Memorandum: 0 means PION | 1 means KAON | 2 means PROTON")
}
if (fNevents == 0) fNevents = (Int_t) gAlice->TreeE()->GetEntries();
gAlice->ResetHits();
hitTree->GetEvent(track);
- particle = gAlice->GetMCApp()->Particle(track);
+
+ AliMC *mcApplication = (AliMC*)gAlice->GetMCApp();
+
+ particle = mcApplication->Particle(track);
Int_t nhits = tofHits->GetEntriesFast();
for (Int_t hit = 0; hit < nhits; hit++)
timeofflight[index]=time;
tracktoflen[index]=toflen;
momentum[index]=mom;
- // cout << timeofflight[index] << " " << tracktoflen[index] << " " << momentum[index] << endl;
+ //AliInfo(Form(" %d %d %d ", timeofflight[index], tracktoflen[index], momentum[index]));
switch (abspdg) {
case 211:
truparticle[index]=0;
lasttrack=track;
istop=0;
selected=0;
- //cout << "starting t0 calculation for current set" << endl;
+ //AliInfo("starting t0 calculation for current set");
for (Int_t i1=0; i1<3;i1++) {
beta[0]=momentum[0]/sqrt(massarray[i1]*massarray[i1]+momentum[0]*momentum[0]);
for (Int_t i2=0; i2<3;i2++) {
hchibestconflevel->Fill(confLevel);
itimes++;
if(strstr(option,"all")){
- cout << "True Assignment " << truparticle[0] << truparticle[1] << truparticle[2] << truparticle[3] << truparticle[4] << truparticle[5] << truparticle[6] << truparticle[7] << truparticle[8] << truparticle[9] <<endl;
- cout << "Best Assignment " << assparticle[0] << assparticle[1] << assparticle[2] << assparticle[3] << assparticle[4] << assparticle[5] << assparticle[6] << assparticle[7] << assparticle[8] << assparticle[9] << endl;
- cout << "Minimum ChiSquare for current set " << chisquare << endl;
- cout << "Confidence Level (Minimum ChiSquare) " << confLevel << endl;
+ AliInfo(Form("True Assignment %d %d %d %d %d %d %d %d %d %d", truparticle[0], truparticle[1], truparticle[2], truparticle[3], truparticle[4], truparticle[5], truparticle[6], truparticle[7], truparticle[8], truparticle[9]));
+ AliInfo(Form("Best Assignment %d %d %d %d %d %d %d %d %d %d", assparticle[0], assparticle[1], assparticle[2], assparticle[3], assparticle[4], assparticle[5], assparticle[6], assparticle[7], assparticle[8], assparticle[9]));
+ AliInfo(Form("Minimum ChiSquare for current set %d ", chisquare));
+ AliInfo(Form("Confidence Level (Minimum ChiSquare) %d", confLevel));
}
if (strstr(option,"visual") && itimes && (itimes%kUPDATE) == 0) {
if (itimes == kUPDATE){
if(strstr(option,"all")){
nmisidentified=(nmisidentified0+nmisidentified1+nmisidentified2+nmisidentified3+nmisidentified4+nmisidentified5+nmisidentified6+nmisidentified7+nmisidentified8+nmisidentified9);
- cout << "total number of tracks token into account " << 10*5*fNevents << endl;
+ AliInfo(Form("total number of tracks token into account %i", 10*5*fNevents));
Float_t badPercentage=100.*(Float_t)nmisidentified/(10*5*fNevents);
- cout << "total misidentified " << nmisidentified << "("<< badPercentage << "%)" <<endl;
- cout << "Total Number of set token into account " << 5*fNevents << endl;
+ AliInfo(Form("total misidentified %i (%d %) ", nmisidentified, badPercentage));
+ AliInfo(Form("Total Number of set token into account %i", 5*fNevents));
Float_t goodSetPercentage=100.*(Float_t)ngood/(5*fNevents);
- cout << "Number of set with no misidentified tracks " << ngood << "("<< goodSetPercentage << "%)" <<endl;
+ AliInfo(Form("Number of set with no misidentified tracks %i (%d %)", ngood, goodSetPercentage));
}
// free used memory for canvas
if(strstr(option,"tim") || strstr(option,"all")){
gBenchmark->Stop("TOFT0");
- cout << "AliTOFT0:" << endl ;
+ AliInfo("AliTOFT0:");
+ /*
cout << " took " << gBenchmark->GetCpuTime("TOFT0") << " seconds in order to calculate T0 "
- << gBenchmark->GetCpuTime("TOFT0")/fNevents << " seconds per event " << endl ;
- cout << endl ;
+ << gBenchmark->GetCpuTime("TOFT0")/fNevents << " seconds per event " << endl ;
+ */
+ gBenchmark->Print("TOFT0");
}
}
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-
-//_________________________________________________________________________
-// Task Class for calculating the time zero of interaction using TOF
-// The input file need the track length till TOF detector
-// It can be done modifyng the AliTOFvj StepManager and the AliTOFHit class
-// as follow
-//-- Author: F. Pierella
-
+//_____________________________________________________________________________//
+// //
+// Task Class for calculating the time zero of interaction using TOF //
+// The input file need the track length till TOF detector //
+// It can be done modifyng the AliTOFvj StepManager and the AliTOFHit class //
+// as follow //
+// //
+//-- Author: F. Pierella //
+// //
+//_____________________________________________________________________________//
#include "TTask.h"
-#include "TString.h"
-#include "TObjString.h"
-#include "AliTOF.h"
-#include "AliDetector.h"
-class TClonesArray;
+class TString;
class AliTOFT0: public TTask {
//
/////////////////////////////////////////////////////////////////////
-#include "AliTOFTrigger.h"
-#include "AliLog.h"
-#include "AliRun.h"
#include "AliLoader.h"
+#include "AliLog.h"
#include "AliRunLoader.h"
+#include "AliRun.h"
#include "AliTriggerInput.h"
+
#include "AliTOFdigit.h"
+#include "AliTOFTrigger.h"
+extern AliRun* gAlice;
//-------------------------------------------------------------------------
ClassImp(AliTOFTrigger)
+#ifndef ALITOFTRIGGER_H
+#define ALITOFTRIGGER_H
+
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
/* $Id$ */
-#ifndef ALITOFTRIGGER_H
-#define ALITOFTRIGGER_H
-
/////////////////////////////////////////////////
-//
-// TOF Trigger Detector Class
-//
+// //
+// TOF Trigger Detector Class //
+// //
/////////////////////////////////////////////////
#include "AliTriggerDetector.h"
/*
$Log$
+Revision 1.8 2006/04/16 22:29:05 hristov
+Coding conventions (Annalisa)
+
Revision 1.7 2006/04/16 20:12:46 hristov
Removing memory leak in case of cached CDB entries
// //
///////////////////////////////////////////////////////////////////////////////
-#include "AliTOFcalib.h"
-#include "AliRun.h"
-#include <TTask.h>
-#include <TFile.h>
-#include <TROOT.h>
-#include <TSystem.h>
-#include "AliTOF.h"
-#include "AliTOFcalibESD.h"
-#include "AliESD.h"
-#include <TObject.h>
#include "TF1.h"
+#include "TFile.h"
#include "TH1F.h"
#include "TH2F.h"
-#include "AliESDtrack.h"
-#include "AliTOFChannel.h"
-#include "AliTOFChSim.h"
-#include "AliTOFGeometryV5.h"
-#include "TClonesArray.h"
-#include "AliTOFCal.h"
-#include "TRandom.h"
-#include "AliTOFcluster.h"
#include "TList.h"
+#include "TROOT.h"
+#include "TStyle.h"
+
+#include "AliCDBEntry.h"
+#include "AliCDBId.h"
#include "AliCDBManager.h"
#include "AliCDBMetaData.h"
-#include "AliCDBStorage.h"
-#include "AliCDBId.h"
-#include "AliCDBEntry.h"
+#include "AliESDtrack.h"
+#include "AliESD.h"
+#include "AliLog.h"
+
+#include "AliTOFCal.h"
+#include "AliTOFcalibESD.h"
+#include "AliTOFcalib.h"
+#include "AliTOFChannel.h"
+#include "AliTOFGeometryV5.h"
+#include "AliTOFGeometry.h"
extern TROOT *gROOT;
extern TStyle *gStyle;
//////////////////////////////////////////////////////////////////
#include "TTask.h"
-#include "TH1F.h"
-#include "AliTOFChannel.h"
-#include "TClonesArray.h"
-#include "TList.h"
-#include "AliTOFCal.h"
-#include "AliTOFGeometry.h"
-#include "AliESD.h"
+
+class TArrayF;
+class TF1;
+class TH1F;
+class TObjArray;
+
+class AliESD;
+
+class AliTOFCal;
+class AliTOFGeometry;
class AliTOFcalib:public TTask{
public:
/*
$Log$
+Revision 1.4 2006/04/05 08:35:38 hristov
+Coding conventions (S.Arcelli, C.Zampolli)
+
Revision 1.3 2006/03/28 14:57:13 arcelli
updates to handle new V5 geometry & some re-arrangements
#include "AliTOFcalibESD.h"
+class AliPID;
ClassImp(AliTOFcalibESD)
// class for TOF calibration:: simulation of uncalibrated data //
//////////////////////////////////////////////////////////////////
-#include "AliPID.h"
#include "AliESDtrack.h"
-#include "TObject.h"
-//class AliESDtrack;
+class AliPID;
class AliTOFcalibESD:public AliESDtrack{
public:
(originally implemented by S. Arcelli and C. Zampolli)
*/
-// AliTOFcluster Class
-// Description: class for TOF cluster definition
+////////////////////////////////////////////////////////
+// //
+// AliTOFcluster Class //
+// Description: class for TOF cluster definition //
+// //
+////////////////////////////////////////////////////////
#include "AliTOFcluster.h"
#ifndef ALITOFCLUSTER_H
#define ALITOFCLUSTER_H
+
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-// AliTOFcluster Class
-/* $Id $ */
+/* $Id$ */
-#include "TMath.h"
+//////////////////////////////////////////////
+// //
+// Class for TOF cluster definition //
+// //
+//////////////////////////////////////////////
+#include "TMath.h"
#include "TObject.h"
class AliTOFcluster : public TObject {
/* $Id$ */
-//_________________________________________________________________________
-// TOF digit: member variables
-// fSector : TOF sector
-// fPlate : TOF plate
-// fStrip : strips number
-// fPadx : pad number along x
-// fPadz : pad number along z
-// fTdc : TDC
-// fAdc : ADC
-//
-// Getters, setters and member functions defined here
-//
-//*-- Authors: F. Pierella, A. Seganti, D. Vicinanza
+//_________________________________________________________________________//
+// //
+// TOF digit: member variables //
+// fSector : TOF sector //
+// fPlate : TOF plate //
+// fStrip : strips number //
+// fPadx : pad number along x //
+// fPadz : pad number along z //
+// fTdc : TDC //
+// fAdc : ADC //
+// //
+// Getters, setters and member functions defined here //
+// //
+// -- Authors: F. Pierella, A. Seganti, D. Vicinanza //
+//_________________________________________________________________________//
-#include <Riostream.h>
-
-#include "AliRun.h"
+#include "Riostream.h"
-#include "AliTOFGeometry.h"
-#include "AliTOFGeometryV4.h"
-#include "AliTOFGeometryV5.h"
#include "AliTOFdigit.h"
+#include "AliTOFGeometry.h"
ClassImp(AliTOFdigit)
+#ifndef ALITOFDIGIT_H
+#define ALITOFDIGIT_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
////////////////////////////////////////////////
// //
// Digit class for TOF //
// //
////////////////////////////////////////////////
-#ifndef ALITOFDIGIT_H
-#define ALITOFDIGIT_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice */
-
/* $Id$ */
#include "AliDigit.h"
+#ifndef ALITOFHIT_H
+#define ALITOFHIT_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
////////////////////////////////////////////////
// //
// Hit class for TOF //
// //
////////////////////////////////////////////////
-#ifndef ALITOFHIT_H
-#define ALITOFHIT_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice */
-
/* $Id$ */
#include "AliHit.h"
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-#include "AliHit.h"
-
////////////////////////////////////////////////
// //
// Hit class for TOF //
// //
////////////////////////////////////////////////
+/* $Id$ */
+
+#include "AliHit.h"
+
class AliTOFhitT0 : public AliHit {
public:
AliTOFhitT0() {}
* provided "as is" without express or implied warranty. *
**************************************************************************/
-//-----------------------------------------------------------------
-// Implementation of the TOF PID class
-// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
-//-----------------------------------------------------------------
-#include "TError.h"
-#include "AliTOFpidESD.h"
+//-----------------------------------------------------------------//
+// //
+// Implementation of the TOF PID class //
+// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch //
+// //
+//-----------------------------------------------------------------//
+
+#include "TMath.h"
+
#include "AliESDtrack.h"
#include "AliESD.h"
+#include "AliTOFpidESD.h"
+
ClassImp(AliTOFpidESD)
//_________________________________________________________________________
#ifndef ALITOFPIDESD_H
#define ALITOFPIDESD_H
+
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
//-------------------------------------------------------
-#include <TObject.h>
-#include <TMath.h>
+#include "TObject.h"
-class AliTOFGeometry;
class AliESD;
+class AliTOFGeometry;
+
class AliTOFpidESD : public TObject {
enum {kMaxCluster=77777}; //maximal number of the TOF clusters
public:
* about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/
-////////////////////////////////////////////////////////////////////////
-//
-// AliTOFtrack class
-//
-// Authors: Bologna-CERN-ITEP-Salerno Group
-//
-// Description: class for handling ESD extracted tracks for TOF matching.
-/* $Id$ */
-#include <Riostream.h>
+/* $Id$ */
-#include <TObject.h>
+/////////////////////////////////////////////////////////////////////////////
+// //
+// AliTOFtrack class //
+// //
+// Authors: Bologna-CERN-ITEP-Salerno Group //
+// //
+// Description: class for handling ESD extracted tracks for TOF matching. //
+// //
+/////////////////////////////////////////////////////////////////////////////
-#include "AliLog.h"
#include "AliESDtrack.h"
+#include "AliLog.h"
-#include "AliTOFGeometry.h"
#include "AliTOFGeometryV4.h"
-#include "AliTOFGeometryV5.h"
+#include "AliTOFGeometry.h"
#include "AliTOFtrack.h"
ClassImp(AliTOFtrack)
#ifndef ALITOFTRACK_H
#define ALITOFTRACK_H
-// Description: class for handling ESD extracted tracks for TOF matching.
+
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-#include <AliKalmanTrack.h>
-#include <TMath.h>
-#include "AliTOFGeometry.h"
+//----------------------------------------------------------------------------//
+// //
+// Description: class for handling ESD extracted tracks for TOF matching. //
+// //
+//----------------------------------------------------------------------------//
+
+#include "TMath.h"
#include "TVector2.h"
+#include "AliKalmanTrack.h"
+
+#include "AliTOFGeometry.h"
+
+class TObject;
+
class AliESDtrack;
+
class AliTOFtrack : public AliKalmanTrack {
public:
* about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/
-// AliTOFtracker Class
-// Task: Perform association of the ESD tracks to TOF Clusters
-// and Update ESD track with associated TOF Cluster parameters
-//
-// -- Authors : S. Arcelli, C. Zampolli (Bologna University and INFN)
-// -- Contacts: Annalisa.De.Caro@cern.ch
-// -- : Chiara.Zampolli@bo.infn.it
-// -- : Silvia.Arcelli@bo.infn.it
-//--------------------------------------------------------------------
-
-#include <Rtypes.h>
+
+//--------------------------------------------------------------------//
+// //
+// AliTOFtracker Class //
+// Task: Perform association of the ESD tracks to TOF Clusters //
+// and Update ESD track with associated TOF Cluster parameters //
+// //
+// -- Authors : S. Arcelli, C. Zampolli (Bologna University and INFN) //
+// -- Contacts: Annalisa.De.Caro@cern.ch //
+// -- : Chiara.Zampolli@bo.infn.it //
+// -- : Silvia.Arcelli@bo.infn.it //
+// //
+//--------------------------------------------------------------------//
+
+#include "Rtypes.h"
#include "TClonesArray.h"
+#include "TGeoManager.h"
+#include "TTree.h"
+#include "AliAlignObj.h"
+#include "AliESDtrack.h"
+#include "AliESD.h"
#include "AliLog.h"
-#include "AliRun.h"
-#include "AliModule.h"
+#include "AliTrackPointArray.h"
+#include "AliTOFcalib.h"
#include "AliTOFcluster.h"
-#include "AliTOFtrack.h"
#include "AliTOFGeometry.h"
#include "AliTOFtracker.h"
+#include "AliTOFtrack.h"
-
-#include "AliTrackPointArray.h"
-#include "AliAlignObj.h"
-#include "AliTOFcalib.h"
+extern TGeoManager *gGeoManager;
ClassImp(AliTOFtracker)
#ifndef ALITOFTRACKER_H
#define ALITOFTRACKER_H
+
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-// AliTOFtracker Class
-// Task: Perform association of the ESD tracks to TOF Clusters
-// and Update ESD track with associated TOF Cluster parameters
-//
-// -- Authors : S. Arcelli, C. Zampolli (Bologna University and INFN)
-// -- Contacts: Annalisa.De.Caro@cern.ch
-// -- : Chiara.Zampolli@bo.infn.it
-// -- : Silvia.Arcelli@bo.infn.it
-//--------------------------------------------------------------------
/* $Id$ */
-#include "TClonesArray.h"
+//----------------------------------------------------------------------//
+// //
+// AliTOFtracker Class //
+// Task: Perform association of the ESD tracks to TOF Clusters //
+// and Update ESD track with associated TOF Cluster parameters //
+// //
+// -- Authors : S. Arcelli, C. Zampolli (Bologna University and INFN) //
+// -- Contacts: Annalisa.De.Caro@cern.ch //
+// -- : Chiara.Zampolli@bo.infn.it //
+// -- : Silvia.Arcelli@bo.infn.it //
+// //
+//----------------------------------------------------------------------//
-#include "AliESD.h"
#include "AliTracker.h"
#include "AliTOFpidESD.h"
-class AliTOFGeometry;
+class TClonesArray;
+
+class AliESD;
+
class AliTOFcluster;
+class AliTOFGeometry;
class AliTOFtracker : public AliTracker {
* about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/
-// AliTOFtracker Class
-// Task: Perform association of the ESD tracks to TOF Clusters
-// and Update ESD track with associated TOF Cluster parameters
-//
-//--------------------------------------------------------------------
+
+//-----------------------------------------------------------------//
+// //
+// AliTOFtracker Class //
+// Task: Perform association of the ESD tracks to TOF Clusters //
+// and Update ESD track with associated TOF Cluster parameters //
+// //
+//-----------------------------------------------------------------//
#include <Rtypes.h>
-#include "AliTOFtrackerMI.h"
-#include "AliTOFtrack.h"
+
#include "TClonesArray.h"
-#include "TError.h"
-#include "AliTOFdigit.h"
-#include "AliTOFGeometry.h"
-#include "AliTOF.h"
-#include "AliRun.h"
-#include "AliModule.h"
+#include "TGeoManager.h"
+#include "TTree.h"
#include "TTreeStream.h"
-#include "AliTOFcluster.h"
+
+#include "AliRun.h"
+#include "AliESD.h"
+#include "AliESDtrack.h"
+
#include "AliTOFcalib.h"
+#include "AliTOFcluster.h"
+#include "AliTOFGeometry.h"
+#include "AliTOFtrackerMI.h"
+#include "AliTOFtrack.h"
+
+extern TGeoManager *gGeoManager;
ClassImp(AliTOFtrackerMI)
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;}
// 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;
// }
//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;
}
#ifndef ALITOFTRACKERMI_H
#define ALITOFTRACKERMI_H
+
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-// AliTOFtrackerMI Class
-// Task: Perform association of the ESD tracks to TOF Clusters
-// and Update ESD track with associated TOF Cluster parameters
-//
-//--------------------------------------------------------------------
/* $Id$ */
+//-----------------------------------------------------------------//
+// //
+// AliTOFtrackerMI Class //
+// Task: Perform association of the ESD tracks to TOF Clusters //
+// and Update ESD track with associated TOF Cluster parameters //
+// //
+//-----------------------------------------------------------------//
+
#include "AliTracker.h"
+
#include "AliTOFpidESD.h"
-#include "AliESD.h"
-#include "TClonesArray.h"
+class TTreeSRedirector;
+class TClonesArray;
+
+class AliESD;
+
+class AliTOFcluster;
class AliTOFGeometry;
class AliTOFtrack;
-class AliTOFcluster;
-class TTreeSRedirector;
class AliTOFtrackerMI : public AliTracker {
// //
///////////////////////////////////////////////////////////////////////////////
-#include <Riostream.h>
-#include <stdlib.h>
-
+#include "TBRIK.h"
+#include "TGeometry.h"
+#include "TLorentzVector.h"
+#include "TNode.h"
#include "TVirtualMC.h"
-#include <TBRIK.h>
-#include <TGeometry.h>
-#include <TLorentzVector.h>
-#include <TNode.h>
-#include <TObject.h>
-#include <TVirtualMC.h>
-#include "AliLog.h"
#include "AliConst.h"
-#include "AliRun.h"
-#include "AliMC.h"
+#include "AliLog.h"
#include "AliMagF.h"
+#include "AliMC.h"
+#include "AliRun.h"
#include "AliTOFGeometry.h"
#include "AliTOFGeometryV4.h"
#include "AliTOFv4T0.h"
+extern TDirectory *gDirectory;
+extern TVirtualMC *gMC;
+
+extern AliRun *gAlice;
+
ClassImp(AliTOFv4T0)
//_____________________________________________________________________________
// put TOF
- AliModule* frame=gAlice->GetModule("FRAME");
+ AliModule* frame = (AliModule*)gAlice->GetModule("FRAME");
if(!frame) {
AliFatal("TOF needs FRAME to be present");
} else{
TNode *node, *top;
const int kColorTOF = 27;
+ TGeometry *globalGeometry = (TGeometry*)gAlice->GetGeometry();
+
// Find top TNODE
- top = gAlice->GetGeometry()->GetNode("alice");
+ top = (TNode*)globalGeometry->GetNode("alice");
// Position the different copies
const Float_t krTof =(fTOFGeometry->Rmax()+fTOFGeometry->Rmin())/2.;
// Revision: F. Pierella 18-VI-2002
//
- Int_t isxfld = gAlice->Field()->Integ();
- Float_t sxmgmx = gAlice->Field()->Max();
- //
+ AliMagF *magneticField = (AliMagF*)gAlice->Field();
+
+ Int_t isxfld = magneticField->Integ();
+ Float_t sxmgmx = magneticField->Max();
+
//--- Quartz (SiO2) to simulate float glass
// density tuned to have correct float glass
// radiation length
)
{
- AddTrackReference(gAlice->GetMCApp()->GetCurrentTrackNumber());
+ AliMC *mcApplication = (AliMC*)gAlice->GetMCApp();
+
+ AddTrackReference(mcApplication->GetCurrentTrackNumber());
+ //AddTrackReference(gAlice->GetMCApp()->GetCurrentTrackNumber());
// getting information about hit volumes
vol[3]= padx;
vol[4]= padz;
- AddT0Hit(gAlice->GetMCApp()->GetCurrentTrackNumber(),vol, hits);
+ AddT0Hit(mcApplication->GetCurrentTrackNumber(),vol, hits);
+ //AddT0Hit(gAlice->GetMCApp()->GetCurrentTrackNumber(),vol, hits);
}
}
-//_________________________________________________________________________
-// Implementation version v4 of TOF Manager class
-// FULL COVERAGE VERSION i.e. NO HOLES FOR PHOS AND HMPID (RICH) ARE DEFINED
-//
-//*-- Authors: Pierella, Seganti, Vicinanza (Bologna and Salerno University)
-
#ifndef ALITOFv4T0_H
#define ALITOFv4T0_H
+
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
+//_____________________________________________________________________________//
+// //
+// Implementation version v4 of TOF Manager class //
+// FULL COVERAGE VERSION i.e. NO HOLES FOR PHOS AND HMPID (RICH) ARE DEFINED //
+// //
+// -- Authors: Pierella, Seganti, Vicinanza (Bologna and Salerno University) //
+// //
+//_____________________________________________________________________________//
+
#include "AliTOF.h"
public:
AliTOFv4T0();
AliTOFv4T0(const char *name, const char *title);
- virtual ~AliTOFv4T0() { if (fTOFGeometry) {delete fTOFGeometry;
- fTOFGeometry = 0; }
-}
+ virtual ~AliTOFv4T0() {};
virtual void BuildGeometry();
virtual void CreateGeometry();
virtual void CreateMaterials();
/*
$Log$
+Revision 1.7 2006/04/16 22:29:05 hristov
+Coding conventions (Annalisa)
+
Revision 1.6 2006/03/20 08:20:35 decaro
Al layer: positioning correction
// //
///////////////////////////////////////////////////////////////////////////////
-#include "Riostream.h"
-#include <stdlib.h>
-
+#include "TBRIK.h"
+#include "TGeometry.h"
+#include "TLorentzVector.h"
+#include "TNode.h"
#include "TVirtualMC.h"
-#include <TBRIK.h>
-#include <TGeometry.h>
-#include <TLorentzVector.h>
-#include <TNode.h>
-#include <TObject.h>
-#include <TVirtualMC.h>
-#include "AliLog.h"
#include "AliConst.h"
-#include "AliRun.h"
-#include "AliMC.h"
+#include "AliLog.h"
#include "AliMagF.h"
+#include "AliMC.h"
+#include "AliRun.h"
#include "AliTOFGeometry.h"
#include "AliTOFGeometryV5.h"
#include "AliTOFv5T0.h"
+extern TDirectory *gDirectory;
+extern TVirtualMC *gMC;
+
+extern AliRun *gAlice;
+
ClassImp(AliTOFv5T0)
//_____________________________________________________________________________
// put TOF
- AliModule* frame=gAlice->GetModule("FRAME");
+ AliModule* frame = (AliModule*)gAlice->GetModule("FRAME");
if(!frame) {
AliFatal("TOF needs FRAME to be present");
} else{
TNode *node, *top;
const int kColorTOF = 27;
+ TGeometry *globalGeometry = (TGeometry*)gAlice->GetGeometry();
+
// Find top TNODE
- top = gAlice->GetGeometry()->GetNode("alice");
+ top = globalGeometry->GetNode("alice");
// Position the different copies
const Float_t krTof =(fTOFGeometry->Rmax()+fTOFGeometry->Rmin())/2.;
//AliTOF::CreateMaterials();
- Int_t isxfld = gAlice->Field()->Integ();
- Float_t sxmgmx = gAlice->Field()->Max();
+ AliMagF *magneticField = (AliMagF*)gAlice->Field();
+
+ Int_t isxfld = magneticField->Integ();
+ Float_t sxmgmx = magneticField->Max();
+
Float_t we[7], ae[7], na[7], fr[7], vl[7];
Int_t i;
- //
//--- Quartz (SiO2) to simulate float glass
// density tuned to have correct float glass
// radiation length
)
{
- AddTrackReference(gAlice->GetMCApp()->GetCurrentTrackNumber());
+ AliMC *mcApplication = (AliMC*)gAlice->GetMCApp();
+
+ AddTrackReference(mcApplication->GetCurrentTrackNumber());
+ //AddTrackReference(gAlice->GetMCApp()->GetCurrentTrackNumber());
// getting information about hit volumes
vol[3]= padx;
vol[4]= padz;
- AddT0Hit(gAlice->GetMCApp()->GetCurrentTrackNumber(),vol, hits);
+ AddT0Hit(mcApplication->GetCurrentTrackNumber(),vol, hits);
+ //AddT0Hit(gAlice->GetMCApp()->GetCurrentTrackNumber(),vol, hits);
}
}
//-------------------------------------------------------------------
-//_________________________________________________________________________
-// Implementation version v5 of TOF Manager class
-// FULL COVERAGE VERSION + OPTION FOR PHOS HOLES
-//
-//*-- Authors: G. Cara Romeo, A. De Caro
-
#ifndef ALITOFv5T0_H
#define ALITOFv5T0_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
+//_________________________________________________________________________//
+// //
+// Implementation version v5 of TOF Manager class //
+// FULL COVERAGE VERSION + OPTION FOR PHOS HOLES //
+// //
+// -- Authors: G. Cara Romeo, A. De Caro //
+// //
+//_________________________________________________________________________//
+
#include "AliTOF.h"
public:
AliTOFv5T0();
AliTOFv5T0(const char *name, const char *title);
- virtual ~AliTOFv5T0() { if (fTOFGeometry) {delete fTOFGeometry;
- fTOFGeometry = 0; }
-}
+ virtual ~AliTOFv5T0() {};
virtual void BuildGeometry();
virtual void CreateGeometry();
virtual void CreateMaterials();