Line data Source code
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 126 : ClassImp(AliHLTHOMERSourceDesc)
32 :
33 : //##################################################################################
34 0 : AliHLTHOMERSourceDesc::AliHLTHOMERSourceDesc() :
35 0 : fSelected( kFALSE ),
36 0 : fSourceName(),
37 0 : fHostname(),
38 0 : fPort(),
39 0 : fDataType(),
40 0 : fDetector(),
41 0 : fSpecification(),
42 0 : fSubDetector(),
43 0 : 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 0 : }
50 :
51 : //##################################################################################
52 0 : AliHLTHOMERSourceDesc::~AliHLTHOMERSourceDesc() {
53 : // see header file for class documentation
54 0 : }
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 0 : fHostname = hostname;
68 0 : fPort = port;
69 :
70 0 : fDataType = type;
71 0 : fDataType.Remove( TString::kTrailing, ' ' );
72 :
73 0 : fDetector = origin;
74 0 : fDetector.Remove( TString::kTrailing, ' ' );
75 :
76 : // -- Temporary until Specification is set in service
77 0 : fSpecification = static_cast<ULong_t>(spec.Atoll());
78 0 : fSubDetector = 0;
79 0 : fSubSubDetector = 0;
80 :
81 0 : fSourceName.Form("%s_%s_0x%08lX", fDetector.Data(), fDataType.Data(), fSpecification );
82 :
83 0 : return;
84 : }
|