]>
Commit | Line | Data |
---|---|---|
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 | ||
27 | ClassImp(AliAODHFUtil) | |
28 | ||
29 | //------------------------------ | |
30 | AliAODHFUtil::AliAODHFUtil(): | |
31 | TNamed() | |
32 | { | |
33 | // default ctor | |
34 | for(int i=0; i!=64; ++i) | |
35 | fVZERO[i] = 0.0; | |
36 | } | |
37 | ||
38 | //------------------------------ | |
39 | AliAODHFUtil::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 | //---------------------- | |
47 | AliAODHFUtil::~AliAODHFUtil() | |
48 | { | |
49 | // default dtor | |
50 | } | |
51 | //------------------------ | |
52 | AliAODHFUtil::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 | //---------------------- | |
60 | void AliAODHFUtil::SetVZERO(Float_t *pVzero) { | |
61 | // set VZERO channel | |
62 | for(int i=0; i!=64; ++i) | |
63 | fVZERO[i] = pVzero[i]; | |
64 | } | |
65 | //--------------------------- | |
66 | Float_t AliAODHFUtil::GetVZEROChannel(Int_t pCh) const { | |
67 | // get VZERO channel | |
68 | return fVZERO[pCh]; | |
69 | } | |
70 |