]>
Commit | Line | Data |
---|---|---|
765d85f8 | 1 | // $Id$ |
2 | //************************************************************************** | |
3 | //* This file is property of and copyright by the ALICE HLT Project * | |
4 | //* ALICE Experiment at CERN, All rights reserved. * | |
5 | //* * | |
6 | //* Primary Authors: Svein Lindal <svein.lindal@gmail.com> * | |
7 | //* for The ALICE HLT Project. * | |
8 | //* * | |
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 | //************************************************************************** | |
17 | ||
18 | /// @file AliHLTTriggerPhosClusterEnergy.cxx | |
19 | /// @author Svein Lindal <slindal@fys.uio.no> | |
20 | /// @date 2009-08-17 | |
21 | /// @brief HLT energy threshold trigger for PHOS | |
22 | /// | |
23 | ||
24 | // see header file for class documentation | |
25 | // or | |
26 | // refer to README to build package | |
27 | // or | |
28 | // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt | |
29 | ||
30 | ||
31 | #include "AliHLTTriggerPhosClusterEnergy.h" | |
32 | #include "AliESDEvent.h" | |
33 | #include "AliESDCaloCluster.h" | |
34 | #include "AliHLTTriggerDecision.h" | |
35 | #include "AliHLTDomainEntry.h" | |
36 | ||
739e2587 | 37 | |
765d85f8 | 38 | /** ROOT macro for the implementation of ROOT specific class methods */ |
39 | ClassImp(AliHLTTriggerPhosClusterEnergy) | |
40 | ||
739e2587 | 41 | AliHLTTriggerPhosClusterEnergy::AliHLTTriggerPhosClusterEnergy() : |
42 | AliHLTTriggerCaloClusterEnergy("PHOS") | |
765d85f8 | 43 | { |
44 | // see header file for class documentation | |
45 | // or | |
46 | // refer to README to build package | |
47 | // or | |
48 | // visit http://web.ift.uib.no/~kjeks/doc/alice-hlts | |
765d85f8 | 49 | |
9e7cc92a | 50 | fOCDBEntry = "HLT/ConfigHLT/PhosClusterEnergyTrigger"; |
51 | fInputDataType = kAliHLTDataTypeCaloCluster | kAliHLTDataOriginPHOS; | |
739e2587 | 52 | } |
765d85f8 | 53 | |
739e2587 | 54 | AliHLTTriggerPhosClusterEnergy::~AliHLTTriggerPhosClusterEnergy() { |
765d85f8 | 55 | // see header file for class documentation |
56 | } | |
57 | ||
739e2587 | 58 | const char* AliHLTTriggerPhosClusterEnergy::GetTriggerName() const { |
765d85f8 | 59 | // see header file for class documentation |
60 | return "PhosClusterEnergyTrigger"; | |
61 | } | |
62 | ||
739e2587 | 63 | AliHLTComponent* AliHLTTriggerPhosClusterEnergy::Spawn() { |
765d85f8 | 64 | // see header file for class documentation |
65 | return new AliHLTTriggerPhosClusterEnergy; | |
66 | } | |
67 | ||
739e2587 | 68 | Int_t AliHLTTriggerPhosClusterEnergy::GetClustersFromEsd( const AliESDEvent * esd, TRefArray * clustersRefs ){ |
69 | return esd->GetPHOSClusters(clustersRefs); | |
765d85f8 | 70 | } |
177f8c98 | 71 | |
72 | // FR | |
73 | void AliHLTTriggerPhosClusterEnergy::SetCaloReadoutList() { | |
74 | GetReadoutList().Enable(AliHLTReadoutList::kPHOS); | |
75 | } |