1 /**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * All rights reserved. *
5 * Primary Authors: Oystein Djuvsland *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15 #ifndef ALIHLTPHOSBASELINEANALYZERCOMPONENT_H
16 #define ALIHLTPHOSBASELINEANALYZERCOMPONENT_H
20 * Class does baseline analysis
22 * @file AliHLTPHOSBaselineAnalyzerComponent.h
23 * @author Oystein Djuvsland
25 * @brief A baseline analyzer for PHOS HLT
28 // see below for class documentation
30 // refer to README to build package
32 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
34 #include "AliHLTPHOSProcessor.h"
36 class AliHLTPHOSBaselineAnalyzer;
41 * @class AliHLTPHOSBaselineAnalyzerComponent
43 * Class for running baseline analysis for PHOS in HLT. Takes raw data as input and creates
44 * objects of class AliHLTPHOSBaseline. Also it fills histograms of baselines as well as RMS
48 class AliHLTPHOSBaselineAnalyzerComponent : public AliHLTPHOSProcessor
53 AliHLTPHOSBaselineAnalyzerComponent();
56 virtual ~AliHLTPHOSBaselineAnalyzerComponent();
58 /** Copy constructor */
59 AliHLTPHOSBaselineAnalyzerComponent(const AliHLTPHOSBaselineAnalyzerComponent &) :
60 AliHLTPHOSProcessor(),
61 fBaselineAnalyzerPtr(0),
73 //Copy constructor not implemented
77 AliHLTPHOSBaselineAnalyzerComponent & operator = (const AliHLTPHOSBaselineAnalyzerComponent)
83 /** interface function, see @ref AliHLTComponent for description */
84 const char* GetComponentID();
86 /** interface function, see @ref AliHLTComponent for description */
87 void GetInputDataTypes(std::vector<AliHLTComponentDataType>& list);
89 /** interface function, see @ref AliHLTComponent for description */
90 AliHLTComponentDataType GetOutputDataType();
92 /** interface function, see @ref AliHLTComponent for description */
93 void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
95 /** interface function, see @ref AliHLTComponent for description */
96 int DoEvent(const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
97 AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size,
98 std::vector<AliHLTComponentBlockData>& outputBlocks);
100 /** interface function, see @ref AliHLTComponent for description */
101 AliHLTComponent* Spawn();
105 /** interface function, see @ref AliHLTComponent for description */
106 using AliHLTPHOSProcessor::DoEvent;
108 int DoInit(int argc, const char** argv);
110 /** interface function, see @ref AliHLTComponent for description */
111 virtual int Deinit(); ////////// PTH WARNING you should Define a class AliHLTPHOSModuleProcessor
115 /** Calculate all values baselines, RMS etc. */
118 /** Pointer to a baseline analyzer */
119 AliHLTPHOSBaselineAnalyzer *fBaselineAnalyzerPtr; //! transient
121 /** Pointer the a tree containing the TClonesArrays of AliHLTPHOSBaseline objects */
122 TTree *fTreePtr; //! transient
124 /** TClonesArray of AliHLTPHOSBaseline objects */
125 TClonesArray *fBaselineArrayPtr; //! transient
128 UInt_t fEvCnt; //COMMENT
130 /** Number of events between each writing of files */
131 UInt_t fWriteInterval; //COMMENT
133 /** Number of events between each filling of the tree */
134 UInt_t fFillInterval; //COMMENT
136 /** The filename base */
137 char *fFilename; //! transient
139 /** The directory to write the files */
140 char* fDirectory; //! transient
142 /** The path for the histograms */
143 char* fHistPath; //! transient
145 /** The run number */
146 Int_t fRunNb; //COMMENT
148 /** If every value should be calculated, not only RMS */
149 Bool_t fCalculateAll; //COMMMENT
151 /** Interface variable */
152 static const AliHLTComponentDataType fgkInputDataTypes[]; //COMMENT