Adding PiKP-only histograms and eliminating a number of switches where histograms...
[u/mrichter/AliRoot.git] / MUON / AliMUONGainEventGenerator.cxx
index 1b58fa5..abb9362 100644 (file)
@@ -17,6 +17,7 @@
 
 #include "AliMUONGainEventGenerator.h"
 
+//-----------------------------------------------------------------------------
 /// \class AliMUONGainEventGenerator
 ///
 /// Generate raw data files that mimics the one we'll get from the 
@@ -40,6 +41,7 @@
 /// the first step, to check that everything is OK in the whole procedure.
 ///
 /// \author Laurent Aphecetche
+//-----------------------------------------------------------------------------
 
 #include "AliMUONCalibrationData.h"
 #include "AliMUONVStore.h"
@@ -114,7 +116,7 @@ AliMUONGainEventGenerator::Exec(Option_t*)
     AliInfo(Form("Creating directory %s",dir.Data()));
     gSystem->MakeDirectory(dir.Data());
     gSystem->ChangeDirectory(dir.Data());
-    AliCodeTimerAuto(Form("generation of pedestal for run %d",runNumber));
+    AliCodeTimerAuto(Form("generation of pedestal for run %d",runNumber),0);
     TString pedfile;
     if ( fDateBaseFileName.Length() > 0 ) pedfile = Form("%s.%d",fDateBaseFileName.Data(),runNumber);
     AliMUONPedestalEventGenerator pgen(runNumber,fNofEventsPerFile,pedfile.Data());
@@ -133,7 +135,7 @@ AliMUONGainEventGenerator::GeneratePedestals(Int_t runNumber, Float_t injection)
   /// Generate "pedestal" values for a given run, by "decalibrating"
   /// charge injection
   
-  AliCodeTimerAuto(Form("Run %d injection %7.2f",runNumber,injection));
+  AliCodeTimerAuto(Form("Run %d injection %7.2f",runNumber,injection),0);
   TIter next(fSourceGains->CreateIterator());
   
   AliMUONVStore* generatedPedestals = fSourcePedestals->Create();
@@ -160,7 +162,7 @@ AliMUONGainEventGenerator::GeneratePedestals(Int_t runNumber, Float_t injection)
         // non existing channel
         continue;
       }
-      Int_t adc = AliMUONDigitizerV3::DecalibrateTrackerDigit(*ped,*gain,i,
+      Int_t adc = AliMUONDigitizerV3::DecalibrateTrackerDigit(*ped,gain,i,
                                                               injection,kFALSE);
 
       Float_t res = (ped->ValueAsFloat(i,1)/mean);
@@ -188,6 +190,6 @@ AliMUONGainEventGenerator::WriteToCDB(TObject* object, Int_t runNumber)
   md.SetResponsible("AliMUONGainEventGenerator");
   
   AliCDBManager* man = AliCDBManager::Instance();
-  man->SetDefaultStorage("local://$ALICE_ROOT/SHUTTLE/TestShuttle/TestCDB");
+  man->SetDefaultStorage("local://$ALICE_ROOT/OCDB/SHUTTLE/TestShuttle/TestCDB");
   man->Put(object,id,&md);
 }