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