]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/BASE/AliHLTHOMERSourceDesc.cxx
using common function for merging of streamer info
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTHOMERSourceDesc.cxx
1 // $Id$
2 /**************************************************************************
3  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  *                                                                        *
5  * Authors: Jochen Thaeder <thaeder@kip.uni-heidelberg.de>                *
6  *          for The ALICE HLT Project.                                    *
7  *                                                                        *
8  * Permission to use, copy, modify and distribute this software and its   *
9  * documentation strictly for non-commercial purposes is hereby granted   *
10  * without fee, provided that the above copyright notice appears in all   *
11  * copies and that both the copyright notice and this permission notice   *
12  * appear in the supporting documentation. The authors make no claims     *
13  * about the suitability of this software for any purpose. It is          *
14  * provided "as is" without express or implied warranty.                  *
15  **************************************************************************/
16
17 /** @file   AliHLTHOMERSourceDesc.cxx
18     @author Jochen Thaeder
19     @date   
20     @brief  Container for HOMER Sources
21 */
22
23 // see header file for class documentation
24 // or
25 // refer to README to build package
26 // or
27 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
28
29 #include "AliHLTHOMERSourceDesc.h"
30
31 ClassImp(AliHLTHOMERSourceDesc)
32
33 //##################################################################################
34 AliHLTHOMERSourceDesc::AliHLTHOMERSourceDesc() :
35   fSelected( kFALSE ),
36   fSourceName(),
37   fHostname(),
38   fPort(),
39   fDataType(),
40   fDetector(),
41   fSpecification(),
42   fSubDetector(),
43   fSubSubDetector() {
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-hlt
49 }
50
51 //##################################################################################
52 AliHLTHOMERSourceDesc::~AliHLTHOMERSourceDesc() {
53   // see header file for class documentation
54 }
55
56 /*
57  * ---------------------------------------------------------------------------------
58  *                        Setter - public
59  * ---------------------------------------------------------------------------------
60  */
61
62 //#################################################################################
63 void AliHLTHOMERSourceDesc::SetService( TString hostname, Int_t port, TString origin, 
64                                         TString type, TString spec ) {
65   // see header file for class documentation
66
67   fHostname = hostname;
68   fPort = port;
69   
70   fDataType = type;
71   fDataType.Remove( TString::kTrailing, ' ' );
72
73   fDetector = origin;
74   fDetector.Remove( TString::kTrailing, ' ' );
75
76   // -- Temporary until Specification is set in service
77   fSpecification = static_cast<ULong_t>(spec.Atoll());
78   fSubDetector = 0;
79   fSubSubDetector = 0;
80
81   fSourceName.Form("%s_%s_0x%08lX", fDetector.Data(), fDataType.Data(), fSpecification ); 
82
83   return;
84 }