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