]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/BASE/AliHLTOUTHandlerEquId.cxx
Why the h*ll do we make a remote commit when pulling?
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTOUTHandlerEquId.cxx
1 // $Id$
2
3 //**************************************************************************
4 //* This file is property of and copyright by the                          * 
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 */
29 ClassImp(AliHLTOUTHandlerEquId)
30
31 AliHLTOUTHandlerEquId::AliHLTOUTHandlerEquId()
32
33   // Base class for DDL raw data redirection handlers.
34   //
35   // HLTOUT handlers of this type are used for the replacement of detector
36   // reconstruction input by the corresponding data from the HLT output.
37   // From the data type and specification of an HLT output block the
38   // corresponding equipment id of the original detector streams is determined.
39 }
40
41 AliHLTOUTHandlerEquId::~AliHLTOUTHandlerEquId()
42 {
43   // destructor
44 }
45
46 int AliHLTOUTHandlerEquId::ProcessData(AliHLTOUT* pData)
47 {
48   // process data
49   if (!pData) return -EINVAL;
50   AliHLTComponentDataType dt=kAliHLTVoidDataType;
51   AliHLTUInt32_t spec=kAliHLTVoidDataSpec;
52   int iResult=pData->GetDataBlockDescription(dt, spec);
53   if (iResult>=0) {
54     iResult=(int)spec;
55   }
56   return iResult;
57 }