]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/BASE/AliHLTOUTHandlerEquId.cxx
bugfix: correct range of DDL for specified detector
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTOUTHandlerEquId.cxx
CommitLineData
626bfcc1 1// $Id$
2
3//**************************************************************************
4//* This file is property of and copyright by the ALICE HLT Project *
5//* ALICE Experiment at CERN, All rights reserved. *
6//* *
7//* Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no> *
8//* for The ALICE HLT Project. *
9//* *
10//* Permission to use, copy, modify and distribute this software and its *
11//* documentation strictly for non-commercial purposes is hereby granted *
12//* without fee, provided that the above copyright notice appears in all *
13//* copies and that both the copyright notice and this permission notice *
14//* appear in the supporting documentation. The authors make no claims *
15//* about the suitability of this software for any purpose. It is *
16//* provided "as is" without express or implied warranty. *
17//**************************************************************************
18
19/** @file AliHLTOUTHandlerEquId.cxx
20 @author Matthias Richter
21 @date
22 @brief HLTOUT handler returning equipment id from data type and spec.
23*/
24
25#include "AliHLTOUTHandlerEquId.h"
26#include "AliHLTOUT.h"
27
28/** ROOT macro for the implementation of ROOT specific class methods */
29ClassImp(AliHLTOUTHandlerEquId)
30
31AliHLTOUTHandlerEquId::AliHLTOUTHandlerEquId()
32{
33 // see header file for class documentation
34 // or
35 // refer to README to build package
36 // or
37 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
38}
39
40AliHLTOUTHandlerEquId::~AliHLTOUTHandlerEquId()
41{
42 // see header file for class documentation
43}
44
45int AliHLTOUTHandlerEquId::ProcessData(AliHLTOUT* pData)
46{
47 // see header file for class documentation
48 if (!pData) return -EINVAL;
49 AliHLTComponentDataType dt=kAliHLTVoidDataType;
50 AliHLTUInt32_t spec=kAliHLTVoidDataSpec;
51 int iResult=pData->GetDataBlockDescription(dt, spec);
52 if (iResult>=0) {
53 iResult=(int)spec;
54 }
55 return iResult;
56}