/*
$Log$
+Revision 1.34 2002/02/20 13:41:38 hristov
+Default arguments set only in the header file
+
+Revision 1.33 2002/02/19 10:39:38 vicinanz
+t0 classes added and material update (steel added)
+
+Revision 1.31 2001/11/22 11:22:51 hristov
+Updated version of TOF digitization, N^2 problem solved (J.Chudoba)
+
Revision 1.30 2001/10/21 18:30:39 hristov
Several pointers were set to zero in the default constructors to avoid memory management problems
#include "AliTOF.h"
#include "AliTOFhit.h"
+#include "AliTOFhitT0.h"
#include "AliTOFdigit.h"
#include "AliTOFSDigit.h"
#include "AliTOFRawSector.h"
//
// Default constructor
//
- fFGeom = 0;
- fDTask = 0;
- fReTask = 0;
+ fFGeom = 0x0;
+ fDTask = 0x0;
+ fReTask = 0x0;
fIshunt = 0;
fSDigits = 0 ;
fDigits = 0 ;
- fReconParticles = 0;
+ fReconParticles = 0x0;
fName="TOF";
- fMerger = 0;
+ fMerger = 0x0;
/* fp
CreateTOFFolders();
*/
}
//_____________________________________________________________________________
-AliTOF::AliTOF(const char *name, const char *title)
+AliTOF::AliTOF(const char *name, const char *title, Option_t *option)
: AliDetector(name,title)
{
//
//
// Initialization of hits, sdigits and digits array
- //
- fHits = new TClonesArray("AliTOFhit", 1000);
+ // added option for time zero analysis
+ if (strstr(option,"tzero")){
+ fHits = new TClonesArray("AliTOFhitT0", 1000);
+ cout << "tzero option requires AliTOFv4T0 as TOF version (check Your Config.C)" << endl;
+ }else{
+ fHits = new TClonesArray("AliTOFhit", 1000);
+ }
gAlice->AddHitList(fHits);
fIshunt = 0;
fSDigits = new TClonesArray("AliTOFSDigit", 1000);
fDigits = new TClonesArray("AliTOFdigit", 1000);
+
+ fFGeom = 0x0;
+ fDTask = 0x0;
+ fReTask = 0x0;
+ fReconParticles = 0x0;
+ fMerger = 0x0;
+
//
// Digitization parameters
//
TClonesArray &lhits = *fHits;
new(lhits[fNhits++]) AliTOFhit(fIshunt, track, vol, hits);
}
-
+
+//_____________________________________________________________________________
+void AliTOF::AddT0Hit(Int_t track, Int_t *vol, Float_t *hits)
+{
+ //
+ // Add a TOF hit
+ // new with placement used
+ //
+ TClonesArray &lhits = *fHits;
+ new(lhits[fNhits++]) AliTOFhitT0(fIshunt, track, vol, hits);
+}
+
//_____________________________________________________________________________
void AliTOF::AddDigit(Int_t *tracks, Int_t *vol, Float_t *digits)
{
Float_t wwa[2] = { 2., 1. };
Float_t dwa = 1.0;
Int_t nwa = -2;
+
+// stainless steel
+ Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
+ Float_t zsteel[4] = { 26.,24.,28.,14. };
+ Float_t wsteel[4] = { .715,.18,.1,.005 };
+
//
//AliMaterial(0, "Vacuum$", 1e-16, 1e-16, 1e-16, 1e16, 1e16);
AliMaterial( 1, "Air$",14.61,7.3,0.001205,30423.24,67500.);
AliMixture (12, "Freon$", afre, zfre, densfre, nfre, wfre);
AliMixture (13, "Quartz$", aq, zq, dq, nq, wq);
AliMixture (14, "Water$", awa, zwa, dwa, nwa, wwa);
+ AliMixture (15, "STAINLESS STEEL$", asteel, zsteel, 7.88, 4, wsteel);
Float_t epsil, stmin, deemax, stemax;
AliMedium(14, "Fre-S$", 12, 1, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
AliMedium(15, "Glass$", 13, 0, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
AliMedium(16, "Water$", 14, 0, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
+ AliMedium(17, "STEEL$", 15, 0, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin);
}
//_____________________________________________________________________________