+ return kTRUE;
+}
+//------------------------------------------------------------------------
+void AliMUONDigitizer::ParseOptions(Option_t* options)
+{
+// Called by the Exec method. ParseOptions should parse the option string given to the Exec method.
+//
+// The following options are defined:
+// "debug" - Sets the debug level to 99, which will show all debug messages.
+// "deb" - Same as "debug", implemented for backward comparability.
+//
+// If an invalid option is specified it is simply ignored.
+
+ TString optionString = options;
+ if (optionString.Data() == "debug" ||
+ optionString.Data() == "deb" // maintained for compatability.
+ )
+ {
+ AliInfo("Called with option \"debug\".");
+ SetDebug(99);
+ }
+}
+
+//------------------------------------------------------------------------
+void AliMUONDigitizer::InitArrays()
+{
+// Creates a new fTDList object.
+// Also creates an array of 2 * chamber_number AliMUONHitMapA1 objects
+// in the fHitMaps array. Each one is set to a chamber and cathode
+// specific segmentation model.
+//
+// Note: the fTDList and fHitMap arrays must be NULL before calling this method.
+
+ AliDebug(2, "Initialising internal arrays.");
+ AliDebug(4, "Creating transient digits list.");
+ fTDList = new TObjArray;
+
+ // Array of pointer of the AliMUONHitMapA1:
+ // two HitMaps per chamber, or one HitMap per cahtode plane
+ fHitMap = new AliMUONHitMapA1* [2*AliMUONConstants::NCh()];
+
+ if (fMUON->WhichSegmentation() == 1) {
+ // Loop over chambers for the definition AliMUONHitMap
+ for (Int_t i = 0; i < AliMUONConstants::NCh(); i++) {
+
+ AliDebug(4,Form( "Creating hit map for chamber %d, cathode 1.", i+1));
+ AliMUONChamber* chamber = &(fMUON->Chamber(i));
+ AliSegmentation* c1Segmentation = chamber->SegmentationModel(1); // Cathode plane 1
+ fHitMap[i] = new AliMUONHitMapA1(c1Segmentation, fTDList);
+ AliDebug(4,Form( "Creating hit map for chamber %d, cathode 2.", i+1));
+ AliSegmentation* c2Segmentation = chamber->SegmentationModel(2); // Cathode plane 2
+ fHitMap[i+AliMUONConstants::NCh()] = new AliMUONHitMapA1(c2Segmentation, fTDList);
+ }
+