/// before you've loaded the mapping in memory (see e.g. AliMpCDB::LoadDDLStore)
///
- fTransformations = GenerateTransformations(explodedView);
+ if ( explodedView )
+ {
+ fTransformations = GenerateTransformations(explodedView);
+ }
+
AliMUONManuContourMaker manuMaker(fTransformations);
+
TObjArray* manus = manuMaker.GenerateManuContours(kTRUE);
+
if (manus)
{
manus->SetOwner(kFALSE);
AliMUONContourHandler::~AliMUONContourHandler()
{
/// Dtor
+ delete fTransformations;
delete fAllContourMap;
delete fAllContourArray;
}
/// of station0/chamber0 and station0/chamber1 in the example above).
///
- AliCodeTimerAuto("");
+ AliCodeTimerAuto("",0);
+
+ Int_t start(0);
+ if ( !fTransformations )
+ {
+ start = 2; // skip chamber and station contours, as we seem to be in 3D
+ }
+
TIter next(&manuContours);
AliMUONContour* contour;
TObjArray* mapArray = new TObjArray;
TString key(contour->GetName());
TObjArray* s = key.Tokenize("/");
- for ( Int_t i = 0; i < s->GetLast(); ++i )
+ for ( Int_t i = start; i < s->GetLast(); ++i )
{
TMap* m = static_cast<TMap*>(mapArray->At(i));
if (!m)
/// Note that manuContours should NOT be the owner of its contours,
/// as they are adopted by the array returned by this method.
- AliCodeTimerAuto("");
+ AliCodeTimerAuto("",0);
// Get the list of contours to create
TObjArray* mapArray = CreateContourList(manuContours);
- // Now loop over the mapArray to actually create the contours
- TIter next2(mapArray,kIterBackward);
-
fAllContourMap = new TMap(20000,1);
fAllContourMap->SetOwnerKeyValue(kTRUE,kTRUE);
/// If exploded=kFALSE then we generate real transformations, otherwise
/// we generate tweaked ones that look fine on screen.
- AliCodeTimerAuto("");
+ AliCodeTimerAuto("",0);
AliMUONGeometryTransformer transformer;
Bool_t ok = transformer.LoadGeometryData("transform.dat");
fAllContourMap->GetSize(),
fAllContourMap->Capacity()) << endl;
}
+ TString sopt(opt);
+ sopt.ToUpper();
+
+ if ( sopt.Contains("ALL") || sopt.Contains("FULL") )
+ {
+ fAllContourMap->Print();
+ }
}