]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Introduction of the reconstruction parameters for VZERO. For the moment the reconstru...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Oct 2009 16:53:22 +0000 (16:53 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Oct 2009 16:53:22 +0000 (16:53 +0000)
OCDB/VZERO/Calib/RecoParam/Run0_999999999_v0_s0.root [new file with mode: 0644]
VZERO/AliVZERORecoParam.cxx [new file with mode: 0644]
VZERO/AliVZERORecoParam.h [new file with mode: 0644]
VZERO/MakeVZERORecoParam.C [new file with mode: 0644]
VZERO/VZEROrecLinkDef.h
VZERO/libVZEROrec.pkg

diff --git a/OCDB/VZERO/Calib/RecoParam/Run0_999999999_v0_s0.root b/OCDB/VZERO/Calib/RecoParam/Run0_999999999_v0_s0.root
new file mode 100644 (file)
index 0000000..b76a87a
Binary files /dev/null and b/OCDB/VZERO/Calib/RecoParam/Run0_999999999_v0_s0.root differ
diff --git a/VZERO/AliVZERORecoParam.cxx b/VZERO/AliVZERORecoParam.cxx
new file mode 100644 (file)
index 0000000..8f9c54f
--- /dev/null
@@ -0,0 +1,45 @@
+/**************************************************************************
+ * Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+#include "AliVZERORecoParam.h"
+
+///////////////////////////////////////////////////////////////////////////////
+//                                                                           //
+// Class with VZERO reconstruction parameters                                //
+// Origin: Brigitte Cheynis                                                  //
+//                                                                           //
+///////////////////////////////////////////////////////////////////////////////
+
+
+
+ClassImp(AliVZERORecoParam)
+
+//_____________________________________________________________________________
+AliVZERORecoParam::AliVZERORecoParam() : AliDetectorRecoParam()
+{
+  //
+  // constructor
+  //
+  SetName("VZERO");
+  SetTitle("VZERO");
+}
+
+//_____________________________________________________________________________
+AliVZERORecoParam::~AliVZERORecoParam() 
+{
+  //
+  // destructor
+  //  
+}
diff --git a/VZERO/AliVZERORecoParam.h b/VZERO/AliVZERORecoParam.h
new file mode 100644 (file)
index 0000000..cb1e284
--- /dev/null
@@ -0,0 +1,29 @@
+#ifndef ALIVZERORECOPARAM_H
+#define ALIVZERORECOPARAM_H
+/* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+///////////////////////////////////////////////////////////////////////////////
+//                                                                           //
+// Class with VZERO reconstruction parameters                                //
+// Origin: Brigitte Cheynis                                                  //
+//                                                                           //
+///////////////////////////////////////////////////////////////////////////////
+
+#include "AliDetectorRecoParam.h"
+
+class AliVZERORecoParam : public AliDetectorRecoParam
+{
+ public: 
+  AliVZERORecoParam();
+  virtual ~AliVZERORecoParam();
+
+ private:
+
+  AliVZERORecoParam(const AliVZERORecoParam & param);
+  AliVZERORecoParam & operator=(const AliVZERORecoParam &param);
+
+  ClassDef(AliVZERORecoParam,1) // VZERO reco parameters
+};
+
+#endif
diff --git a/VZERO/MakeVZERORecoParam.C b/VZERO/MakeVZERORecoParam.C
new file mode 100644 (file)
index 0000000..42b37c1
--- /dev/null
@@ -0,0 +1,60 @@
+void MakeVZERORecoParam(AliRecoParam::EventSpecie_t default=AliRecoParam::kLowMult) {
+//========================================================================
+//
+// Steering macro for VZERO reconstruction parameters
+//
+// Author: Brigitte Cheynis
+//
+//========================================================================
+
+  const char* macroname = "MakeVZERORecoParam.C";
+
+  // Activate CDB storage and load geometry from CDB
+  AliCDBManager* cdb = AliCDBManager::Instance();
+  if(!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("local://OCDB");
+  
+  TObjArray *recoParamArray = new TObjArray();
+
+  {
+    AliVZERORecoParam * vzeroRecoParam = new AliVZERORecoParam;
+    vzeroRecoParam->SetEventSpecie(AliRecoParam::kCosmic);
+    recoParamArray->AddLast(vzeroRecoParam);
+  }
+  {
+    AliVZERORecoParam * vzeroRecoParam = new AliVZERORecoParam;
+    vzeroRecoParam->SetEventSpecie(AliRecoParam::kLowMult);
+    recoParamArray->AddLast(vzeroRecoParam);
+  }
+  {
+    AliVZERORecoParam * vzeroRecoParam = new AliVZERORecoParam;
+    vzeroRecoParam->SetEventSpecie(AliRecoParam::kHighMult);
+    recoParamArray->AddLast(vzeroRecoParam);
+  }
+
+  // Set the default
+  Bool_t defaultIsSet = kFALSE;
+  for(Int_t i =0; i < recoParamArray->GetEntriesFast(); i++) {
+    AliDetectorRecoParam *param = (AliDetectorRecoParam *)recoParamArray->UncheckedAt(i);
+    if (!param) continue;
+    if (default & param->GetEventSpecie()) {
+      param->SetAsDefault();
+      defaultIsSet = kTRUE;
+    }
+  }
+
+  if (!defaultIsSet) {
+    Error(macroname,"The default reconstruction parameters are not set! Exiting...");
+    return;
+  }
+
+  // save in CDB storage
+  AliCDBMetaData *md= new AliCDBMetaData();
+  md->SetResponsible("Brigitte Cheynis");
+  md->SetComment("Reconstruction parameters for VZERO");
+  md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
+  md->SetBeamPeriod(0);
+  AliCDBId id("VZERO/Calib/RecoParam",0,AliCDBRunRange::Infinity());
+  cdb->GetDefaultStorage()->Put(recoParamArray,id, md);
+
+  return;
+}
index c28e4a0340b0dd26bf962d60dd75bd769ce4e2eb..42343e738de3c862cb79a07b6cab02993d92a640 100755 (executable)
@@ -11,5 +11,6 @@
 #pragma link C++ class  AliVZEROQADataMakerRec+;
 #pragma link C++ class  AliVZEROTrigger+;
 #pragma link C++ class  AliVZEROTriggerMask+;
+#pragma link C++ class  AliVZERORecoParam+;
 
 #endif
index eb794b29491a196430a8f6d9e2aa062cbd98da6e..04addcf05205f2ff7d84dc64f369afb4491ece3a 100644 (file)
@@ -5,7 +5,8 @@ SRCS= AliVZEROReconstructor.cxx \
       AliVZERORawStream.cxx \
       AliVZEROQADataMakerRec.cxx \
       AliVZEROTrigger.cxx \
-      AliVZEROTriggerMask.cxx
+      AliVZEROTriggerMask.cxx \
+      AliVZERORecoParam.cxx
 
 HDRS:= $(SRCS:.cxx=.h)