From 839ffcb39746af8f2c25c8b6f0719a57a746d2e2 Mon Sep 17 00:00:00 2001 From: schutz Date: Thu, 8 Jun 2000 11:14:40 +0000 Subject: [PATCH] Coding convention --- PHOS/AliPHOS.h | 15 +++++++++++++-- PHOS/AliPHOSPIDv1.cxx | 26 ++++++++++++++++---------- PHOS/AliPHOSReconstructioner.cxx | 2 ++ PHOS/AliPHOSReconstructioner.h | 15 ++++++++++++++- PHOS/AliPHOSTrackSegmentMakerv1.h | 13 +++++++++++++ PHOS/AliPHOSv0.h | 13 +++++++++++++ PHOS/AliPHOSvFast.h | 12 ++++++++++++ 7 files changed, 83 insertions(+), 13 deletions(-) diff --git a/PHOS/AliPHOS.h b/PHOS/AliPHOS.h index eb915b9f337..849bd4a1433 100644 --- a/PHOS/AliPHOS.h +++ b/PHOS/AliPHOS.h @@ -29,6 +29,11 @@ class AliPHOS : public AliDetector { AliPHOS() : AliDetector() { // default ctor } + AliPHOS(const AliPHOS & phos) { + // cpy ctor: no implementation yet + // requested by the Coding Convention + assert(0==1) ; + } virtual ~AliPHOS() ; virtual void CreateMaterials() ; // defines the material of the detector @@ -48,8 +53,14 @@ class AliPHOS : public AliDetector { return fTrackSegments ; } virtual TString Version() {return TString(" ") ; } - - + + AliPHOS & operator = (const AliPHOS & rvalue) { + // assignement operator requested by coding convention + // but not needed + assert(0==1) ; + return *this ; + } + protected: AliPHOSRecPoint::RecPointsList * fEmcRecPoints ; // The RecPoints (clusters) list in EMC diff --git a/PHOS/AliPHOSPIDv1.cxx b/PHOS/AliPHOSPIDv1.cxx index a82e25989ae..8a0d43c0a9e 100644 --- a/PHOS/AliPHOSPIDv1.cxx +++ b/PHOS/AliPHOSPIDv1.cxx @@ -48,9 +48,9 @@ void AliPHOSPIDv1::MakeParticles(AliPHOSTrackSegment::TrackSegmentsList * trsl, Int_t index = 0 ; AliPHOSRecParticle * rp ; Int_t type ; - Int_t shower_profile; // 0 narrow and 1 wide - Int_t cpv_detector; // 1 hit and 0 no hit - Int_t pc_detector; // 1 hit and 0 no hit + Int_t showerprofile; // 0 narrow and 1 wide + Int_t cpvdetector; // 1 hit and 0 no hit + Int_t pcdetector; // 1 hit and 0 no hit while ( (tracksegment = (AliPHOSTrackSegment *)next()) ) { new( (*rpl)[index] ) AliPHOSRecParticle(tracksegment) ; @@ -61,18 +61,24 @@ void AliPHOSPIDv1::MakeParticles(AliPHOSTrackSegment::TrackSegmentsList * trsl, // Looking at the lateral development of the shower if ( ( lambda[0] > fLambda1m && lambda[0] < fLambda1M ) && // shower profile cut - ( lambda[1] > fLambda2m && lambda[1] < fLambda2M ) ) shower_profile = 0 ; // NARROW PROFILE - else shower_profile = 1 ;// WIDE PROFILE + ( lambda[1] > fLambda2m && lambda[1] < fLambda2M ) ) + showerprofile = 0 ; // NARROW PROFILE + else + showerprofile = 1 ;// WIDE PROFILE // Looking at the photon conversion detector - if( tracksegment->GetPpsdLowRecPoint() == 0 ) pc_detector = 0; // No hit - else pc_detector = 1; // hit + if( tracksegment->GetPpsdLowRecPoint() == 0 ) + pcdetector = 0 ; // No hit + else + pcdetector = 1 ; // hit // Looking at the photon conversion detector - if( tracksegment->GetPpsdUpRecPoint() == 0 ) cpv_detector = 0; // No hit - else cpv_detector = 1; // Hit + if( tracksegment->GetPpsdUpRecPoint() == 0 ) + cpvdetector = 0 ; // No hit + else + cpvdetector = 1 ; // Hit - type = shower_profile + 2*pc_detector + 4*cpv_detector; + type = showerprofile + 2 * pcdetector + 4 * cpvdetector ; rp->SetType(type) ; index++ ; } diff --git a/PHOS/AliPHOSReconstructioner.cxx b/PHOS/AliPHOSReconstructioner.cxx index 765bf4a4a72..73574f1065e 100644 --- a/PHOS/AliPHOSReconstructioner.cxx +++ b/PHOS/AliPHOSReconstructioner.cxx @@ -58,6 +58,8 @@ AliPHOSReconstructioner::AliPHOSReconstructioner(AliPHOSClusterizer * Clusterize AliPHOSTrackSegmentMaker * Tracker, AliPHOSPID * Pid) { + // Initialisation + fClusterizer = Clusterizer ; fTrackSegmentMaker = Tracker ; fPID = Pid ; diff --git a/PHOS/AliPHOSReconstructioner.h b/PHOS/AliPHOSReconstructioner.h index 95ea469f3ef..45934e995cf 100644 --- a/PHOS/AliPHOSReconstructioner.h +++ b/PHOS/AliPHOSReconstructioner.h @@ -30,7 +30,13 @@ public: AliPHOSReconstructioner(){} //ctor AliPHOSReconstructioner(AliPHOSClusterizer * Clusterizer, AliPHOSTrackSegmentMaker * Tracker, - AliPHOSPID * Identifier); //ctor + AliPHOSPID * Identifier); //ctor + AliPHOSReconstructioner(const AliPHOSReconstructioner & phos) { + // cpy ctor: no implementation yet + // requested by the Coding Convention + assert(0==1) ; + } + ~AliPHOSReconstructioner(){} // dtor AliPHOSClusterizer * GetClusterizer() { return fClusterizer ; } @@ -44,6 +50,13 @@ public: void SetDebugReconstruction(Bool_t deb) { fDebugReconstruction = deb; } + AliPHOSReconstructioner & operator = (const AliPHOSReconstructioner & rvalue) { + // assignement operator requested by coding convention + // but not needed + assert(0==1) ; + return *this ; + } + private: diff --git a/PHOS/AliPHOSTrackSegmentMakerv1.h b/PHOS/AliPHOSTrackSegmentMakerv1.h index 7e4244cd190..15a90faa356 100644 --- a/PHOS/AliPHOSTrackSegmentMakerv1.h +++ b/PHOS/AliPHOSTrackSegmentMakerv1.h @@ -30,6 +30,12 @@ class AliPHOSTrackSegmentMakerv1 : public AliPHOSTrackSegmentMaker { public: AliPHOSTrackSegmentMakerv1() ; + AliPHOSTrackSegmentMakerv1(const AliPHOSTrackSegmentMakerv1 & tsm) { + // cpy ctor: no implementation yet + // requested by the Coding Convention + assert(0==1) ; + } + virtual ~ AliPHOSTrackSegmentMakerv1() ; // dtor Bool_t FindFit(AliPHOSEmcRecPoint * emcRP, int * MaxAt, Float_t * maxAtEnergy, @@ -68,6 +74,13 @@ public: TObjArray * emclist) ; //Unfolds overlaping clusters using TMinuit package virtual void UnsetUnfoldFlag() { fUnfoldFlag = kFALSE ; } + AliPHOSTrackSegmentMakerv1 & operator = (const AliPHOSTrackSegmentMakerv1 & rvalue) { + // assignement operator requested by coding convention + // but not needed + assert(0==1) ; + return *this ; + } + private: Float_t fDelta ; // parameter used for sorting diff --git a/PHOS/AliPHOSv0.h b/PHOS/AliPHOSv0.h index 0cdfa0960e8..aba2f919662 100644 --- a/PHOS/AliPHOSv0.h +++ b/PHOS/AliPHOSv0.h @@ -26,6 +26,12 @@ public: AliPHOSv0(void) ; AliPHOSv0(const char *name, const char *title="") ; AliPHOSv0(AliPHOSReconstructioner * Reconstructioner, const char *name, const char *title="") ; + AliPHOSv0(const AliPHOSv0 & phos) { + // cpy ctor: no implementation yet + // requested by the Coding Convention + assert(0==1) ; + } + virtual ~AliPHOSv0(void) ; virtual void AddHit( Int_t primary, Int_t id, Float_t *hits ) ; // adds a pre-digitilized hit to the hit tree @@ -55,6 +61,13 @@ public: virtual void StepManager(void) ; // does the tracking through PHOS and a preliminary digitalization virtual TString Version(void){ return TString("v0"); } + AliPHOSv0 & operator = (const AliPHOSv0 & rvalue) { + // assignement operator requested by coding convention + // but not needed + assert(0==1) ; + return *this ; + } + protected: Float_t fDigitThreshold ; // Threshold for the digit registration diff --git a/PHOS/AliPHOSvFast.h b/PHOS/AliPHOSvFast.h index 56f1c692783..da7a6a56345 100644 --- a/PHOS/AliPHOSvFast.h +++ b/PHOS/AliPHOSvFast.h @@ -30,6 +30,11 @@ public: AliPHOSvFast(void) ; AliPHOSvFast(const char *name, const char *title="") ; + AliPHOSvFast(const AliPHOSvFast & fast) { + // cpy ctor: no implementation yet + // requested by the Coding Convention + assert(0==1) ; + } virtual ~AliPHOSvFast(void) ; void AddRecParticle(const AliPHOSFastRecParticle & rp) ; // adds primary particle to the RecParticles list @@ -53,6 +58,13 @@ public: Double_t SigmaE(Double_t energy) ; // calulates the energy resolution at a given Energy Double_t SigmaP(Double_t energy, Int_t inc) ; // calulates the position resolution at a given Energy at a given incidence virtual void StepManager(void) ; // does the tracking through PHOS and a preliminary digitalization + + AliPHOSvFast & operator = (const AliPHOSvFast & rvalue) { + // assignement operator requested by coding convention + // but not needed + assert(0==1) ; + return *this ; + } private: -- 2.43.0