]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSresponseSSD.cxx
Updated temperature status bit (V. Pospisil)
[u/mrichter/AliRoot.git] / ITS / AliITSresponseSSD.cxx
index 3efc68c9385554479671bdbb4e1e4fbad5d3fa47..d6b585a244bf2bb81cdc0e61800817c25fec140b 100644 (file)
@@ -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;
 }