]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
create the raw analyzer for TRU in the same place as for normal signal, set the algor...
authorgconesab <gustavo.conesa.balbastre@cern.ch>
Tue, 19 Aug 2014 13:54:33 +0000 (15:54 +0200)
committergconesab <gustavo.conesa.balbastre@cern.ch>
Tue, 19 Aug 2014 14:57:32 +0000 (16:57 +0200)
EMCAL/AliEMCALQADataMakerRec.cxx

index a81a776ab7938da1688195fe54f28dea0fbfc8c3..de7598e55e15c22f1bff0c8ad15749167d6c806c 100644 (file)
@@ -111,11 +111,6 @@ AliEMCALQADataMakerRec::AliEMCALQADataMakerRec(Int_t fitAlgo) :
 {
   // ctor
   SetFittingAlgorithm(fitAlgo);
-  
-  fRawAnalyzerTRU =  ( AliCaloRawAnalyzerKStandard*)AliCaloRawAnalyzerFactory::CreateAnalyzer(Algo::kFastFit);
-  
-  fRawAnalyzerTRU->SetFixTau(kTRUE); 
-  fRawAnalyzerTRU->SetTau(2.5); // default for TRU shaper
 
   fGeom = new AliEMCALGeometry("EMCAL_COMPLETE12SMV1_DCAL_8SM", "EMCAL");
 //  for (Int_t sm = 0 ; sm < fSuperModules ; sm++){
@@ -158,9 +153,6 @@ AliEMCALQADataMakerRec::AliEMCALQADataMakerRec(const AliEMCALQADataMakerRec& qad
   SetTitle((const char*)qadm.GetTitle()); 
   SetFittingAlgorithm(qadm.GetFittingAlgorithm());
   
-  fRawAnalyzerTRU = (AliCaloRawAnalyzerKStandard*)AliCaloRawAnalyzerFactory::CreateAnalyzer(Algo::kFastFit);
-  fRawAnalyzerTRU->SetFixTau(kTRUE); 
-  fRawAnalyzerTRU->SetTau(2.5); // default for TRU shaper
 //  for (Int_t sm = 0 ; sm < fSuperModules ; sm++){
 //    fTextSM[sm] = qadm.fTextSM[sm] ;
 //  }  
@@ -984,8 +976,12 @@ void AliEMCALQADataMakerRec::SetFittingAlgorithm(Int_t fitAlgo)
   //Set fitting algorithm and initialize it if this same algorithm was not set before.
 
   fRawAnalyzer =  AliCaloRawAnalyzerFactory::CreateAnalyzer(fitAlgo);
-  fFittingAlgorithm = fitAlgo; 
-
+  fFittingAlgorithm = fitAlgo;
+  
+  // Init also here the TRU algo, even if it is fixed type.
+  fRawAnalyzerTRU = (AliCaloRawAnalyzerKStandard*)AliCaloRawAnalyzerFactory::CreateAnalyzer(Algo::kFakeAltro);
+  fRawAnalyzerTRU->SetFixTau(kTRUE);
+  fRawAnalyzerTRU->SetTau(2.5); // default for TRU shaper
 }
 
 //_____________________________________________________________________________________