]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONReconstructor.cxx
Major commit related to steering of the reco parameters: AliDAQ and trigger classes...
[u/mrichter/AliRoot.git] / MUON / AliMUONReconstructor.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15 /* $Id$ */
16
17 //-----------------------------------------------------------------------------
18 /// \class AliMUONReconstructor
19 ///
20 /// Implementation of AliReconstructor for MUON subsystem.
21 ///
22 /// The clustering mode and the associated parameters can be changed by using
23 /// AliMUONRecoParam *muonRecoParam = AliMUONRecoParam::GetLow(High)FluxParam();
24 /// muonRecoParam->Set...(); // see methods in AliMUONRecoParam.h for details
25 /// AliRecoParam::Instance()->RegisterRecoParam(muonRecoParam);
26 ///
27 /// Valid modes are :
28 ///
29 /// SIMPLEFIT : use the AliMUONClusterFinderSimpleFit clusterizer
30 ///
31 /// SIMPLEFITV3 : SIMPLEFIT with preclustering=PRECLUSTERV3
32 ///
33 /// MLEM : use AliMUONClusterFinderMLEM and AliMUONPreClusterFinder for preclustering (default)
34 /// MLEMV2 : MLEM with preclustering=PRECLUSTERV2
35 /// MLEMV3 : MLEM with preclustering=PRECLUSTERV3
36 ///
37 /// PRECLUSTER : use only AliMUONPreClusterFinder. Only for debug as
38 /// the produced clusters do not have a position, hence the tracking will not
39 /// work
40 /// PRECLUSTERV2 : another version of the preclustering
41 /// PRECLUSTERV3 : yet another version of the preclustering
42 ///
43 /// COG : use AliMUONClusterFinderCOG clusterizer. Not really a production
44 /// option either, as center-of-gravity is generally not a good estimate
45 /// of the cluster position...
46 ///
47 /// PEAKCOG : COG cluster finder around local maxima
48 /// PEAKFIT : fit around local maxima with up to 3 peaks, COG otherwise
49 ///
50 /// NOCLUSTERING : bypass completely the clustering stage
51 ///
52 /// ------
53 ///
54 /// The behavior of the MUON reconstruction can also be changed, besides
55 /// the usual methods found in AliReconstruction (e.g. to disable tracking)
56 /// by using AliReconstruction::SetOption("MUON",options)
57 /// where options should be a space separated string.
58 ///
59 /// Valid options are :
60 ///
61 /// SAVEDIGITS : if you want to save in the TreeD the *calibrated* digits
62 ///     that are used for the clustering
63 ///
64 /// DIGITSTOREV1 : use the V1 implementation of the digitstore 
65 /// DIGITSTOREV2R : use the V2R implementation of the digitstore 
66 ///
67 /// NOLOCALRECONSTRUCTION : for debug, to disable local reconstruction (and hence
68 /// "recover" old behavior)
69 ///
70 /// TRIGGERDISABLE : disable the treatment of MUON trigger
71 ///
72 /// NOFASTTRKDECODER : makes the digit maker class use the non-high performance decoder
73 ///                  AliMUONPayloadTracker instead of  AliMUONTrackerDDLDecoder.
74 ///
75 /// NOFASTTRGDECODER : makes the digit maker class use the non-high performance decoder
76 ///                  AliMUONPayloadTrigger instead of AliMUONTriggerDDLDecoder.
77 ///
78 /// NOFASTDECODERS : makes the digit maker class use the non-high performance decoders
79 ///                  AliMUONPayloadTracker and AliMUONPayloadTrigger.
80 ///
81 /// \author Laurent Aphecetche, Subatech
82 //-----------------------------------------------------------------------------
83
84 #include "AliMUONReconstructor.h"
85
86 #include "AliMUONCalibrationData.h"
87 #include "AliMUONClusterFinderCOG.h"
88 #include "AliMUONClusterFinderMLEM.h"
89 #include "AliMUONClusterFinderSimpleFit.h"
90 #include "AliMUONClusterFinderPeakCOG.h"
91 #include "AliMUONClusterFinderPeakFit.h"
92 #include "AliMUONClusterStoreV1.h"
93 #include "AliMUONClusterStoreV2.h"
94 #include "AliMUONConstants.h"
95 #include "AliMUONDigitCalibrator.h"
96 #include "AliMUONDigitMaker.h"
97 #include "AliMUONDigitStoreV1.h"
98 #include "AliMUONDigitStoreV2R.h"
99 #include "AliMUONGeometryTransformer.h"
100 #include "AliMUONPreClusterFinder.h"
101 #include "AliMUONPreClusterFinderV2.h"
102 #include "AliMUONPreClusterFinderV3.h"
103 #include "AliMUONSimpleClusterServer.h"
104 #include "AliMUONTracker.h"
105 #include "AliMUONTriggerCircuit.h"
106 #include "AliMUONTriggerStoreV1.h"
107 #include "AliMUONVClusterFinder.h"
108 #include "AliMUONVClusterServer.h"
109 #include "AliMUONVTrackStore.h"
110
111 #include "AliMpArea.h"
112 #include "AliMpCDB.h"
113 #include "AliMpConstants.h"
114
115 #include "AliRawReader.h"
116 #include "AliCDBManager.h"
117 #include "AliCodeTimer.h"
118 #include "AliLog.h"
119
120 #include <Riostream.h>
121 #include <TObjArray.h>
122 #include <TClonesArray.h>
123 #include <TString.h>
124 #include <TTree.h>
125
126 /// \cond CLASSIMP
127 ClassImp(AliMUONReconstructor)
128 /// \endcond 
129
130 //_____________________________________________________________________________
131 AliMUONReconstructor::AliMUONReconstructor() : 
132 AliReconstructor(),
133 fDigitMaker(0x0),
134 fTransformer(new AliMUONGeometryTransformer()),
135 fDigitStore(0x0),
136 fTriggerCircuit(0x0),
137 fCalibrationData(0x0),
138 fDigitCalibrator(0x0),
139 fClusterServer(0x0),
140 fTriggerStore(0x0),
141 fTrackStore(0x0),
142 fClusterStore(0x0)
143 {
144   /// normal ctor
145
146   // Load mapping
147   if ( ! AliMpCDB::LoadDDLStore() ) {
148     AliFatal("Could not access mapping from OCDB !");
149   }
150   
151   // Load geometry data
152   fTransformer->LoadGeometryData();
153   
154 }
155
156 //_____________________________________________________________________________
157 AliMUONReconstructor::~AliMUONReconstructor()
158 {
159   /// dtor
160   delete fDigitMaker;
161   delete fDigitStore;
162   delete fTransformer;
163   delete fTriggerCircuit;
164   delete fCalibrationData;
165   delete fDigitCalibrator;
166   delete fClusterServer;
167   delete fTriggerStore;
168   delete fTrackStore;
169   delete fClusterStore;
170 }
171
172 //_____________________________________________________________________________
173 void
174 AliMUONReconstructor::Calibrate(AliMUONVDigitStore& digitStore) const
175 {
176   /// Calibrate the digitStore
177   if (!fDigitCalibrator)
178   {
179     CreateCalibrator();
180   }
181   AliCodeTimerAuto(Form("%s::Calibrate(AliMUONVDigitStore*)",fDigitCalibrator->ClassName()))
182   fDigitCalibrator->Calibrate(digitStore);  
183 }
184
185 //_____________________________________________________________________________
186 void
187 AliMUONReconstructor::ConvertDigits(AliRawReader* rawReader, 
188                                     AliMUONVDigitStore* digitStore,
189                                     AliMUONVTriggerStore* triggerStore) const
190 {
191   /// Convert raw data into digit and trigger stores
192   CreateDigitMaker();
193   
194   AliCodeTimerStart(Form("%s::Raw2Digits(AliRawReader*,AliMUONVDigitStore*,AliMUONVTriggerStore*)",
195                     fDigitMaker->ClassName()))
196   fDigitMaker->Raw2Digits(rawReader,digitStore,triggerStore);
197   AliCodeTimerStop(Form("%s::Raw2Digits(AliRawReader*,AliMUONVDigitStore*,AliMUONVTriggerStore*)",
198                          fDigitMaker->ClassName()))
199   Calibrate(*digitStore);
200 }
201
202 //_____________________________________________________________________________
203 void 
204 AliMUONReconstructor::ConvertDigits(AliRawReader* rawReader, TTree* digitsTree) const
205 {
206    /// convert raw data into a digit tree
207   AliCodeTimerAuto("")
208
209   Bool_t alone = ( TriggerStore() == 0 );
210   
211   Bool_t ok = DigitStore()->Connect(*digitsTree,alone);
212   if ( TriggerStore() ) 
213   {
214     ok = ok && TriggerStore()->Connect(*digitsTree,kFALSE);
215   }
216   
217   if (!ok)
218   {
219     AliError("Could not make branches on TreeD");
220   }
221   else
222   {
223     ConvertDigits(rawReader,DigitStore(),TriggerStore());
224     AliCodeTimerStart("Fill digits")
225     digitsTree->Fill();
226     AliCodeTimerStop("Fill digits")
227     DigitStore()->Clear();
228   }
229 }
230
231 //_____________________________________________________________________________
232 void
233 AliMUONReconstructor::CreateDigitMaker() const
234 {
235   /// Create (and create if necessary) the digit maker
236   if (fDigitMaker) return;
237
238   AliCodeTimerAuto("")
239
240   TString option = GetOption();
241   Bool_t enableErrorLogging = kTRUE;
242   Bool_t useFastTrackerDecoder = kTRUE;
243   Bool_t useFastTriggerDecoder = kTRUE;
244   if (option.Contains("NOFASTTRKDECODER"))
245   {
246     useFastTrackerDecoder = kFALSE;
247   }
248   if (option.Contains("NOFASTTRGDECODER"))
249   {
250     useFastTriggerDecoder = kFALSE;
251   }
252   if (option.Contains("NOFASTDECODERS"))
253   {
254     useFastTrackerDecoder = kFALSE;
255     useFastTriggerDecoder = kFALSE;
256   }
257   fDigitMaker = new AliMUONDigitMaker(
258       enableErrorLogging, useFastTrackerDecoder, useFastTriggerDecoder
259     );
260   option.ToUpper();
261   if ( option.Contains("SAVEDIGITS" ))
262     {
263       fDigitMaker->SetMakeTriggerDigits(kTRUE);
264     }
265 }
266
267 //_____________________________________________________________________________
268 void 
269 AliMUONReconstructor::CreateTriggerCircuit() const
270 {
271   /// Return (and create if necessary) the trigger circuit object
272   if (fTriggerCircuit) return;
273
274   AliCodeTimerAuto("")
275
276   fTriggerCircuit = new AliMUONTriggerCircuit(fTransformer);
277
278 }
279
280 //_____________________________________________________________________________
281 AliTracker* 
282 AliMUONReconstructor::CreateTracker() const
283 {
284   /// Create the MUONTracker object
285   
286   CreateTriggerCircuit();
287   CreateDigitMaker();
288   CreateClusterServer();
289
290   AliMUONTracker* tracker(0x0);
291   
292   if ( ! AliMUONReconstructor::GetRecoParam()->CombineClusterTrackReco() )
293   {
294     tracker = new AliMUONTracker(0x0,
295                                  *DigitStore(),
296                                  fDigitMaker,
297                                  fTransformer,
298                                  fTriggerCircuit);
299   }
300   else
301   {
302     tracker = new AliMUONTracker(fClusterServer,
303                                  *DigitStore(),
304                                  fDigitMaker,
305                                  fTransformer,
306                                  fTriggerCircuit);
307   }
308   
309   
310   return tracker;
311 }
312
313 //_____________________________________________________________________________
314 AliMUONVClusterFinder*
315 AliMUONReconstructor::CreateClusterFinder(const char* clusterFinderType)
316 {
317   /// Create a given cluster finder instance
318   
319   AliCodeTimerAutoGeneral("")
320
321   AliMUONVClusterFinder* clusterFinder(0x0);
322   
323   TString opt(clusterFinderType);
324   opt.ToUpper();
325   
326   if ( strstr(opt,"PRECLUSTERV2") )
327   {
328     clusterFinder = new AliMUONPreClusterFinderV2;
329   }    
330   else if ( strstr(opt,"PRECLUSTERV3") )
331   {
332     clusterFinder = new AliMUONPreClusterFinderV3;
333   }  
334   else if ( strstr(opt,"PRECLUSTER") )
335   {
336     clusterFinder = new AliMUONPreClusterFinder;
337   }  
338   else if ( strstr(opt,"PEAKCOG") )
339   {
340     clusterFinder = new AliMUONClusterFinderPeakCOG(kFALSE,new AliMUONPreClusterFinder);
341   }
342   else if ( strstr(opt,"PEAKFIT") )
343   {
344     clusterFinder = new AliMUONClusterFinderPeakFit(kFALSE,new AliMUONPreClusterFinder);
345   }
346   else if ( strstr(opt,"COG") )
347   {
348     clusterFinder = new AliMUONClusterFinderCOG(new AliMUONPreClusterFinder);
349   }  
350   else if ( strstr(opt,"SIMPLEFITV3") )
351   {
352     clusterFinder = new AliMUONClusterFinderSimpleFit(new AliMUONClusterFinderCOG(new AliMUONPreClusterFinderV3));
353   }
354   else if ( strstr(opt,"SIMPLEFIT") )
355   {
356     clusterFinder = new AliMUONClusterFinderSimpleFit(new AliMUONClusterFinderCOG(new AliMUONPreClusterFinder));
357   }
358   else if ( strstr(opt,"MLEM:DRAW") )
359   {
360     clusterFinder = new AliMUONClusterFinderMLEM(kTRUE,new AliMUONPreClusterFinder);
361   }
362   else if ( strstr(opt,"MLEMV3") )
363   {
364     clusterFinder = new AliMUONClusterFinderMLEM(kFALSE,new AliMUONPreClusterFinderV3);
365   } 
366   else if ( strstr(opt,"MLEMV2") )
367   {
368     clusterFinder = new AliMUONClusterFinderMLEM(kFALSE,new AliMUONPreClusterFinderV2);
369   } 
370   else if ( strstr(opt,"MLEM") )
371   {
372     clusterFinder = new AliMUONClusterFinderMLEM(kFALSE,new AliMUONPreClusterFinder);
373   } 
374   else
375   {
376     AliErrorClass(Form("clustering mode \"%s\" does not exist",opt.Data()));
377     return 0x0;
378   }
379   
380   return clusterFinder;
381 }
382
383 //_____________________________________________________________________________
384 void
385 AliMUONReconstructor::CreateClusterServer() const
386 {
387   /// Create cluster server
388   
389   if ( fClusterServer ) return;
390   
391   AliCodeTimerAuto("");
392     
393   AliMUONVClusterFinder* clusterFinder = CreateClusterFinder(GetRecoParam()->GetClusteringMode());
394   
395   if ( !clusterFinder ) return;
396   
397   AliInfo(Form("Will use %s for clusterizing",clusterFinder->ClassName()));
398   
399   fClusterServer = new AliMUONSimpleClusterServer(clusterFinder,*fTransformer);
400 }
401
402 //_____________________________________________________________________________
403 void
404 AliMUONReconstructor::CreateCalibrator() const
405 {
406   /// Create the calibrator
407   
408   AliCodeTimerAuto("")
409   
410   Int_t runNumber = AliCDBManager::Instance()->GetRun();
411
412   AliInfo("Calibration will occur.");
413   
414   fCalibrationData = new AliMUONCalibrationData(runNumber);
415   if ( !fCalibrationData->IsValid() )
416   {
417     AliError("Could not retrieve calibrations !");
418     delete fCalibrationData;
419     fCalibrationData = 0x0;
420     return;
421   }    
422   
423   // Check that we get all the calibrations we'll need
424   if ( !fCalibrationData->Pedestals() ||
425        !fCalibrationData->Gains() ||
426        !fCalibrationData->HV() )
427   {
428     AliFatal("Could not access all required calibration data");
429   }
430   
431   TString opt(GetOption());
432   opt.ToUpper();
433   
434   if ( strstr(opt,"NOSTATUSMAP") )
435   {
436     AliWarning("NOSTATUSMAP is obsolete");
437   }
438
439   TString calibMode = GetRecoParam()->GetCalibrationMode();
440
441   fDigitCalibrator = new AliMUONDigitCalibrator(*fCalibrationData,GetRecoParam(),calibMode.Data());
442 }
443
444 //_____________________________________________________________________________
445 AliMUONVDigitStore*
446 AliMUONReconstructor::DigitStore() const
447 {
448   /// Return (and create if necessary) the digit container
449   if (!fDigitStore) 
450   {
451     TString sopt(GetOption());
452     sopt.ToUpper();
453     
454     AliInfo(Form("Options=%s",sopt.Data()));
455     
456     if ( sopt.Contains("DIGITSTOREV1") )
457     {
458       fDigitStore = AliMUONVDigitStore::Create("AliMUONDigitStoreV1");
459     }
460     else if ( sopt.Contains("DIGITSTOREV2R") ) 
461     {
462       fDigitStore = AliMUONVDigitStore::Create("AliMUONDigitStoreV2R");
463     }
464     else if ( sopt.Contains("DIGITSTOREV2S") ) 
465     {
466       fDigitStore = AliMUONVDigitStore::Create("AliMUONDigitStoreV2S");
467     }
468     
469     if (!fDigitStore) fDigitStore = AliMUONVDigitStore::Create("AliMUONDigitStoreV2R");
470     
471     AliInfo(Form("Will use %s to store digits during reconstruction",fDigitStore->ClassName()));
472   }
473   return fDigitStore;
474 }
475
476 //_____________________________________________________________________________
477 void
478 AliMUONReconstructor::FillTreeR(AliMUONVTriggerStore* triggerStore,
479                                 TTree& clustersTree) const
480 {
481   /// Write the trigger and cluster information into TreeR
482   
483   AliCodeTimerAuto("")
484
485   AliDebug(1,"");
486   
487   Bool_t ok(kFALSE);
488   Bool_t alone(kTRUE); // is trigger the only info in TreeR ?
489   
490   if ( ! AliMUONReconstructor::GetRecoParam()->CombineClusterTrackReco() )
491   {
492     alone = kFALSE; // we'll get both tracker and trigger information in TreeR
493   }
494   
495   if ( triggerStore ) 
496   {
497     ok = triggerStore->Connect(clustersTree,alone);
498     if (!ok)
499     {
500       AliError("Could not create triggerStore branches in TreeR");
501     }
502   }
503
504   if ( !alone )
505   {
506     if (!fClusterStore)
507     {
508       fClusterStore = new AliMUONClusterStoreV2;
509     }
510     
511     CreateClusterServer();
512     
513     TIter next(DigitStore()->CreateIterator());
514     fClusterServer->UseDigits(next);
515
516     AliMpArea area;
517     
518     AliDebug(1,Form("Doing full clusterization in local reconstruction using %s ",fClusterServer->ClassName()));
519     
520     for ( Int_t i = 0; i < AliMpConstants::NofTrackingChambers(); ++i ) 
521     {
522       if (AliMUONReconstructor::GetRecoParam()->UseChamber(i))
523       {
524         if ( ( i == 6 || i == 7 )  && AliMUONReconstructor::GetRecoParam()->BypassSt4() ) continue;
525         if ( ( i == 8 || i == 9 )  && AliMUONReconstructor::GetRecoParam()->BypassSt5() ) continue;
526         
527         fClusterServer->Clusterize(i,*fClusterStore,area);
528       }
529     }
530     
531     Bool_t cok = fClusterStore->Connect(clustersTree,alone);
532     
533     if (!cok) AliError("Could not connect clusterStore to clusterTree");
534     
535     AliDebug(1,Form("Number of clusters found = %d",fClusterStore->GetSize()));
536     
537     StdoutToAliDebug(1,fClusterStore->Print());
538   }
539          
540   if (ok) // at least one type of branches created successfully
541   {
542     clustersTree.Fill();
543   }
544   
545   if (fClusterStore) fClusterStore->Clear();
546 }
547
548 //_____________________________________________________________________________
549 Bool_t 
550 AliMUONReconstructor::HasDigitConversion() const
551 {
552   /// We *do* have digit conversion, but we might advertise it only 
553   /// if we want to save the digits.
554   
555   TString opt(GetOption());
556   opt.ToUpper();
557   if ( opt.Contains("SAVEDIGITS" ) && !opt.Contains("NOLOCALRECONSTRUCTION") )
558   {
559     return kTRUE;
560   }
561   else
562   {
563     return kFALSE;
564   }
565 }
566
567 //_____________________________________________________________________________
568 void 
569 AliMUONReconstructor::Reconstruct(AliRawReader* rawReader, TTree* clustersTree) const
570 {
571   /// This method is called by AliReconstruction if HasLocalReconstruction()==kTRUE AND
572   /// HasDigitConversion()==kFALSE
573   
574   if ( !clustersTree ) 
575   {
576     AliError("clustersTree is 0x0 !");
577     return;
578   }
579   
580   ConvertDigits(rawReader,DigitStore(),TriggerStore());
581
582   FillTreeR(TriggerStore(),*clustersTree);
583 }
584
585 //_____________________________________________________________________________
586 void 
587 AliMUONReconstructor::Reconstruct(TTree* digitsTree, TTree* clustersTree) const
588 {
589   /// This method is called by AliReconstruction if HasLocalReconstruction()==kTRUE
590   /// AND HasDigitConversion()==kTRUE
591   
592   AliCodeTimerAuto("")
593   
594   AliDebug(1,"");
595   
596   if (!digitsTree || !clustersTree) 
597   {
598     AliError(Form("Tree is null : digitsTree=%p clustersTree=%p",
599                   digitsTree,clustersTree));
600     return;
601   }
602
603   if (!fDigitStore)
604   {
605     fDigitStore = AliMUONVDigitStore::Create(*digitsTree);
606     if (!fDigitStore)
607     {
608       AliError(Form("Could not get DigitStore from %s",digitsTree->GetName()));
609     }
610     else
611     {
612       AliInfo(Form("Created %s from %s",fDigitStore->ClassName(),digitsTree->GetName()));
613     }
614   }
615   if (!fTriggerStore)
616   {
617     fTriggerStore = AliMUONVTriggerStore::Create(*digitsTree);
618     if (!fTriggerStore)
619     {
620       AliError(Form("Could not get TriggerStore from %s",digitsTree->GetName()));
621     }
622     else
623     {
624       AliInfo(Form("Created %s from %s",fTriggerStore->ClassName(),digitsTree->GetName()));
625     }
626   }
627   
628   if (!fTriggerStore && !fDigitStore)
629   {
630     AliError("No store at all. Nothing to do.");
631     return;
632   }
633   
634   // insure we start with empty stores
635   if ( fDigitStore ) 
636   {
637     fDigitStore->Clear(); 
638     Bool_t alone = ( fTriggerStore ? kFALSE : kTRUE );
639     Bool_t ok = fDigitStore->Connect(*digitsTree,alone);
640     if (!ok)
641     {
642       AliError("Could not connect digitStore to digitsTree");
643       return;
644     }
645   }
646   if ( fTriggerStore ) 
647   {
648     fTriggerStore->Clear();
649     Bool_t alone = ( fDigitStore ? kFALSE : kTRUE );
650     Bool_t ok = fTriggerStore->Connect(*digitsTree,alone);
651     if (!ok)
652     {
653       AliError("Could not connect triggerStore to digitsTree");
654       return;
655     }
656   }
657   
658   digitsTree->GetEvent(0);
659   
660   if ( fDigitStore ) 
661   {
662     // Insure we got calibrated digits (if we reconstruct from pure simulated,
663     // i.e. w/o going through raw data, this will be the case)
664     TIter next(fDigitStore->CreateIterator());
665     AliMUONVDigit* digit = static_cast<AliMUONVDigit*>(next());
666     if (digit && !digit->IsCalibrated())
667     {
668       Calibrate(*fDigitStore);
669     }
670   }
671     
672   FillTreeR(fTriggerStore,*clustersTree);
673 }
674
675 //_____________________________________________________________________________
676 AliMUONVTriggerStore*
677 AliMUONReconstructor::TriggerStore() const
678 {
679   /// Return (and create if necessary and allowed) the trigger container
680   TString sopt(GetOption());
681   sopt.ToUpper();
682   
683   if (sopt.Contains("TRIGGERDISABLE"))
684   {
685     delete fTriggerStore;
686     fTriggerStore = 0x0;
687   }
688   else
689   {
690     if (!fTriggerStore)
691     {
692       fTriggerStore = new AliMUONTriggerStoreV1;
693     }
694   }
695   return fTriggerStore;
696 }