From d39401ad801cdf146701098fe82701b30764bf76 Mon Sep 17 00:00:00 2001 From: cblume Date: Tue, 4 Aug 2009 15:59:17 +0000 Subject: [PATCH 1/1] Coding rules --- TRD/AliTRDReconstructor.cxx | 44 ++++++++++++++++++++----------------- TRD/AliTRDReconstructor.h | 4 ++-- 2 files changed, 26 insertions(+), 22 deletions(-) diff --git a/TRD/AliTRDReconstructor.cxx b/TRD/AliTRDReconstructor.cxx index e24a499fc50..be74c987d9f 100644 --- a/TRD/AliTRDReconstructor.cxx +++ b/TRD/AliTRDReconstructor.cxx @@ -21,27 +21,18 @@ // // /////////////////////////////////////////////////////////////////////////////// -#include #include #include -#include +#include +#include -#include "AliRunLoader.h" #include "AliRawReader.h" -#include "AliLog.h" -#include "AliESDTrdTrack.h" -#include "AliESDEvent.h" #include "AliTRDReconstructor.h" #include "AliTRDclusterizer.h" -#include "AliTRDtracker.h" -#include "AliTRDpidESD.h" #include "AliTRDrawData.h" #include "AliTRDdigitsManager.h" #include "AliTRDtrackerV1.h" -#include "AliTRDrecoParam.h" - -#include "TTreeStream.h" #define SETFLG(n,f) ((n) |= f) #define CLRFLG(n,f) ((n) &= ~f) @@ -143,6 +134,10 @@ AliTRDReconstructor::AliTRDReconstructor(const AliTRDReconstructor &r) :AliReconstructor(r) ,fSteerParam(r.fSteerParam) { + // + // Copy constructor + // + memcpy(fStreamLevel, r.fStreamLevel, kNtasks*sizeof(UChar_t)); memcpy(fTCParams, r.fTCParams, 8*sizeof(Double_t)); memcpy(fDebugStream, r.fDebugStream, sizeof(TTreeSRedirector *) *kNtasks); @@ -153,6 +148,10 @@ AliTRDReconstructor::AliTRDReconstructor(const AliTRDReconstructor &r) //_____________________________________________________________________________ AliTRDReconstructor::~AliTRDReconstructor() { + // + // Destructor + // + if(fgClusters) { fgClusters->Delete(); delete fgClusters; } @@ -285,29 +284,30 @@ void AliTRDReconstructor::FillESD(TTree* /*digitsTree*/ //_____________________________________________________________________________ void AliTRDReconstructor::SetOption(Option_t *opt) { -// Read option string into the steer param. -// + // + // Read option string into the steer param. + // AliReconstructor::SetOption(opt); TString s(opt); TObjArray *opar = s.Tokenize(","); for(Int_t ipar=0; iparGetEntriesFast(); ipar++){ - Bool_t PROCESSED = kFALSE; + Bool_t processed = kFALSE; TString sopt(((TObjString*)(*opar)[ipar])->String()); for(Int_t iopt=0; iopt>iopt)&1)?" : ON":" : OFF"):"")); } diff --git a/TRD/AliTRDReconstructor.h b/TRD/AliTRDReconstructor.h index 927dcf0408f..81f8630abbc 100644 --- a/TRD/AliTRDReconstructor.h +++ b/TRD/AliTRDReconstructor.h @@ -13,8 +13,8 @@ #include "AliReconstructor.h" #include "AliDetectorRecoParam.h" -#include "AliTRDrecoParam.h" #include "AliTRDpidUtil.h" +#include "AliTRDrecoParam.h" class TClonesArray; class TTreeSRedirector; @@ -94,7 +94,7 @@ public: virtual void Reconstruct(AliRawReader *rawReader, TTree *clusterTree) const; virtual void Reconstruct(TTree *digitsTree, TTree *clusterTree) const; - static void SetClusters(TClonesArray *clusters) {fgClusters = clusters;} + static void SetClusters(TClonesArray *clusters) {fgClusters = clusters;} static void SetTracklets(TClonesArray *tracklets) {fgTracklets = tracklets;} void SetOption(Option_t *opt); inline void SetTCParams(Double_t *par); -- 2.39.3