23 #include <TClonesArray.h>
25 #include "AliEMCALTriggerPatchInfo.h"
69 TIter patchIter(inputPatches);
70 AliEMCALTriggerPatchInfo *patch(NULL);
71 std::vector<AliEMCALTriggerPatchInfo *> selectedPatches;
72 while((patch = dynamic_cast<AliEMCALTriggerPatchInfo *>(patchIter()))){
74 selectedPatches.push_back(patch);
78 AliEMCALTriggerPatchInfo *mainPatch(NULL), *testpatch(NULL);
79 for(std::vector<AliEMCALTriggerPatchInfo *>::iterator it = selectedPatches.begin(); it != selectedPatches.end(); ++it){
81 if(!mainPatch) mainPatch = testpatch;
ClassImp(AliEmcalTriggerSelection) AliEmcalTriggerSelection
Bool_t IsSelected(const AliEMCALTriggerPatchInfo *const patch) const
const AliEmcalTriggerSelectionCuts * fSelectionCuts
Int_t CompareTriggerPatches(const AliEMCALTriggerPatchInfo *first, const AliEMCALTriggerPatchInfo *second) const
void SetSelectionCuts(const AliEmcalTriggerSelectionCuts *const cuts)
void AddAcceptedPatch(AliEMCALTriggerPatchInfo *const acceptedPatch)
AliEmcalTriggerDecision * MakeDecison(const TClonesArray *const reconstructedPatches) const
void SetMainPatch(const AliEMCALTriggerPatchInfo *const mainpatch)
AliEmcalTriggerSelection()