Added new class to store ZDC timing cut window and other trigger analysis configurati...
authormfloris <mfloris@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Apr 2011 14:56:58 +0000 (14:56 +0000)
committermfloris <mfloris@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Apr 2011 14:56:58 +0000 (14:56 +0000)
OADB/AliOADBTriggerAnalysis.cxx [new file with mode: 0644]
OADB/AliOADBTriggerAnalysis.h [new file with mode: 0644]
OADB/CMakelibOADB.pkg
OADB/COMMON/PHYSICSSELECTION/data/physicsSelection.root
OADB/OADBLinkDef.h

diff --git a/OADB/AliOADBTriggerAnalysis.cxx b/OADB/AliOADBTriggerAnalysis.cxx
new file mode 100644 (file)
index 0000000..7d4242c
--- /dev/null
@@ -0,0 +1,93 @@
+//-------------------------------------------------------------------------
+//     OADB container for trigger analysis configuration (cut ranges.. ...)
+//     Author: Michele Floris, CERN
+//-------------------------------------------------------------------------
+
+#include "AliOADBTriggerAnalysis.h"
+#include "AliLog.h"
+#include "TBrowser.h"
+#include "TFolder.h"
+#include <iostream>
+
+using namespace std;
+
+ClassImp(AliOADBTriggerAnalysis)
+
+AliOADBTriggerAnalysis::AliOADBTriggerAnalysis() : TNamed("AliOADBTriggerAnalysis", "OADB object storing trigger analysis settings"),   
+  fZDCCutRefSumCorr(-65.5),
+  fZDCCutRefDeltaCorr(-2.1),
+  fZDCCutSigmaSumCorr(6.0),
+  fZDCCutSigmaDeltaCorr(1.2)
+{
+  // default ctor
+
+  
+}
+AliOADBTriggerAnalysis::AliOADBTriggerAnalysis(char* name) : TNamed(name, "OADB object storing trigger analysis settings"), 
+  fZDCCutRefSumCorr(-65.5),
+  fZDCCutRefDeltaCorr(-2.1),
+  fZDCCutSigmaSumCorr(6.0),
+  fZDCCutSigmaDeltaCorr(1.2)
+{
+  // ctor
+  // Init();
+}
+
+// void AliOADBTriggerAnalysis::Init() {
+//   // initialize pointers
+  
+  
+
+// }
+
+AliOADBTriggerAnalysis::~AliOADBTriggerAnalysis(){
+  // dtor
+
+}
+  
+void AliOADBTriggerAnalysis::Browse(TBrowser *b)
+{
+   // Browse this object.
+   // If b=0, there is no Browse call TObject::Browse(0) instead.
+   //         This means TObject::Inspect() will be invoked indirectly
+
+
+  static TObjString * strZDCCutRefSumCorr     =0;    
+  static TObjString * strZDCCutRefDeltaCorr   =0;  
+  static TObjString * strZDCCutSigmaSumCorr   =0;  
+  static TObjString * strZDCCutSigmaDeltaCorr =0;
+
+  if(strZDCCutRefSumCorr     ) delete strZDCCutRefSumCorr     ;
+  if(strZDCCutRefDeltaCorr   ) delete strZDCCutRefDeltaCorr   ;
+  if(strZDCCutSigmaSumCorr   ) delete strZDCCutSigmaSumCorr   ;
+  if(strZDCCutSigmaDeltaCorr ) delete strZDCCutSigmaDeltaCorr ;
+  
+  strZDCCutRefSumCorr     = new TObjString(Form("ZDCCutRefSumCorr     %f", fZDCCutRefSumCorr    )); 
+  strZDCCutRefDeltaCorr   = new TObjString(Form("ZDCCutRefDeltaCorr   %f", fZDCCutRefDeltaCorr  )); 
+  strZDCCutSigmaSumCorr   = new TObjString(Form("ZDCCutSigmaSumCorr   %f", fZDCCutSigmaSumCorr  )); 
+  strZDCCutSigmaDeltaCorr = new TObjString(Form("ZDCCutSigmaDeltaCorr %f", fZDCCutSigmaDeltaCorr)); 
+
+
+
+  if (b) {
+    // Creates a folder for each beam type containing the list of corresponding bx ids
+    b->Add(strZDCCutRefSumCorr    );
+    b->Add(strZDCCutRefDeltaCorr  );
+    b->Add(strZDCCutSigmaSumCorr  );
+    b->Add(strZDCCutSigmaDeltaCorr);
+  }     
+  else
+    TObject::Browse(b);
+}
+
+void AliOADBTriggerAnalysis::Print(Option_t* option) const {
+  // Print Class contents
+  // Option is passed to TMap::Print
+  cout << "ZDC configuration" << endl;
+  cout << " - ZDCCutRefSumCorr     "<< fZDCCutRefSumCorr     << endl;
+  cout << " - ZDCCutRefDeltaCorr   "<< fZDCCutRefDeltaCorr   << endl;
+  cout << " - ZDCCutSigmaSumCorr   "<< fZDCCutSigmaSumCorr   << endl;
+  cout << " - ZDCCutSigmaDeltaCorr "<< fZDCCutSigmaDeltaCorr << endl;
+  
+
+}
diff --git a/OADB/AliOADBTriggerAnalysis.h b/OADB/AliOADBTriggerAnalysis.h
new file mode 100644 (file)
index 0000000..f09df77
--- /dev/null
@@ -0,0 +1,54 @@
+#ifndef AliOADBTriggerAnalysis_H
+#define AliOADBTriggerAnalysis_H
+/* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
+
+//-------------------------------------------------------------------------
+//     OADB container for filling scheme information (BX ids, name ...)
+//     Author: Michele Floris, CERN
+//-------------------------------------------------------------------------
+
+#include <TNamed.h>
+#include "TMap.h"
+#include "TObjString.h"
+
+
+class AliOADBTriggerAnalysis : public TNamed {
+
+ public :
+  AliOADBTriggerAnalysis();
+  AliOADBTriggerAnalysis(char* name);
+  virtual ~AliOADBTriggerAnalysis();
+  //  void Init();
+  
+  // Getters
+  Float_t GetZDCCutRefSumCorr()     { return fZDCCutRefSumCorr;     }      
+  Float_t GetZDCCutRefDeltaCorr()   { return fZDCCutRefDeltaCorr;   }   
+  Float_t GetZDCCutSigmaSumCorr()   { return fZDCCutSigmaSumCorr;   }   
+  Float_t GetZDCCutSigmaDeltaCorr() { return fZDCCutSigmaDeltaCorr; }  
+  // Setters
+  void SetZDCCorrParameters(Float_t sumCorr, Float_t deltaCorr, Float_t sigmaSumCorr, Float_t sigmaDeltaCorr) 
+  { fZDCCutRefSumCorr = sumCorr; fZDCCutRefDeltaCorr = deltaCorr; fZDCCutSigmaSumCorr = sigmaSumCorr; fZDCCutSigmaDeltaCorr = sigmaDeltaCorr;}
+  // Browse
+  virtual Bool_t       IsFolder() const { return kTRUE; }
+  void Browse(TBrowser *b);
+  // Print
+  virtual void Print(Option_t* option = "") const;
+
+ private :
+
+  Float_t fZDCCutRefSumCorr;      // Corrected ZDC time cut configuration
+  Float_t fZDCCutRefDeltaCorr;    // Corrected ZDC time cut configuration
+  Float_t fZDCCutSigmaSumCorr;    // Corrected ZDC time cut configuration
+  Float_t fZDCCutSigmaDeltaCorr;  // Corrected ZDC time cut configuration  
+
+  AliOADBTriggerAnalysis(const AliOADBTriggerAnalysis& cont);  // not implemented
+  AliOADBTriggerAnalysis& operator=(const AliOADBTriggerAnalysis& cont); // not implemented
+
+
+  ClassDef(AliOADBTriggerAnalysis, 1);
+};
+
+#endif
index 61d46dfededbfc88f4d8f168b5795fd72b5fc1c2..62acafc39c542c9b9cda3590a6cae371bf6a17f6 100644 (file)
@@ -1,5 +1,5 @@
 #-*- Mode: CMake -*-
-set ( SRCS  AliOADBContainer.cxx AliOADBCentrality.cxx  AliOADBPWG2Spectra.cxx AliOADBPhysicsSelection.cxx AliOADBFillingScheme.cxx)
+set ( SRCS  AliOADBContainer.cxx AliOADBCentrality.cxx  AliOADBPWG2Spectra.cxx AliOADBPhysicsSelection.cxx AliOADBFillingScheme.cxx AliOADBTriggerAnalysis.cxx )
 
 string(REPLACE ".cxx" ".h" HDRS  "${SRCS}")
 
index b749f09b24f60c72bf5395e50a04a358cb3985d5..beea3aa9da939932be086fb983b935fb28314e02 100644 (file)
Binary files a/OADB/COMMON/PHYSICSSELECTION/data/physicsSelection.root and b/OADB/COMMON/PHYSICSSELECTION/data/physicsSelection.root differ
index 6e4e3026e1c5ad54caafa776a8825ea8e30b2164..02fb20f9c4b13084a15d97c7d028f64fc89094d7 100644 (file)
@@ -14,5 +14,6 @@
 #pragma link C++ class AliOADBPhysicsSelection+;
 #pragma link C++ class AliOADBFillingScheme+;
 #pragma link C++ class AliOADBPWG2Spectra+;
+#pragma link C++ class AliOADBTriggerAnalysis+;
 
 #endif