2 //**************************************************************************
3 //* This file is property of and copyright by the ALICE HLT Project *
4 //* ALICE Experiment at CERN, All rights reserved. *
6 //* Primary Authors: Svein Lindal <svein.lindal@gmail.com> *
7 //* for The ALICE HLT Project. *
9 //* Permission to use, copy, modify and distribute this software and its *
10 //* documentation strictly for non-commercial purposes is hereby granted *
11 //* without fee, provided that the above copyright notice appears in all *
12 //* copies and that both the copyright notice and this permission notice *
13 //* appear in the supporting documentation. The authors make no claims *
14 //* about the suitability of this software for any purpose. It is *
15 //* provided "as is" without express or implied warranty. *
16 //**************************************************************************
18 /// @file AliHLTTriggerEmcalClusterEnergy.cxx
19 /// @author Svein Lindal <slindal@fys.uio.no>
21 /// @brief HLT energy threshold trigger for EMCAL
24 // see header file for class documentation
26 // refer to README to build package
28 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
31 #include "AliHLTTriggerEmcalClusterEnergy.h"
32 #include "AliESDEvent.h"
33 #include "AliESDCaloCluster.h"
34 #include "AliHLTTriggerDecision.h"
35 #include "AliHLTDomainEntry.h"
38 AliHLTTriggerEmcalClusterEnergy gEmcalClusterEnergyTrigger;
41 /** ROOT macro for the implementation of ROOT specific class methods */
42 ClassImp(AliHLTTriggerEmcalClusterEnergy)
44 AliHLTTriggerEmcalClusterEnergy::AliHLTTriggerEmcalClusterEnergy() :
45 AliHLTTriggerCaloClusterEnergy("EMCAL")
47 // see header file for class documentation
49 // refer to README to build package
51 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlts
53 fOCDBEntry = "HLT/ConfigHLT/EmcalClusterEnergyTrigger";
54 fInputDataType = kAliHLTDataTypeCaloCluster | kAliHLTDataOriginEMCAL;
57 AliHLTTriggerEmcalClusterEnergy::~AliHLTTriggerEmcalClusterEnergy() {
58 // see header file for class documentation
61 const char* AliHLTTriggerEmcalClusterEnergy::GetTriggerName() const {
62 // see header file for class documentation
63 return "EmcalClusterEnergyTrigger";
66 AliHLTComponent* AliHLTTriggerEmcalClusterEnergy::Spawn() {
67 // see header file for class documentation
68 return new AliHLTTriggerEmcalClusterEnergy;
71 Int_t AliHLTTriggerEmcalClusterEnergy::GetClustersFromEsd( const AliESDEvent * esd, TRefArray * clustersRefs ){
72 return esd->GetEMCALClusters(clustersRefs);