Coding Rules
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Aug 2009 12:37:07 +0000 (12:37 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Aug 2009 12:37:07 +0000 (12:37 +0000)
TRD/AliTRDSensorArray.cxx
TRD/AliTRDSensorArray.h

index c51d210..93cbad0 100644 (file)
 ClassImp(AliTRDSensorArray)
 
 //_____________________________________________________________________________
-AliTRDSensorArray::AliTRDSensorArray () :
-                                       AliDCSSensorArray (),
-                                       fAmanda (""),
-                                       fStoreName ("")
-                                       
+AliTRDSensorArray::AliTRDSensorArray() 
+  :AliDCSSensorArray()
+  ,fAmanda("")
+  ,fStoreName("")                                      
 {
-       //default constructor
+  //
+  // Default constructor
+  //
        
 }
 
-
-
 //_____________________________________________________________________________
-AliTRDSensorArray::AliTRDSensorArray (const char * amanda, 
-                                     const char * storeName, 
-                                     Float_t /*diffCut*/,
-                                     TClonesArray * trdSensor) :
-                                       AliDCSSensorArray (),
-                                       fAmanda         (amanda),
-                                       fStoreName      (storeName)
-                                       
+AliTRDSensorArray::AliTRDSensorArray(const char *amanda 
+                                  , const char *storeName
+                                  , Float_t /*diffCut*/
+                                  , TClonesArray * const trdSensor) 
+  :AliDCSSensorArray()
+  ,fAmanda(amanda)
+  ,fStoreName(storeName)                               
 {
-       //constructor set fMinGraph to 0, fValCut to 0, fDiffCut to 0
+  //
+  // Constructor set fMinGraph to 0, fValCut to 0, fDiffCut to 0
+  //
+
        fSensors        = trdSensor;
        fMinGraph       = 0;
        fValCut         = -1;
@@ -79,22 +80,24 @@ AliTRDSensorArray::AliTRDSensorArray (const char * amanda,
 }
 
 //_____________________________________________________________________________
-AliTRDSensorArray::AliTRDSensorArray (const AliTRDSensorArray & source) :
-                                        AliDCSSensorArray(source),
-                                       fAmanda         (source.fAmanda),
-                                       fStoreName      (source.fStoreName)
-                                       
+AliTRDSensorArray::AliTRDSensorArray(const AliTRDSensorArray & source) 
+  :AliDCSSensorArray(source)
+  ,fAmanda(source.fAmanda)
+  ,fStoreName(source.fStoreName)                               
 {
-       // copy constructor
+  //
+  // Copy constructor
+  //
+
        fSensors        = source.fSensors;
        fMinGraph       = 0;
        fValCut         = -1;
        fDiffCut        = -1;
+
 }
        
-
 //_____________________________________________________________________________
-AliTRDSensorArray:: ~AliTRDSensorArray ()
+AliTRDSensorArray::~AliTRDSensorArray()
 {
   //
   // Destructor
@@ -103,7 +106,7 @@ AliTRDSensorArray:: ~AliTRDSensorArray ()
 }
 
 //_____________________________________________________________________________                
-AliTRDSensorArray & AliTRDSensorArray::operator=(const AliTRDSensorArray & source)
+AliTRDSensorArray &AliTRDSensorArray::operator=(const AliTRDSensorArray &source)
 {
   //
   // Assignment operator
@@ -116,10 +119,12 @@ AliTRDSensorArray & AliTRDSensorArray::operator=(const AliTRDSensorArray & sourc
 }
 
 //_____________________________________________________________________________
-TObjArray *  AliTRDSensorArray::GetList () 
+TObjArray *AliTRDSensorArray::GetList() 
 {
-       // return TObjArray with a list of AliTRDSensorArray corresponding to each
-       // group of sensor 
+  //
+  // Return TObjArray with a list of AliTRDSensorArray corresponding to each
+  // group of sensor 
+  //
        
        TObjArray * list = new TObjArray (20);
        list->SetOwner (kTRUE);
@@ -206,22 +211,30 @@ TObjArray *  AliTRDSensorArray::GetList ()
 //_____________________________________________________________________________
 TMap* AliTRDSensorArray::ExtractDCS(TMap *dcsMap)
 {
-       //Return Tmap with TGraph inside corresponding to values in dcsMap
-       return AliDCSSensorArray::ExtractDCS (dcsMap);
+  //
+  // Return Tmap with TGraph inside corresponding to values in dcsMap
+  //
+
+       return AliDCSSensorArray::ExtractDCS(dcsMap);
 }
 
 //_____________________________________________________________________________
-void AliTRDSensorArray::SetGraph (TMap * map)
+void AliTRDSensorArray::SetGraph(TMap *map)
 {
-       // assigne list of TGraph to the current instance
-       AliDCSSensorArray::SetGraph (map);
-}
+  //
+  // Assign list of TGraph to the current instance
+  //
 
+       AliDCSSensorArray::SetGraph(map);
+}
 
 //_____________________________________________________________________________
-Int_t AliTRDSensorArray::GetNGraph () const
+Int_t AliTRDSensorArray::GetNGraph() const
 {
-       // return the number of TGraph
+  //
+  // Return the number of TGraph
+  //
+
        Int_t nGraph = 0;
        Int_t nsensors = fSensors->GetEntries();
        
index 65f0bcd..b42c70f 100644 (file)
@@ -12,7 +12,6 @@
 //                                                                        //
 ////////////////////////////////////////////////////////////////////////////
 
-
 #include <TString.h>
 
 class TObjArray;
@@ -21,32 +20,31 @@ class TMap;
 
 #include "AliDCSSensorArray.h"
 
-
 //_____________________________________________________________________________
 class AliTRDSensorArray : public AliDCSSensorArray
 {
 
        public :
-               AliTRDSensorArray ();
-               AliTRDSensorArray (const char * amanda, 
-                                                  const char * storeName,
-                                  Float_t /*diffCut*/,
-                                                  TClonesArray * trdSensor); 
-               
+
+               AliTRDSensorArray();
+               AliTRDSensorArray(const char * amanda
+                               , const char * storeName
+                                , Float_t /*diffCut*/
+                               , TClonesArray * const trdSensor); 
                
-               AliTRDSensorArray (const AliTRDSensorArray & source);
-               virtual ~AliTRDSensorArray ();
+               AliTRDSensorArray(const AliTRDSensorArray & source);
+               virtual ~AliTRDSensorArray();
                AliTRDSensorArray & operator=(const AliTRDSensorArray & source);
                
-               static TObjArray *      GetList                         ();
-               TString                         GetStoreName            () const {return fStoreName;}
-               TMap *                          ExtractDCS                      (TMap * dcsMap);
-               void                            SetGraph                        (TMap * map);
-               Int_t                           GetNGraph                       () const;
+               static TObjArray *GetList();
+               TString           GetStoreName() const           { return fStoreName; }
+               TMap             *ExtractDCS(TMap * dcsMap);
+               void              SetGraph(TMap * map);
+               Int_t             GetNGraph( ) const;
                
        private :
                
-               TString         fAmanda;                // amanda string dcsDatapointAlias
+               TString         fAmanda;                // amanqda string dcsDatapointAlias
                TString         fStoreName;             // name used as the name in the storage system
        
                ClassDef(AliTRDSensorArray,2);          // Array of TRD DCS value objects