]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/AliHLTHOMERSourceDesc.cxx
Using fNContrubutors in AliAODVertex for SPD vertices.
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTHOMERSourceDesc.cxx
index c6a5215cf21b53e3861bd4c4df1c791a9feb9454..f818cf2faa2cb97640d067124963a2d092f37bbf 100644 (file)
@@ -37,15 +37,14 @@ ClassImp(AliHLTHOMERSourceDesc)
 //##################################################################################
 AliHLTHOMERSourceDesc::AliHLTHOMERSourceDesc() :
   fSelected( kFALSE ),
+  fSourceName(),
   fHostname(),
   fPort(),
-  fSourceName(),
-  fClassName(),
+  fDataType(),
   fDetector(),
-  fSubDetector(),
-  fSubSubDetector(),
   fSpecification(),
-  fDataType() {
+  fSubDetector(),
+  fSubSubDetector() {
   // see header file for class documentation
   // or
   // refer to README to build package
@@ -53,26 +52,37 @@ AliHLTHOMERSourceDesc::AliHLTHOMERSourceDesc() :
   // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
 }
 
-
 //##################################################################################
-AliHLTHOMERSourceDesc::AliHLTHOMERSourceDesc( TString hostname, Int_t port ) :
-  fSelected( kFALSE ),
-  fHostname( hostname ),
-  fPort( port ),
-  fSourceName(),
-  fClassName(),
-  fDetector(),
-  fSubDetector(),
-  fSubSubDetector(), 
-  fSpecification(),
-  fDataType() {
+AliHLTHOMERSourceDesc::~AliHLTHOMERSourceDesc() {
   // see header file for class documentation
-
 }
 
+/*
+ * ---------------------------------------------------------------------------------
+ *                        Setter - public
+ * ---------------------------------------------------------------------------------
+ */
 
-//##################################################################################
-AliHLTHOMERSourceDesc::~AliHLTHOMERSourceDesc() {
+//#################################################################################
+void AliHLTHOMERSourceDesc::SetService( TString hostname, Int_t port, TString origin, 
+                                       TString type, TString spec ) {
   // see header file for class documentation
-}
 
+  fHostname = hostname;
+  fPort = port;
+  
+  fDataType = type;
+  fDataType.Remove( TString::kTrailing, ' ' );
+
+  fDetector = origin;
+  fDetector.Remove( TString::kTrailing, ' ' );
+
+  // -- Temporary until Specification is set in service
+  fSpecification = static_cast<ULong_t>(spec.Atoll());
+  fSubDetector = 0;
+  fSubSubDetector = 0;
+
+  fSourceName.Form("%s_%s_0x%08X", fDetector.Data(), fDataType.Data(), fSpecification ); 
+
+  return;
+}