]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/trigger/AliHLTTriggerPhosClusterEnergy.h
Merge branch 'trigger'
[u/mrichter/AliRoot.git] / HLT / trigger / AliHLTTriggerPhosClusterEnergy.h
index 0237d3760a92328041e0f26264d227e3e998ce85..03aa63a1fde9096df464c6ed3b9239a5434b9ab7 100644 (file)
 /// @date   2009-08-17
 /// @brief  HLT energy threshold trigger for PHOS
 
-#include "AliHLTTrigger.h"
-
-
-class AliESDtrack;
+#include "AliHLTTriggerCaloClusterEnergy.h"
 
 /**
  * @class  AliHLTTriggerPhosClusterEnergy
@@ -59,46 +56,23 @@ class AliESDtrack;
  * \ingroup alihlt_trigger_components
  */
 
-class AliHLTTriggerPhosClusterEnergy : public AliHLTTrigger
-{
+class AliHLTTriggerPhosClusterEnergy : public AliHLTTriggerCaloClusterEnergy {
+
 public:
   AliHLTTriggerPhosClusterEnergy();
   ~AliHLTTriggerPhosClusterEnergy();
 
 
   /// inherited from AliHLTTrigger: name of this trigger
-  virtual const char* GetTriggerName() const;
+  const char* GetTriggerName() const;
   /// inherited from AliHLTComponent: create an instance
-  virtual AliHLTComponent* Spawn();
-
- protected:
-  /// inherited from AliHLTComponent: handle the initialization
-  int DoInit(int argc, const char** argv);
-
-  /// inherited from AliHLTComponent: handle cleanup
-  int DoDeinit();
+  AliHLTComponent* Spawn();
 
-  /// inherited from AliHLTComponent: handle re-configuration event
-  int Reconfigure(const char* cdbEntry, const char* chainId);
-
-  /// inherited from AliHLTComponent, scan one argument and
-  /// its parameters
-  int ScanConfigurationArgument(int argc, const char** argv);
-
-  /// inherited from AliHLTComponent
-  //  Get a ratio by how much the data volume is shrunken or enhanced.
-  virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
 
 private:
 
-  /// inherited from AliHLTTrigger: calculate the trigger
-  virtual int DoTrigger();
-
-  /// Threshold cluster energy to trigger on
-  float fEThreshold;
-
-  /// the default configuration entry for this component
-  static const char* fgkOCDBEntry; //!transient
+  ///Inherited from AliHLTTriggerCaloClusterEnergy, get the correct set of ESD calo clusters
+  Int_t GetClustersFromEsd( const AliESDEvent * esd, TRefArray * clustersRefs );
 
   ClassDef(AliHLTTriggerPhosClusterEnergy, 0)
 };