]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/BASE/AliHLTHOMERSourceDesc.cxx
* Bugfixes for 64Bit - 32Bit machines in the Source/Block Desc
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTHOMERSourceDesc.cxx
CommitLineData
155ff173 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
35ClassImp(AliHLTHOMERSourceDesc)
36
37//##################################################################################
38AliHLTHOMERSourceDesc::AliHLTHOMERSourceDesc() :
39 fSelected( kFALSE ),
06272c83 40 fSourceName(),
155ff173 41 fHostname(),
42 fPort(),
06272c83 43 fDataType(),
155ff173 44 fDetector(),
155ff173 45 fSpecification(),
06272c83 46 fSubDetector(),
47 fSubSubDetector() {
155ff173 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
155ff173 55//##################################################################################
06272c83 56AliHLTHOMERSourceDesc::~AliHLTHOMERSourceDesc() {
155ff173 57 // see header file for class documentation
155ff173 58}
59
06272c83 60/*
61 * ---------------------------------------------------------------------------------
62 * Setter - public
63 * ---------------------------------------------------------------------------------
64 */
155ff173 65
06272c83 66//#################################################################################
67void AliHLTHOMERSourceDesc::SetService( TString hostname, Int_t port, TString origin,
e728e5ba 68 TString type, TString spec ) {
155ff173 69 // see header file for class documentation
155ff173 70
06272c83 71 fHostname = hostname;
72 fPort = port;
73
74 fDataType = type;
75 fDataType.Remove( TString::kTrailing, ' ' );
4faff50e 76
06272c83 77 fDetector = origin;
78 fDetector.Remove( TString::kTrailing, ' ' );
4faff50e 79
06272c83 80 // -- Temporary until Specification is set in service
9e78371d 81 fSpecification = static_cast<ULong_t>(spec.Atoll());
06272c83 82 fSubDetector = 0;
83 fSubSubDetector = 0;
84
69f2a104 85 fSourceName.Form("%s_%s_0x%08X", fDetector.Data(), fDataType.Data(), fSpecification );
4faff50e 86
06272c83 87 return;
88}