Remove compiler warnings
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 20 Sep 2007 12:25:07 +0000 (12:25 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 20 Sep 2007 12:25:07 +0000 (12:25 +0000)
TRD/AliTRDPreprocessor.h
TRD/AliTRDSensorArray.cxx
TRD/AliTRDmcmSim.cxx
TRD/AliTRDmcmSim.h
TRD/AliTRDrawData.cxx

index 3adf1f3..b945806 100644 (file)
@@ -27,19 +27,20 @@ class AliTRDPreprocessor : public AliPreprocessor
  protected:
 
     virtual void   Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
-    virtual UInt_t Process(TMap* dcsAliasMap);
+    virtual UInt_t Process(TMap *dcsAliasMap);
 
     
     Bool_t  ExtractPedestals();
     Bool_t  ExtractDriftVelocityDAQ();
     Bool_t  ExtractHLT();
-    Bool_t  ProcessDCS(TMap*dcsAliasMap);
+    Bool_t  ProcessDCS() { return kFALSE; };
+    Bool_t  ProcessDCS(TMap *dcsAliasMap);
 
   private:
-    
 
     Bool_t  fVdriftHLT;             // HLT Vdrift
-    ClassDef(AliTRDPreprocessor,1) // The SHUTTLE preprocessor for TRD
+
+    ClassDef(AliTRDPreprocessor,1)  // The SHUTTLE preprocessor for TRD
 
 };
 
index 073e734..d24d902 100644 (file)
@@ -66,6 +66,7 @@ AliTRDSensorArray::AliTRDSensorArray (const char * amanda,
 
 //_____________________________________________________________________________
 AliTRDSensorArray::AliTRDSensorArray (const AliTRDSensorArray & source) :
+                                        AliDCSSensorArray(source),
                                        fAmanda         (source.fAmanda),
                                        fStoreName      (source.fStoreName)
                                        
index 3eee612..bdcda9d 100644 (file)
@@ -94,10 +94,36 @@ ClassImp(AliTRDmcmSim)
 //_____________________________________________________________________________
 AliTRDmcmSim::AliTRDmcmSim() :TObject()
   ,fInitialized(kFALSE)
+  ,fChaId(-1)
+  ,fSector(-1)
+  ,fStack(-1)
+  ,fLayer(-1)
+  ,fRobPos(-1)
+  ,fMcmPos(-1)
+  ,fNADC(-1)
+  ,fNTimeBin(-1)
+  ,fRow(-1)
+  ,fADCR(NULL)
+  ,fADCF(NULL)
+  ,fZSM(NULL)
+  ,fZSM1Dim(NULL)
   ,fFeeParam(NULL)
   ,fSimParam(NULL)
   ,fCal(NULL)
   ,fGeo(NULL)
+{
+  //
+  // AliTRDmcmSim default constructor
+  //
+
+  // By default, nothing is initialized.
+  // It is necessary to issue Init before use.
+}
+
+//_____________________________________________________________________________
+AliTRDmcmSim::AliTRDmcmSim(const AliTRDmcmSim &m) 
+  :TObject(m)
+  ,fInitialized(kFALSE)
   ,fChaId(-1)
   ,fSector(-1)
   ,fStack(-1)
@@ -111,9 +137,13 @@ AliTRDmcmSim::AliTRDmcmSim() :TObject()
   ,fADCF(NULL)
   ,fZSM(NULL)
   ,fZSM1Dim(NULL)
+  ,fFeeParam(NULL)
+  ,fSimParam(NULL)
+  ,fCal(NULL)
+  ,fGeo(NULL)
 {
   //
-  // AliTRDmcmSim default constructor
+  // AliTRDmcmSim copy constructor
   //
 
   // By default, nothing is initialized.
@@ -138,8 +168,52 @@ AliTRDmcmSim::~AliTRDmcmSim()
     delete [] fZSM1Dim;
   }
   delete fGeo;
+
+}
+
+//_____________________________________________________________________________
+AliTRDmcmSim &AliTRDmcmSim::operator=(const AliTRDmcmSim &m)
+{
+  //
+  // Assignment operator
+  //
+
+  if (this != &m) {
+    ((AliTRDmcmSim &) m).Copy(*this);
+  }
+  return *this;
+
+}
+
+//_____________________________________________________________________________
+void AliTRDmcmSim::Copy(TObject &m) const
+{
+  //
+  // Copy function
+  //
+
+  ((AliTRDmcmSim &) m).fInitialized   = 0;
+  ((AliTRDmcmSim &) m).fChaId         = 0;
+  ((AliTRDmcmSim &) m).fSector        = 0;
+  ((AliTRDmcmSim &) m).fStack         = 0;
+  ((AliTRDmcmSim &) m).fLayer         = 0;
+  ((AliTRDmcmSim &) m).fRobPos        = 0;
+  ((AliTRDmcmSim &) m).fMcmPos        = 0;
+  ((AliTRDmcmSim &) m).fNADC          = 0;
+  ((AliTRDmcmSim &) m).fNTimeBin      = 0;
+  ((AliTRDmcmSim &) m).fRow           = 0;
+  ((AliTRDmcmSim &) m).fADCR          = 0;
+  ((AliTRDmcmSim &) m).fADCF          = 0;
+  ((AliTRDmcmSim &) m).fZSM           = 0;
+  ((AliTRDmcmSim &) m).fZSM1Dim       = 0;
+  ((AliTRDmcmSim &) m).fFeeParam      = 0;
+  ((AliTRDmcmSim &) m).fSimParam      = 0;
+  ((AliTRDmcmSim &) m).fCal           = 0;
+  ((AliTRDmcmSim &) m).fGeo           = 0;
+
 }
 
+
 //_____________________________________________________________________________
 void AliTRDmcmSim::Init( Int_t cha_id, Int_t rob_pos, Int_t mcm_pos )
 {
@@ -355,7 +429,7 @@ void AliTRDmcmSim::FilterPedestal()
 
   Int_t ap = fSimParam->GetADCbaseline();      // ADC instrinsic pedestal
   Int_t ep = fFeeParam->GetPFeffectPedestal(); // effective pedestal
-  Int_t tc = fFeeParam->GetPFtimeConstant();   // this makes no sense yet
+  //Int_t tc = fFeeParam->GetPFtimeConstant();   // this makes no sense yet
 
   for( Int_t iadc = 0 ; iadc < fNADC; iadc++ ) {
     for( Int_t it = 0 ; it < fNTimeBin ; it++ ) {
index 44fd4b3..d81c1f2 100644 (file)
@@ -23,9 +23,11 @@ class AliTRDmcmSim : public TObject {
  public:
 
                     AliTRDmcmSim();
+                    AliTRDmcmSim(const AliTRDmcmSim &m);
   virtual          ~AliTRDmcmSim();
+  AliTRDmcmSim      &operator=(const AliTRDmcmSim &m);
 
-  //PH  virtual void      Copy(TObject &m) const;
+  virtual void      Copy(TObject &m) const;
 
           void      Init( Int_t cha, Int_t rob, Int_t mcm );   // Initialize MCM by the position parameters
           void      SetData(Int_t iadc, Int_t *adc);           // Set ADC data with array 
index 38f5e9b..7a6b13a 100644 (file)
@@ -422,7 +422,7 @@ Int_t AliTRDrawData::ProduceHcDataV3(AliTRDdataArrayI *digits, Int_t side
   Int_t        nCol = fGeo->GetColMax( plan );
   const Int_t nTBin = AliTRDcalibDB::Instance()->GetNumberOfTimeBins();
   Int_t      kCtype = 0;                       // Chamber type (0:C0, 1:C1)
-  Int_t         iEv = 0xA;                     // Event ID. Now fixed to 10, how do I get event id?
+  //Int_t         iEv = 0xA;                     // Event ID. Now fixed to 10, how do I get event id?
   UInt_t          x = 0;                       // General used number
   Int_t          rv = fFee->GetRAWversion();