#include "AliLog.h"
-#include "AliRsnDaughter.h"
-#include "AliRsnEvent.h"
#include "AliRsnCutSet.h"
#include "AliRsnCutMgr.h"
//
Int_t i;
- for (i = 0; i < AliRsnCut::kLastCutTarget; i++)
- {
+ for (i = 0; i < AliRsnCut::kLastCutTarget; i++) {
fCutSets[i] = 0;
}
}
//
Int_t i;
- for (i = 0; i < AliRsnCut::kLastCutTarget; i++)
- {
+ for (i = 0; i < AliRsnCut::kLastCutTarget; i++) {
fCutSets[i] = 0;
}
}
//
Int_t i;
- for (i = 0; i < AliRsnCut::kLastCutTarget; i++)
- {
+ for (i = 0; i < AliRsnCut::kLastCutTarget; i++) {
delete fCutSets[i];
}
}
//_____________________________________________________________________________
-void AliRsnCutMgr::SetCutSet(AliRsnCut::ETarget type, AliRsnCutSet* cutset)
+void AliRsnCutMgr::SetCutSet(AliRsnCut::ETarget type, AliRsnCutSet* const cutset)
{
//
// Assign a cut set to a given target
}
//_____________________________________________________________________________
-Bool_t AliRsnCutMgr::IsSelected(AliRsnCut::ETarget type,TObject *obj)
+Bool_t AliRsnCutMgr::IsSelected(AliRsnCut::ETarget type, TObject*const obj)
{
//
// Check if a given object passes the cuts defined for it.
AliDebug(AliLog::kDebug, "<-");
if (!fCutSets[type]) return kTRUE;
- switch (type)
- {
- case AliRsnCut::kParticle:
- return fCutSets[type]->IsSelected(type, (AliRsnDaughter*)obj);
- break;
- case AliRsnCut::kPair:
- return fCutSets[type]->IsSelected(type, (AliRsnPairParticle*)obj);
- break;
- case AliRsnCut::kEvent:
- return fCutSets[type]->IsSelected(type, (AliRsnEvent*)obj);
- break;
- default:
- AliWarning("Wrong target selected.");
- return kTRUE;
- break;
+ switch (type) {
+ case AliRsnCut::kParticle:
+ return fCutSets[type]->IsSelected(type, (AliRsnDaughter*)obj);
+ break;
+ case AliRsnCut::kPair:
+ return fCutSets[type]->IsSelected(type, (AliRsnPairParticle*)obj);
+ break;
+ case AliRsnCut::kEvent:
+ return fCutSets[type]->IsSelected(type, (AliRsnEvent*)obj);
+ break;
+ default:
+ AliWarning("Wrong target selected.");
+ return kTRUE;
+ break;
}
return kTRUE;