// -*- Mode: C++ -*- // $Id$ #ifndef ALIHLTTPCNOISEMAPCOMPONENT_H #define ALIHLTTPCNOISEMAPCOMPONENT_H //* This file is property of and copyright by the ALICE HLT Project * //* ALICE Experiment at CERN, All rights reserved. * //* See cxx source for full Copyright notice * /** @file AliHLTTPCNoiseMapComponent.h @author Kalliopi Kanaki @date @brief Component for plotting TPC data and applying noise map */ #include "AliHLTProcessor.h" //forward declarations class AliHLTTPCDigitReader; class TH1; class TH2; class AliTPCCalPad; /** * @class AliHLTTPCNoiseMapComponent * * Implementation of the component to fill histograms with TPC output and read * the noise map from HCDB by request. * * The component implements the interface methods of the @ref AliHLTProcessor. * It reads the data pad by pad and fills histograms. * * The component has the following component arguments: * * The histograms are filled on partition level and no argument is foreseen for this. * * In the rare case we want to fill them per TPC side, the following 2 arguments can be used. * * -plot-side-a Histograms the TPC side A * * -plot-side-c Histograms the TPC side C * * -apply-noisemap Reads the noise map from the HCDB (and plots it in a histogram) * * It returns an AliTPCCalPad object that can be used * for other plots (e.g. noise subtraction in histograms) * * It makes use of the class AliHLTTPCNoise (see header for usage). * * -reset-histograms Resets histograms * * @ingroup alihlt_tpc */ class AliHLTTPCNoiseMapComponent : public AliHLTProcessor { public: /** standard constructor */ AliHLTTPCNoiseMapComponent(); /** destructor */ virtual ~AliHLTTPCNoiseMapComponent(); // Public functions to implement AliHLTComponent's interface. // These functions are required for the registration process /** interface function, see @ref AliHLTComponent for description */ const char* GetComponentID(); /** interface function, see @ref AliHLTComponent for description */ void GetInputDataTypes( vector& list); /** interface function, see @ref AliHLTComponent for description */ AliHLTComponentDataType GetOutputDataType(); /** interface function, see @ref AliHLTComponent for description */ int GetOutputDataTypes(AliHLTComponentDataTypeList& tgtList); /** interface function, see @ref AliHLTComponent for description */ virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier ); /** interface function, see @ref AliHLTComponent for description */ AliHLTComponent* Spawn(); /** function for acting on the saving and cleaning histograms, after they are filled */ void MakeHistosPublic(); protected: // Protected functions to implement AliHLTComponent's interface. // These functions provide initialization as well as the actual processing capabilities of the component. int DoInit( int argc, const char** argv ); int DoDeinit(); int DoEvent( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData ); int Reconfigure(const char* cdbEntry, const char* chainId); using AliHLTProcessor::DoEvent; private: int Configure(const char* arguments); /** copy constructor prohibited */ AliHLTTPCNoiseMapComponent(const AliHLTTPCNoiseMapComponent&); /** assignment operator prohibited */ AliHLTTPCNoiseMapComponent& operator=(const AliHLTTPCNoiseMapComponent&); void ResetHistograms(); AliHLTUInt32_t fSpecification; //!transient Bool_t fPlotSideA; //!transient Bool_t fPlotSideC; //!transient Bool_t fApplyNoiseMap; //!transient Bool_t fResetHistograms;//!transient Bool_t fIsPacked; //!transient Bool_t fIsUnpacked; //!transient Int_t fCurrentSlice; //!transient Int_t fCurrentPartition; //!transient Int_t fCurrentRow; //!transient TH1 *fHistSignal; //!transient TH2 *fHistMaxSignal; //!transient TH2 *fHistTotSignal; //!transient TH2 *fHistPadRMS; //!transient TH2 *fHistCDBMap; //!transient TH2 *fHistSideA; //!transient TH2 *fHistSideC; //!transient ClassDef(AliHLTTPCNoiseMapComponent, 3) }; #endif