/*
$Log$
+Revision 1.12 2001/05/16 14:57:17 alibrary
+New files for folders and Stack
+
+Revision 1.11 2001/01/26 21:25:48 morsch
+Empty default constructors and.
+
+Revision 1.10 2001/01/23 18:58:19 hristov
+Initialisation of some pointers
+
Revision 1.9 2001/01/17 20:53:40 hristov
Destructors corrected to avoid memory leaks
AliMUONSegmentationSlat::AliMUONSegmentationSlat()
{
// Default constructor
+}
+
+AliMUONSegmentationSlat::AliMUONSegmentationSlat(Int_t nsec)
+{
+// Non default constructor
fSlats=0;
fNDiv = new TArrayI(4);
fChamber = 0;
fSlats->Delete();
delete fSlats;
}
+
+ if (fNDiv) {
+ delete fNDiv;
+ }
+
}
void AliMUONSegmentationSlat::SetPadSize(Float_t p1, Float_t p2)
// Initialize slat modules of quadrant +/+
// The other three quadrants are handled through symmetry transformations
//
- printf("\n Initialise Segmentation Slat \n");
+ //printf("\n Initialise Segmentation Slat \n");
//
// Initialize Slat modules
fNpx=0;
// for each slat in the quadrant (+,+)
for (islat=0; islat<fNSlats; islat++) {
- (*fSlats)[islat] = CreateSlatModule();
+ fSlats->AddAt(CreateSlatModule(),islat);
AliMUONSegmentationSlatModule *slat = Slat(islat);
// Configure Slat
CreateSlatModule()
{
// Factory method for slat module
- return new AliMUONSegmentationSlatModule();
+ return new AliMUONSegmentationSlatModule(4);
}