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