]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Setting title to CTP cfg file.
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 May 2008 12:49:14 +0000 (12:49 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 May 2008 12:49:14 +0000 (12:49 +0000)
STEER/AliGRPPreprocessor.cxx
STEER/AliGRPPreprocessor.h

index cac57b14f9d8da8a9e3aaf723f48e264793ea0b3..50934dd9c3ccbfe42a7b6962cbe98e7a671914b5 100644 (file)
@@ -101,7 +101,7 @@ ClassImp(AliGRPPreprocessor)
 
 //_______________________________________________________________
 AliGRPPreprocessor::AliGRPPreprocessor(AliShuttleInterface* shuttle):
-  AliPreprocessor("GRP",shuttle), fPressure(0)
+       AliPreprocessor("GRP",shuttle), fRun(-1), fPressure(0)
 {
   // constructor - shuttle must be instantiated!
 
@@ -121,6 +121,7 @@ void AliGRPPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
 {
   // Initialize preprocessor
 
+  fRun = run;
   AliPreprocessor::Initialize(run, startTime, endTime);
 
   AliInfo("Initialization of the GRP preprocessor.");
@@ -196,6 +197,9 @@ UInt_t AliGRPPreprocessor::Process(TMap* valueMap)
       error |= 16;
     }
     else {
+      TString titleCTPcfg = Form("CTP cfg for run %i from DAQ",fRun);
+      runcfg->SetTitle(titleCTPcfg);
+      Log(Form("Title = %s", runcfg->GetTitle()));     
       AliCDBMetaData metaData;
       metaData.SetBeamPeriod(0);
       metaData.SetResponsible("Roman Lietava");
index 389749e38cda4005a57a59c2cd8c59b7818ad7dc..8dcada1287f65e57e24fff6912f9459c7ffd7854 100644 (file)
@@ -41,6 +41,8 @@ class AliGRPPreprocessor: public AliPreprocessor {
                                   const char* password,
                                   const char *cdbRoot
                                  );
+  Int_t GetRunNumber() const {return fRun;}
+  void SetRunNumber(Int_t runNumber) {fRun = runNumber;}
 
  protected:
 
@@ -60,13 +62,14 @@ class AliGRPPreprocessor: public AliPreprocessor {
   static const Int_t   fgknDCSDP;               //! number of dcs dps
   static const char*   fgkDCSDataPoints[];      //! names of dcs dps
   static const char*   fgkLHCState[];           //! names of LHC States
-  
+  Int_t fRun;                                   // run number
+
   AliDCSSensorArray*   fPressure; //pressure array
 
                        AliGRPPreprocessor(const AliGRPPreprocessor&); // Not implemented
                        AliGRPPreprocessor& operator=(const AliGRPPreprocessor&); // Not implemented
 
-  ClassDef(AliGRPPreprocessor, 1);
+  ClassDef(AliGRPPreprocessor, 2);
 };
 
 #endif