]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/util/AliHLTRootFilePublisherComponent.cxx
initialization of CDB in wrapper interface;added treatment of reconfiguration event
[u/mrichter/AliRoot.git] / HLT / BASE / util / AliHLTRootFilePublisherComponent.cxx
index 6c05eab4f17b2c95b6735f4afdccd2460c1fd067..73888fca30968d47e9511c84037b146f2195370d 100644 (file)
@@ -1,10 +1,11 @@
 // $Id$
 
 /**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * This file is property of and copyright by the ALICE HLT Project        * 
+ * ALICE Experiment at CERN, All rights reserved.                         *
  *                                                                        *
- * Authors: Matthias Richter <Matthias.Richter@ift.uib.no>                *
- *          for The ALICE Off-line Project.                               *
+ * Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no>        *
+ *                  for The ALICE HLT Project.                            *
  *                                                                        *
  * Permission to use, copy, modify and distribute this software and its   *
  * documentation strictly for non-commercial purposes is hereby granted   *
@@ -28,9 +29,6 @@
 // temporary
 #include "TH1F.h"
 
-/** the global object for component registration */
-AliHLTRootFilePublisherComponent gAliHLTRootFilePublisherComponent;
-
 /** ROOT macro for the implementation of ROOT specific class methods */
 ClassImp(AliHLTRootFilePublisherComponent)
 
@@ -46,21 +44,6 @@ AliHLTRootFilePublisherComponent::AliHLTRootFilePublisherComponent()
 
 }
 
-AliHLTRootFilePublisherComponent::AliHLTRootFilePublisherComponent(const AliHLTRootFilePublisherComponent&)
-  :
-  AliHLTFilePublisher()
-{
-  // see header file for class documentation
-  HLTFatal("copy constructor untested");
-}
-
-AliHLTRootFilePublisherComponent& AliHLTRootFilePublisherComponent::operator=(const AliHLTRootFilePublisherComponent&)
-{ 
-  // see header file for class documentation
-  HLTFatal("assignment operator untested");
-  return *this;
-}
-
 AliHLTRootFilePublisherComponent::~AliHLTRootFilePublisherComponent()
 {
   // see header file for class documentation
@@ -117,14 +100,15 @@ int AliHLTRootFilePublisherComponent::OpenFiles()
   return iResult;
 }
 
-int AliHLTRootFilePublisherComponent::GetEvent( const AliHLTComponentEventData& evtData,
-             AliHLTComponentTriggerData& trigData,
-             AliHLTUInt8_t* outputPtr
-             AliHLTUInt32_t& size,
-             vector<AliHLTComponentBlockData>& outputBlocks )
+int AliHLTRootFilePublisherComponent::GetEvent( const AliHLTComponentEventData& /*evtData*/,
+                                               AliHLTComponentTriggerData& /*trigData*/,
+                                               AliHLTUInt8_t* /*outputPtr*/
+                                               AliHLTUInt32_t& /*size*/,
+                                               vector<AliHLTComponentBlockData>& /*outputBlocks*/ )
 {
+  // see header file for class documentation
   int iResult=0;
-  if (GetCurrentSpecification()==0) {
+  if (GetEventCount()%2==0) {
     TH1F *hpx = new TH1F("hpx","px distribution",100,-4,4);
     hpx->FillRandom("gaus",1000);
     PushBack(hpx, "TH1F", "ROOT");