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