//-*- Mode: C++ -*-
// $Id$
#ifndef ALIHLTTRIGGEREMCALCLUSTERENERGY_H
#define ALIHLTTRIGGEREMCALCLUSTERENERGY_H
//* This file is property of and copyright by the ALICE HLT Project *
//* ALICE Experiment at CERN, All rights reserved. *
//* See cxx source for full Copyright notice *
/// @file AliHLTTriggerEmcalClusterEnergy.h
/// @author Svein Lindal
/// @date 2009-08-17
/// @brief HLT energy threshold trigger for EMCAL
#include "AliHLTTriggerCaloClusterEnergy.h"
/**
* @class AliHLTTriggerEmcalClusterEnergy
* HLT trigger component for high energy clusters in EMCAL
*
* Triggers on EMCAL clusters containing energy > threshold value.
* Configurable through database entry or from command line using "-energy" option
*
*
General properties:
*
* Component ID: \b EmcalClusterEnergyTrigger
* Library: \b libAliHLTTrigger.so
* Input Data Types: kAliHLTDataTypeESDObject, kAliHLTDataTypeESDTree
* Output Data Types: ::kAliHLTAnyDataType
*
* Mandatory arguments:
*
*
* Optional arguments:
*
*
* Configuration:
*
* \li -energy e
* required energy of the cluster
*
* By default, configuration is loaded from OCDB, can be overridden by
* component arguments.
*
* Default CDB entries:
* HLT/ConfigHLT/EmcalClusterEnergyTrigger: TObjString storing the arguments
*
* Performance:
*
*
* Memory consumption:
*
*
* Output size:
*
*
* \ingroup alihlt_trigger_components
*/
class AliHLTTriggerEmcalClusterEnergy : public AliHLTTriggerCaloClusterEnergy {
public:
AliHLTTriggerEmcalClusterEnergy();
~AliHLTTriggerEmcalClusterEnergy();
/// inherited from AliHLTTrigger: name of this trigger
const char* GetTriggerName() const;
/// inherited from AliHLTComponent: create an instance
AliHLTComponent* Spawn();
private:
///Inherited from AliHLTTriggerCaloClusterEnergy, get the correct set of ESD calo clusters
Int_t GetClustersFromEsd( const AliESDEvent * esd, TRefArray * clustersRefs );
ClassDef(AliHLTTriggerEmcalClusterEnergy, 0)
};
#endif