new features and management of objects
authorhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Oct 2009 12:34:34 +0000 (12:34 +0000)
committerhdalsgaa <hdalsgaa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Oct 2009 12:34:34 +0000 (12:34 +0000)
PWG2/FORWARD/analysis/AliFMDAnaParameters.cxx
PWG2/FORWARD/analysis/AliFMDAnaParameters.h

index e3cc7f7..b6f2f69 100644 (file)
@@ -192,6 +192,65 @@ void AliFMDAnaParameters::InitEventSelectionEff() {
 }
 //____________________________________________________________________
 
+void AliFMDAnaParameters::PrintStatus() {
+  
+  TString energystring;
+  switch(fEnergy) {
+  case k900:
+    energystring.Form("900 GeV");   break;
+  case k7000:
+    energystring.Form("7000 GeV");  break;
+  case k10000:
+    energystring.Form("10000 GeV"); break;
+  case k14000:
+    energystring.Form("14000 GeV"); break;
+  default:
+    energystring.Form("invalid energy"); break;
+  }
+  TString triggerstring;
+  switch(fTrigger) {
+  case kMB1:
+    triggerstring.Form("Minimum bias 1");   break;
+  case kMB2:
+    triggerstring.Form("Minimum bias 2");   break;
+  case kSPDFASTOR:
+    triggerstring.Form("SPD FAST OR");   break;
+  case kNOCTP:
+    triggerstring.Form("NO TRIGGER TEST");   break;
+  default:
+    energystring.Form("invalid trigger"); break;
+  }
+  TString magstring;
+  switch(fMagField) {
+  case k5G:
+    magstring.Form("5 kGaus");   break;
+  case k0G:
+    magstring.Form("0 kGaus");   break;
+  default:
+    magstring.Form("invalid mag field"); break;
+  }
+  TString collsystemstring;
+  switch(fSpecies) {
+  case kPP:
+    collsystemstring.Form("p+p");   break;
+  case kPbPb:
+    collsystemstring.Form("Pb+Pb");   break;
+  default:
+    collsystemstring.Form("invalid collision system");   break;
+  }
+  
+
+  std::cout<<"Energy      = "<<energystring.Data()<<std::endl;
+  std::cout<<"Trigger     = "<<triggerstring.Data()<<std::endl;
+  std::cout<<"Mag Field   = "<<magstring.Data()<<std::endl;
+  std::cout<<"Coll System = "<<collsystemstring.Data()<<std::endl;
+  
+  
+  
+}
+
+//____________________________________________________________________
+
 void AliFMDAnaParameters::InitSharingEff() {
   
   //AliCDBEntry*   background = GetEntry(fgkBackgroundCorrection);
index abe0f98..0ca2242 100644 (file)
@@ -114,8 +114,9 @@ public:
   void     SetEnergy(Energy energy) {fEnergy = energy;}
   void     SetMagField(MagField magfield) {fMagField = magfield;}
   char*    GetPath(const char* species);
-
-
+  void     SetCollisionSystem(Species collsystem) {fSpecies = collsystem;}
+  void     PrintStatus();
+  
 protected:
   
   AliFMDAnaParameters();