#include "AliMpSegmentation.h"
#include "AliMpDetElement.h"
+#include "AliMpDEStore.h"
#include "AliMpDEManager.h"
#include "AliMpDEIterator.h"
#include "AliMpExMap.h"
//______________________________________________________________________________
AliMpSegmentation::AliMpSegmentation()
: TObject(),
+ fDetElements(0),
fMpSegmentations(true),
fElCardsMap(true),
fSlatMotifMap()
AliDebug(1,"");
fElCardsMap.SetOwner(true);
+
+ // Load DE data
+ if ( ! AliMpDEStore::Instance(false) )
+ AliMpDEStore::ReadData();
+ fDetElements = AliMpDEStore::Instance();
// Create mapping segmentations for all detection elements
for ( Int_t cath = AliMp::kCath0; cath <= AliMp::kCath1; cath ++ ) {
//______________________________________________________________________________
AliMpSegmentation::AliMpSegmentation(TRootIOCtor* /*ioCtor*/)
: TObject(),
+ fDetElements(0),
fMpSegmentations(),
fElCardsMap(),
fSlatMotifMap()
AliDebug(1,"");
+ delete fDetElements;
+
// Segmentations are deleted with fMpSegmentations
// El cards arrays are deleted with fElCardsMap