]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG3/vertexingHF/AliAODHFUtil.cxx
Coverity
[u/mrichter/AliRoot.git] / PWG3 / vertexingHF / AliAODHFUtil.cxx
CommitLineData
4569a83a 1/**************************************************************************
2 * Copyright(c) 1998-2011, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * *
5 * Author: The ALICE Off-line Project. *
6 * Contributors are mentioned in the code where appropriate. *
7 *
8 * Permission to use, copy, modify and distribute this software and its *
9 * documentation strictly for non-commercial purposes is hereby granted *
10 * without fee, provided that the above copyright notice appears in all *
11 * copies and that both the copyright notice and this permission notice *
12 * appear in the supporting documentation. The authors make no claims *
13 * about the suitability of this software for any purpose. It is *
14 * provided "as is" without express or implied warranty. *
15 * *************************************************************************/
16
27de2dfb 17/* $Id$ */
18
4569a83a 19//***********************************************************
20// Class AliAODHFUtil
21// class for enabling access to data not available for the moment in AODs
22// Author: Carlos Perez
23//***********************************************************
24#include "AliAODHFUtil.h"
25
26
27ClassImp(AliAODHFUtil)
28
29//------------------------------
30AliAODHFUtil::AliAODHFUtil():
31 TNamed()
32{
33 // default ctor
34 for(int i=0; i!=64; ++i)
35 fVZERO[i] = 0.0;
36}
37
38//------------------------------
39AliAODHFUtil::AliAODHFUtil(const char* pName):
40 TNamed(pName, "")
41{
42 // standard ctor
43 for(int i=0; i!=64; ++i)
44 fVZERO[i] = 0.0;
45}
46//----------------------
47AliAODHFUtil::~AliAODHFUtil()
48{
49 // default dtor
50}
51//------------------------
52AliAODHFUtil::AliAODHFUtil(const AliAODHFUtil& pCopy) :
53 TNamed(pCopy)
54{
55 // copy ctor
56 for(int i=0; i!=64; ++i)
57 fVZERO[i] = pCopy.fVZERO[i];
58}
59//----------------------
60void AliAODHFUtil::SetVZERO(Float_t *pVzero) {
61 // set VZERO channel
62 for(int i=0; i!=64; ++i)
63 fVZERO[i] = pVzero[i];
64}
65//---------------------------
66Float_t AliAODHFUtil::GetVZEROChannel(Int_t pCh) const {
67 // get VZERO channel
68 return fVZERO[pCh];
69}
70