4 #ifndef ALIHLTEVEHISTOMERGER_H
5 #define ALIHLTEVEHISTOMERGER_H
7 //* This file is property of and copyright by the ALICE HLT Project *
8 //* ALICE Experiment at CERN, All rights reserved. *
9 //* See cxx source for full Copyright notice *
11 /** @file AliHLTEveHistoMerger.h
12 @author Kalliopi Kanaki, Kenneth Aamodt
14 @brief Component for acting upon histograms
17 // see below for class documentation
19 // refer to README to build package
21 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
23 #include "AliHLTDataTypes.h"
31 * @class AliHLTEveHistoMerger
32 * Implementation of the component to read histograms from other
33 * components and add, divide etc.
34 * The component implements the interface methods of the @ref AliHLTProcessor.
36 * The component has the following component arguments:
38 * -sum-noise-histograms Loops over the output of TPCNoiseMap and sums the partition histograms
39 * They are sorted per TPC side.
41 * -sum-krypton-histograms Loops over the output of the krypton CF and sums the histograms
42 * (it will become obsolete, when the next option does all the work)
44 * -use-general It will become the standard general option for summing histograms
46 * -ignore-specification It ignores the last part of the histogram name, if it has
47 * the form "_Slice_%.2d%.2d_Partition_%.2d%.2d, minSlice, maxSlice, minPartition, maxPartition".
48 * It keeps the first part of the hist name and uses it to name the summed histogram.
53 class AliHLTEveHistoMerger {
56 struct AliHLTGlobalHCInstance
59 AliHLTUInt32_t fHLTSpecification;
62 struct AliHLTGlobalHCCollection
65 AliHLTGlobalHCCollection():fMergedObject(0),fInstances(),fNeedToMerge(0){}
66 AliHLTGlobalHCCollection( const AliHLTGlobalHCCollection &x):fMergedObject(x.fMergedObject),fInstances(x.fInstances),fNeedToMerge(x.fNeedToMerge){}
67 AliHLTGlobalHCCollection &operator=( const AliHLTGlobalHCCollection &x){
68 if (this==&x) return *this;
69 fMergedObject = x.fMergedObject;
70 fInstances = x.fInstances;
71 fNeedToMerge = x.fNeedToMerge;
75 ~AliHLTGlobalHCCollection(){}
77 TObject *fMergedObject;
78 std::vector<AliHLTGlobalHCInstance> fInstances;
82 /** standard constructor */
83 AliHLTEveHistoMerger();
85 virtual ~AliHLTEveHistoMerger();
87 TObject* Process( const TObject* evtData, AliHLTUInt32_t spec);
91 /** copy constructor prohibited */
92 AliHLTEveHistoMerger(const AliHLTEveHistoMerger&);
94 /** assignment operator prohibited */
95 AliHLTEveHistoMerger& operator=(const AliHLTEveHistoMerger&);
97 void Clear(); // reset the store
100 std::vector<AliHLTGlobalHCCollection> fStore;