X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSresponseSSD.cxx;h=d6b585a244bf2bb81cdc0e61800817c25fec140b;hb=5480bfd1e28124804b010ba11709f6d8c5bd5346;hp=3efc68c9385554479671bdbb4e1e4fbad5d3fa47;hpb=569a17d829e0c3d9031d446a23148d3c24edb6eb;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSresponseSSD.cxx b/ITS/AliITSresponseSSD.cxx index 3efc68c9385..d6b585a244b 100644 --- a/ITS/AliITSresponseSSD.cxx +++ b/ITS/AliITSresponseSSD.cxx @@ -36,28 +36,46 @@ const Int_t AliITSresponseSSD::fgkZSThreshold = 3; ClassImp(AliITSresponseSSD) //______________________________________________________________________ -AliITSresponseSSD::AliITSresponseSSD():AliITSresponse(){ +AliITSresponseSSD::AliITSresponseSSD():AliITSresponse(), +fADCpereV(0), +fKeVperADC(0), +fCouplingPR(0), +fCouplingPL(0), +fCouplingNR(0), +fCouplingNL(9), +fZSThreshold(0), +fOption1(), +fOption2(){ // Default Constructor SetDiffCoeff(fgkDiffCoeffDefault,0.); SetParamOptions(fgkOption1Default.Data(),fgkOption2Default.Data()); SetADCpereV(); + SetKeVperADC(); SetCouplings(fgkfCouplingPR,fgkfCouplingPL,fgkfCouplingNR,fgkfCouplingNL); SetZSThreshold(fgkZSThreshold); } //______________________________________________________________________ -AliITSresponseSSD::AliITSresponseSSD(const AliITSresponseSSD &ob) : AliITSresponse(ob) { +AliITSresponseSSD::AliITSresponseSSD(const AliITSresponseSSD &ob) : AliITSresponse(ob), +fADCpereV(ob.fADCpereV), +fKeVperADC(ob.fKeVperADC), +fCouplingPR(ob.fCouplingPR), +fCouplingPL(ob.fCouplingPL), +fCouplingNR(ob.fCouplingNR), +fCouplingNL(ob.fCouplingNL), +fZSThreshold(ob.fZSThreshold), +fOption1(ob.fOption1), +fOption2(ob.fOption2) { // Copy constructor - // Copies are not allowed. The method is protected to avoid misuse. - Error("AliITSresponseSSD","Copy constructor not allowed\n"); + } //______________________________________________________________________ -AliITSresponseSSD& AliITSresponseSSD::operator=(const AliITSresponseSSD& /* ob */){ +AliITSresponseSSD& AliITSresponseSSD::operator=(const AliITSresponseSSD& ob){ // Assignment operator - // Assignment is not allowed. The method is protected to avoid misuse. - Error("= operator","Assignment operator not allowed\n"); + this->~AliITSresponseSSD(); + new(this) AliITSresponseSSD(ob); return *this; }