--- /dev/null
+/**************************************************************************
+ * 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
+ //
+}
--- /dev/null
+#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 ¶m);
+
+ ClassDef(AliVZERORecoParam,1) // VZERO reco parameters
+};
+
+#endif
--- /dev/null
+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;
+}
#pragma link C++ class AliVZEROQADataMakerRec+;
#pragma link C++ class AliVZEROTrigger+;
#pragma link C++ class AliVZEROTriggerMask+;
+#pragma link C++ class AliVZERORecoParam+;
#endif
AliVZERORawStream.cxx \
AliVZEROQADataMakerRec.cxx \
AliVZEROTrigger.cxx \
- AliVZEROTriggerMask.cxx
+ AliVZEROTriggerMask.cxx \
+ AliVZERORecoParam.cxx
HDRS:= $(SRCS:.cxx=.h)