* about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/
-
/* $Id$ */
///////////////////////////////////////////////////////////////////////////////
fReconParticles(0x0),
fIdSens(-1),
fTZero(kFALSE),
+ fTOFHoles(kTRUE),
fTOFGeometry(0x0)
{
//
fReconParticles(0x0),
fIdSens(-1),
fTZero(kFALSE),
+ fTOFHoles(kTRUE),
fTOFGeometry(0x0)
{
//
}
//_____________________________________________________________________________
AliTOF::AliTOF(const AliTOF &source)
- :AliDetector(),
+ :
+ AliDetector(),
fFGeom(0x0),
fDTask(0x0),
fReTask(0x0),
fReconParticles(0x0),
fIdSens(-1),
fTZero(kFALSE),
+ fTOFHoles(kTRUE),
fTOFGeometry(0x0)
{
// copy constructor
void CreateSDigitsArray();
virtual void SetTOFSectors(Int_t *sectors);
virtual void GetTOFSectors(Int_t *sectors) const;
+ virtual void SetTOFHoles(Bool_t holes) { fTOFHoles = holes; };
+ virtual Bool_t GetTOFHoles() const { return fTOFHoles; };
AliTOFGeometry *GetGeometry() const { return fTOFGeometry; };
// Trigger
Bool_t fTZero; // Flag indicating if T0 is used
Int_t fTOFSectors[18]; // Selecting TOF Sectors to be simulated
+ Bool_t fTOFHoles; // Selecting geometry with and w/o holes
AliTOFGeometry *fTOFGeometry; //The TOF Geometry parameters
private:
fIdFTOC(-1),
fIdFLTA(-1),
fIdFLTB(-1),
- fIdFLTC(-1),
- fTOFHoles(kFALSE)
+ fIdFLTC(-1)//,
+//fTOFHoles(kFALSE)
{
//
// Default constructor
fIdFTOC(-1),
fIdFLTA(-1),
fIdFLTB(-1),
- fIdFLTC(-1),
- fTOFHoles(kFALSE)
+ fIdFLTC(-1)//,
+ //fTOFHoles(kFALSE)
{
//
// Standard constructor
//
+
//
// Check that FRAME is there otherwise we have no place where to
// put TOF
+ /*
AliModule* frame = (AliModule*)gAlice->GetModule("FRAME");
+
if(!frame) {
AliFatal("TOF needs FRAME to be present");
- } else{
-
+ } else {
if (fTOFGeometry) delete fTOFGeometry;
fTOFGeometry = new AliTOFGeometry();
if(frame->IsVersion()==1) {
AliDebug(1,Form("Frame version %d", frame->IsVersion()));
AliDebug(1,"Full Coverage for TOF");
- fTOFHoles=false;}
+ fTOFHoles=false;}
else {
AliDebug(1,Form("Frame version %d", frame->IsVersion()));
AliDebug(1,"TOF with Holes for PHOS");
- fTOFHoles=true;}
+ fTOFHoles=true;}
+
}
+ */
+
+ if (fTOFGeometry) delete fTOFGeometry;
+ fTOFGeometry = new AliTOFGeometry();
fTOFGeometry->SetHoles(fTOFHoles);
//AliTOF::fTOFGeometry = fTOFGeometry;
Int_t fIdFLTA; // FLTA volume identifier (inner plate A)
Int_t fIdFLTB; // FLTB volume identifier (inner plate B)
Int_t fIdFLTC; // FLTC volume identifier (inner plate C)
- Bool_t fTOFHoles; // Selecting Geometry with and w/o holes
//private: