]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONSurveyDetElem.cxx
Fix coverity defects
[u/mrichter/AliRoot.git] / MUON / AliMUONSurveyDetElem.cxx
index 293cdedfa01548f35f86abc4b5d329a2afde59fa..3ae744a1b34bc793ae9f8f54eee464048a5551f5 100644 (file)
@@ -54,10 +54,12 @@ AliMUONSurveyDetElem::~AliMUONSurveyDetElem() {
 }
 
 Int_t AliMUONSurveyDetElem::AddStickerTargets(TObjArray *pArray, TString stBaseName, Int_t lTargetMax) {
+  /// Add a maximum of lTargetMax sticker targets with stBaseName from pArray of targets 
   return AliMUONSurveyObj::AddStickerTargets(pArray, stBaseName, lTargetMax);
 }
 
 Int_t AliMUONSurveyDetElem::AddStickerTargets(TString stBaseName, Int_t lTargetMax) {
+  /// Add a maximum of lTargetMax sticker targets with stBaseName from internal SurveyObj
   if (!fSurveyChamber) {
     AliError("Pointer to mother chamber has not been set!");
     return 0;
@@ -70,10 +72,12 @@ Int_t AliMUONSurveyDetElem::AddStickerTargets(TString stBaseName, Int_t lTargetM
 }
 
 Int_t AliMUONSurveyDetElem::AddGButtonTargets(TObjArray *pArray, TString stBaseName, Int_t lTargetMax) {
+  /// Add a maximum of lTargetMax global button targets with stBaseName from pArray of targets 
   return AliMUONSurveyObj::AddGButtonTargets(pArray, stBaseName, lTargetMax);
 }
 
 Int_t AliMUONSurveyDetElem::AddGButtonTargets(TString stBaseName, Int_t lTargetMax) {
+  /// Add a maximum of lTargetMax sticker targets with stBaseName from internal SurveyObj
   if (!fSurveyChamber) {
     AliError("Pointer to mother chamber has not been set!");
     return 0;
@@ -86,6 +90,7 @@ Int_t AliMUONSurveyDetElem::AddGButtonTargets(TString stBaseName, Int_t lTargetM
 }
 
 void AliMUONSurveyDetElem::SetLocalTransformation(TGeoCombiTrans *localTrf, Bool_t ownerLocalTrf) {
+  /// Set the geometry transformation of this detection element
   AliMUONSurveyObj::SetLocalTransformation(localTrf,ownerLocalTrf);
   if (!fSurveyChamber) {
     AliWarning("Pointer to mother chamber has not been set!");
@@ -106,11 +111,13 @@ void AliMUONSurveyDetElem::SetLocalTransformation(TGeoCombiTrans *localTrf, Bool
 }
 
 void AliMUONSurveyDetElem::PrintLocalTrf() {
+  /// Print the local transformation
   printf("DetElem%d Th",fDetElemId);
   AliMUONSurveyObj::PrintLocalTrf();
 }
 
 void AliMUONSurveyDetElem::PrintAlignTrf() {
+  /// Print the alignment transformation
   printf("DetElem%d d",fDetElemId);
   AliMUONSurveyObj::PrintAlignTrf();
 }