]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/EVE/AliHLTEveHistoMerger.h
removing the CTPData from the HLTGlobalTrigger decision because of bug #88431 until...
[u/mrichter/AliRoot.git] / HLT / EVE / AliHLTEveHistoMerger.h
CommitLineData
34b10fb1 1// -*- Mode: C++ -*-
2// $Id$
3
4#ifndef ALIHLTEVEHISTOMERGER_H
5#define ALIHLTEVEHISTOMERGER_H
6
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 *
10
11 /** @file AliHLTEveHistoMerger.h
12 @author Kalliopi Kanaki, Kenneth Aamodt
13 @date
14 @brief Component for acting upon histograms
15 */
16
17// see below for class documentation
18// or
19// refer to README to build package
20// or
21// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
22
23#include "AliHLTDataTypes.h"
24#include <vector>
25
26class TH1;
27class TH2;
28class TObject;
29
30/**
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.
35 *
36 * The component has the following component arguments:
37 *
38 * -sum-noise-histograms Loops over the output of TPCNoiseMap and sums the partition histograms
39 * They are sorted per TPC side.
40 *
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)
43 *
44 * -use-general It will become the standard general option for summing histograms
45 *
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.
49 *
50 * @ingroup alihlt_tpc
51 */
52
53class AliHLTEveHistoMerger {
54
55public:
56 struct AliHLTGlobalHCInstance
57 {
58 TObject *fObject;
59 AliHLTUInt32_t fHLTSpecification;
60 };
61
62 struct AliHLTGlobalHCCollection
63 {
64 public:
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 fMergedObject = x.fMergedObject;
69 fInstances = x.fInstances;
70 fNeedToMerge = x.fNeedToMerge;
71 return *this;
72 }
73
74 ~AliHLTGlobalHCCollection(){}
75
76 TObject *fMergedObject;
77 std::vector<AliHLTGlobalHCInstance> fInstances;
78 bool fNeedToMerge;
79 };
80
81 /** standard constructor */
82 AliHLTEveHistoMerger();
83 /** destructor */
84 virtual ~AliHLTEveHistoMerger();
85
86 TObject* Process( const TObject* evtData, AliHLTUInt32_t spec);
87
88private:
89
90 /** copy constructor prohibited */
91 AliHLTEveHistoMerger(const AliHLTEveHistoMerger&);
92
93 /** assignment operator prohibited */
94 AliHLTEveHistoMerger& operator=(const AliHLTEveHistoMerger&);
95
96 void Clear(); // reset the store
97
98
99 std::vector<AliHLTGlobalHCCollection> fStore;
100
101};
102
103#endif