Skip to content

Commit

Permalink
remove class imp/def conditions; simplify return in barrel acceptance
Browse files Browse the repository at this point in the history
  • Loading branch information
gconesab authored and ktf committed Sep 6, 2019
1 parent 75012d4 commit 7734c70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
11 changes: 3 additions & 8 deletions PYTHIA6/AliPythia6/AliGenPythiaPlus.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
#include "AliLog.h"
#include "PyquenCommon.h"

/// \cond CLASSIMP
ClassImp(AliGenPythiaPlus);
/// \endcond
ClassImp(AliGenPythiaPlus)

AliGenPythiaPlus::AliGenPythiaPlus():
AliGenMC(),
Expand Down Expand Up @@ -1344,10 +1342,7 @@ void AliGenPythiaPlus::GetSubEventTime()
///
Bool_t AliGenPythiaPlus::IsInBarrel(Float_t eta) const
{
if( eta < fTriggerEta )
return kTRUE;
else
return kFALSE;
return ( eta < fTriggerEta ) ;
}

///
Expand Down Expand Up @@ -1378,7 +1373,7 @@ Bool_t AliGenPythiaPlus::IsInPHOS(Float_t phi, Float_t eta, Int_t iparticle)
{
if(phi > fPHOSMinPhi && phi < fPHOSMaxPhi &&
eta < fPHOSEta )
return kTRUE;
return kTRUE;
else
{
if( fCheckPHOSeta && eta < fPHOSEta) fPHOSRotateCandidate = iparticle;
Expand Down
4 changes: 1 addition & 3 deletions PYTHIA6/AliPythia6/AliGenPythiaPlus.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,7 @@ class AliGenPythiaPlus : public AliGenMC
AliGenPythiaPlus(const AliGenPythiaPlus &Pythia);
AliGenPythiaPlus & operator=(const AliGenPythiaPlus & rhs);

/// \cond CLASSIMP
ClassDef(AliGenPythiaPlus, 5);
/// \endcond
ClassDef(AliGenPythiaPlus, 5)

};
#endif
Expand Down

0 comments on commit 7734c70

Please sign in to comment.