]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PMD/AliPMDdigit.cxx
fix error message in case of raw db open failure.
[u/mrichter/AliRoot.git] / PMD / AliPMDdigit.cxx
CommitLineData
b9746a9e 1/***************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
baf230f7 15//-----------------------------------------------------//
16// //
17// Date : August 05 2003 //
18// //
19// Store digits for ALICE-PMD //
20// //
21//-----------------------------------------------------//
b9746a9e 22#include "Riostream.h"
23#include "Rtypes.h"
baf230f7 24#include "AliPMDdigit.h"
25#include <stdio.h>
26
27ClassImp(AliPMDdigit)
28
29AliPMDdigit::AliPMDdigit()
30{
b9746a9e 31 // Default Constructor
baf230f7 32 fTrNumber = 0;
33 fDet = 0;
34 fSMNumber = 0;
35 fCellNumber = 0;
36 fADC = 0.;
37}
38
39AliPMDdigit::AliPMDdigit(Int_t trnumber, Int_t det, Int_t smnumber,
40 Int_t cellnumber, Float_t adc)
41{
b9746a9e 42 // Constructor
baf230f7 43 fTrNumber = trnumber;
44 fDet = det;
45 fSMNumber = smnumber;
46 fCellNumber = cellnumber;
47 fADC = adc;
48}
b9746a9e 49AliPMDdigit::AliPMDdigit(const AliPMDdigit& pmddigit):TObject(pmddigit) {
50 //Copy Constructor
51 if(&pmddigit == this) return;
52 this->fTrNumber = pmddigit.fTrNumber;
53 this->fDet = pmddigit.fDet;
54 this->fSMNumber = pmddigit.fSMNumber;
55 this->fCellNumber = pmddigit.fCellNumber;
56 this->fADC = pmddigit.fADC;
57 return;
58}
59AliPMDdigit & AliPMDdigit::operator=(const AliPMDdigit& pmddigit) {
60 //Assignment operator
61 if(&pmddigit == this) return *this;
62 this->fTrNumber = pmddigit.fTrNumber;
63 this->fDet = pmddigit.fDet;
64 this->fSMNumber = pmddigit.fSMNumber;
65 this->fCellNumber = pmddigit.fCellNumber;
66 this->fADC = pmddigit.fADC;
67 return *this;
68}
baf230f7 69AliPMDdigit::~AliPMDdigit()
70{
b9746a9e 71 // Default destructor
baf230f7 72}
73Int_t AliPMDdigit::GetTrackNumber() const
74{
75 return fTrNumber;
76}
77Int_t AliPMDdigit::GetDetector() const
78{
79 return fDet;
80}
81Int_t AliPMDdigit::GetSMNumber() const
82{
83 return fSMNumber;
84}
85Int_t AliPMDdigit::GetCellNumber() const
86{
87 return fCellNumber;
88}
89Float_t AliPMDdigit::GetADC() const
90{
91 return fADC;
92}
93