]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/BASE/AliHLTHOMERSourceDesc.cxx
introducing function IsSelected which allows child classes to selectively publish...
[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 #if __GNUC__>= 3
30    using namespace std;
31 #endif
32
33 #include "AliHLTHOMERSourceDesc.h"
34
35
36 ClassImp(AliHLTHOMERSourceDesc)
37
38 //##################################################################################
39 AliHLTHOMERSourceDesc::AliHLTHOMERSourceDesc() :
40   fSelected( kFALSE ),
41   fSourceName(),
42   fHostname(),
43   fPort(),
44   fDataType(),
45   fDetector(),
46   fSpecification(),
47   fSubDetector(),
48   fSubSubDetector() {
49   // see header file for class documentation
50   // or
51   // refer to README to build package
52   // or
53   // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
54 }
55
56 //##################################################################################
57 AliHLTHOMERSourceDesc::~AliHLTHOMERSourceDesc() {
58   // see header file for class documentation
59 }
60
61 /*
62  * ---------------------------------------------------------------------------------
63  *                        Setter - public
64  * ---------------------------------------------------------------------------------
65  */
66
67 //#################################################################################
68 void AliHLTHOMERSourceDesc::SetService( TString hostname, Int_t port, TString origin, 
69                                         TString type, TString spec ) {
70   // see header file for class documentation
71
72   fHostname = hostname;
73   fPort = port;
74   
75   fDataType = type;
76   fDataType.Remove( TString::kTrailing, ' ' );
77
78   fDetector = origin;
79   fDetector.Remove( TString::kTrailing, ' ' );
80
81   // -- Temporary until Specification is set in service
82   fSpecification = static_cast<ULong_t>(spec.Atoll());
83   fSubDetector = 0;
84   fSubSubDetector = 0;
85
86   fSourceName.Form("%s_%s_0x%08lX", fDetector.Data(), fDataType.Data(), fSpecification ); 
87
88   return;
89 }