1 #ifndef ALIEMCALTRIGGERDECISION_H
2 #define ALIEMCALTRIGGERDECISION_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 // Author: Markus Fasel
11 class AliEmcalTriggerPatchInfo;
12 class AliEmcalTriggerSelectionCuts;
14 class AliEmcalTriggerDecision: public TNamed {
16 AliEmcalTriggerDecision();
17 AliEmcalTriggerDecision(const char *name, const char *title = "");
18 virtual ~AliEmcalTriggerDecision() {}
20 const AliEmcalTriggerPatchInfo *GetMainPatch() const { return fMainPatch; }
21 const AliEmcalTriggerSelectionCuts *GetSelectionCuts() const { return fSelectionCuts; }
22 const TList *GetAcceptedPatches() const { return &fAcceptedPatches; }
23 Bool_t IsSelected() const { return fMainPatch != NULL; }
25 void SetSelectionCuts(const AliEmcalTriggerSelectionCuts * const cuts) { fSelectionCuts = cuts; }
26 void SetMainPatch(const AliEmcalTriggerPatchInfo * const mainpatch) { fMainPatch = mainpatch; }
27 void AddAcceptedPatch(AliEmcalTriggerPatchInfo * const acceptedPatch);
30 const AliEmcalTriggerPatchInfo *fMainPatch; // Main trigger patch which fires the decision
31 const AliEmcalTriggerSelectionCuts *fSelectionCuts; // Pointer to the cuts used for the trigger selection
32 TList fAcceptedPatches; // All trigger patches which are accepted as well
34 ClassDef(AliEmcalTriggerDecision, 1); // Container of the trigger decision information
36 AliEmcalTriggerDecision(const AliEmcalTriggerDecision &ref);
37 AliEmcalTriggerDecision &operator=(const AliEmcalTriggerDecision &ref);
40 #endif /* ALIEMCALTRIGGERDECISION_H */