From ed90abb857ace310f578f8cb26e5f2d00a33c14e Mon Sep 17 00:00:00 2001 From: cvetan Date: Mon, 19 Oct 2009 16:53:22 +0000 Subject: [PATCH] Introduction of the reconstruction parameters for VZERO. For the moment the reconstruction does not depend on any parameters, so the corresponding objects in OCDB are empty. --- .../Calib/RecoParam/Run0_999999999_v0_s0.root | Bin 0 -> 2602 bytes VZERO/AliVZERORecoParam.cxx | 45 +++++++++++++ VZERO/AliVZERORecoParam.h | 29 +++++++++ VZERO/MakeVZERORecoParam.C | 60 ++++++++++++++++++ VZERO/VZEROrecLinkDef.h | 1 + VZERO/libVZEROrec.pkg | 3 +- 6 files changed, 137 insertions(+), 1 deletion(-) create mode 100644 OCDB/VZERO/Calib/RecoParam/Run0_999999999_v0_s0.root create mode 100644 VZERO/AliVZERORecoParam.cxx create mode 100644 VZERO/AliVZERORecoParam.h create mode 100644 VZERO/MakeVZERORecoParam.C 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 index 0000000000000000000000000000000000000000..b76a87a688870c2f3cd0187f0e5f9f64a6fd4873 GIT binary patch literal 2602 zcmcImc{G%JAAiP}A<0%lLJcWnoyiiCn>`9+AB`+yjNJ?~B#L&)v?fr-tCwt}{c zNuvAUCdiUDHoxpKH_?ci>Zm~jQ)D_6MR~<$TX8+SIS5s~Yp1KEryGU|)zkHj?G=O7 zpC8peA*W_`y$Oiq<8((#e5VPMr5R&VLqe>_f6*d#0S)5^CWBWqt-niS{!=BAQt)fmrWh%yfOrJl!o zG82{L=?veWH@82JUP^y3Rh8q~PyU7oxLK%uP zlkq9eSN4?w@eWAeqN+Gg)L?&DkNat?^FhHG28(2xI_NE=m|Kdnut<&NU>U`XMxR-Q z#NGrVEchV?CV4)0RSJD4@=d-uyn|NWJdy&x)KKe%5S=aF`)h03`IKMq$T*As+5n|< zEZw4oYWtDX{dOld|(r?r>&IaQv516D}phk`%OoN$$e5^n|>^^h-J(C*aZYRfZ_ za*K#rq{Y{@uivbj6nEbAb$M{+c+=tQZvF|2h_^&y0%wR~E-32%y`%RTiq@p3ZV2yq z>Ywiw0{^sHBd#2*iCMPJ>Ap=IshVRvEe|gdnxYz zsq$#wNaAGdEY3m`UGB-cFEW-!rlQmaU{fjQk31+bEf zg{t`umn~#HHmKB<7c0E7ne=l15tq+Z7Y~aBRJaJIcba@JIIVk1U47YgT(EP!_0Ug8 zYa_QDu?Jd33Sp6fWnsCWM=jTzIyciZw=>T!oH^0EiJe}*!?7o=G(rlQ$pWMBdmNjpDtZ!_k?dfq!phj8?%v}8uNo@|QC>3|q zNxu_s87Xu&v%ccF$n*C5FR-1C>Egflp$m^NTGeO}N=clX?^g4J&!O3^{pb7(ae%zj z%6qRIWJ1z-={JcHW0vz+oM(z{Zw$UdE2n1AJ-R?_jyEQ8=%GYnZVd`}R`2 z9qa=|Y!TN|!!J2HQ#occK6Xe;=e1_Vq3}N1ZvrOd7LE)wl%m$u&_}7eHGp5*Ldi=F z;7XYYzZFBdnsRQeVA+9+9Nn3rS=6J@?nxBJSfg=oiQ0GNy3fpNeG|wvAxtGM#ARzW zc&ybu`DiQjadg+x-0G0vHQD#;iVv%q+zX{&hi^0zW)<#fNGzj?cP5bFU@6{>D4M(D wW;ddMgMD}0{38(sY`v2M{?}vxZo9I}lkaalcLEzY7XKNZAWJ@lP>mGeFAc6S^8f$< literal 0 HcmV?d00001 diff --git a/VZERO/AliVZERORecoParam.cxx b/VZERO/AliVZERORecoParam.cxx new file mode 100644 index 00000000000..8f9c54f592c --- /dev/null +++ b/VZERO/AliVZERORecoParam.cxx @@ -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 index 00000000000..cb1e2844d27 --- /dev/null +++ b/VZERO/AliVZERORecoParam.h @@ -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 ¶m); + + ClassDef(AliVZERORecoParam,1) // VZERO reco parameters +}; + +#endif diff --git a/VZERO/MakeVZERORecoParam.C b/VZERO/MakeVZERORecoParam.C new file mode 100644 index 00000000000..42b37c1ecf8 --- /dev/null +++ b/VZERO/MakeVZERORecoParam.C @@ -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; +} diff --git a/VZERO/VZEROrecLinkDef.h b/VZERO/VZEROrecLinkDef.h index c28e4a0340b..42343e738de 100755 --- a/VZERO/VZEROrecLinkDef.h +++ b/VZERO/VZEROrecLinkDef.h @@ -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 diff --git a/VZERO/libVZEROrec.pkg b/VZERO/libVZEROrec.pkg index eb794b29491..04addcf0520 100644 --- a/VZERO/libVZEROrec.pkg +++ b/VZERO/libVZEROrec.pkg @@ -5,7 +5,8 @@ SRCS= AliVZEROReconstructor.cxx \ AliVZERORawStream.cxx \ AliVZEROQADataMakerRec.cxx \ AliVZEROTrigger.cxx \ - AliVZEROTriggerMask.cxx + AliVZEROTriggerMask.cxx \ + AliVZERORecoParam.cxx HDRS:= $(SRCS:.cxx=.h) -- 2.43.0