3 #ifndef ALIHLTRUNSUMMARYPRODUCERCOMPONENT_H
4 #define ALIHLTRUNSUMMARYPRODUCERCOMPONENT_H
6 /* This file is property of and copyright by the ALICE HLT Project *
7 * ALICE Experiment at CERN, All rights reserved. *
8 * See cxx source for full Copyright notice */
10 /** @file AliHLTRunSummaryProducerComponent.h
11 @author Jochen Thaeder
13 @brief Produces a run summary
16 // see below for class documentation
18 // refer to README to build package
20 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
22 #include "AliHLTProcessor.h"
23 #include "AliHLTRunSummary.h"
24 #include "AliHLTEventSummary.h"
27 * @class AliHLTRunSummaryProducerComponent
28 * @brief Produces a run summary
30 * This class produces a run summary, updating informations for whole run
31 * and sends it out for every event, in order to have it displayed with AliEve
33 * @ingroup alihlt_run_statistics alihlt_trigger
36 class AliHLTRunSummaryProducerComponent : public AliHLTProcessor {
41 AliHLTRunSummaryProducerComponent();
43 virtual ~AliHLTRunSummaryProducerComponent();
45 // Public functions to implement AliHLTComponent's interface.
46 // These functions are required for the registration process
48 const char* GetComponentID();
49 void GetInputDataTypes( AliHLTComponentDataTypeList& list );
51 AliHLTComponentDataType GetOutputDataType();
53 virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier );
54 AliHLTComponent* Spawn();
58 using AliHLTProcessor::DoEvent;
60 // Protected functions to implement AliHLTComponent's interface.
61 // These functions provide initialization as well as the actual processing
62 // capabilities of the component.
64 /** Initialize the component. */
65 Int_t DoInit( int argc, const char** argv );
67 /** DeInitialize the component. */
70 /** Process the data in the component */
71 Int_t DoEvent( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData);
73 // ------------------------------------------------------------------------------------------
74 /** Process event summary data block
75 * @param eventSummary to @see AliHLTEventSummary
77 void ProcessEventSummary( AliHLTEventSummary* eventSummary );
79 /** Process trigger data block
80 * @param trigData to @see AliHLTComponentTriggerData
82 void ProcessTriggerData( AliHLTComponentTriggerData& trigData );
86 /** copy constructor prohibited */
87 AliHLTRunSummaryProducerComponent (const AliHLTRunSummaryProducerComponent&);
89 /** assignment operator prohibited */
90 AliHLTRunSummaryProducerComponent& operator= (const AliHLTRunSummaryProducerComponent&);
92 /** Run summary class*/
93 AliHLTRunSummary* fRunSummary; //! transient
95 ClassDef(AliHLTRunSummaryProducerComponent, 0);