3 #ifndef ALIHLTTPCRUNSTATISTICS_H
4 #define ALIHLTTPCRUNSTATISTICS_H
6 /* This file is property of and copyright by the ALICE HLT Project *
7 * ALICE Experiment at CERN, All rights reserved. *
8 * See cxx source for full Copyright notice */
10 /** @file AliHLTTPCRunStatistics.h
11 @author Jochen Thaeder
13 @brief TPC class for event statistics, derived from @see AliHLTRunStatistics
16 // see below for class documentation
18 // refer to README to build package
20 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
25 #include "AliHLTRunStatistics.h"
28 * @class AliHLTTPCRunStatistics
29 * @brief TPC class for event statistics, derived from @see AliHLTRunStatistics
31 * The run statistic classes hold information / histograms about certain
32 * characteristica of the processed events. They are devided into 3 parts. A base class
33 * @see AliHLTRunStatistics for general Information, detector specific
34 * classes like @see AliHLTTPCRunStatistics for the TPC and a summary class
35 * @see AliHLTRunStatisticsSummary which can hold several detector classes.
37 * This is the detector class for the TPC.
39 * See base class @see AliHLTRunStatistics for further information.
41 * @ingroup alihlt_run_statistics alihlt_trigger
44 class AliHLTTPCRunStatistics : public AliHLTRunStatistics {
49 AliHLTTPCRunStatistics();
51 virtual ~AliHLTTPCRunStatistics();
55 /** Set Total number of tracks found
56 * @param i number of tracks
58 void SetNTotalTracks( Int_t i ) { fNTotalTracks = (ULong64_t) i; }
60 /** Add to Total number of tracks found
61 * @param i number of tracks
63 void AddNTotalTracks( Int_t i ) { fNTotalTracks += (ULong64_t) i; }
65 /** Get Total number of tracks found
66 * @return number of tracks
68 ULong64_t GetNTotalTracks() { return fNTotalTracks; }
72 /** Set Total number of tracks found
73 * @param i number of tracks
75 void SetNTracksAboveClusterThreshold( Int_t i ) { fNTracksAboveClusterThreshold = (ULong64_t) i; }
77 /** Add to Tracks with ( number of cluster >= fClusterThreshold )
78 * @param i number of tracks
80 void AddNTracksAboveClusterThreshold( Int_t i ) { fNTracksAboveClusterThreshold += (ULong64_t) i; }
82 /** Get Tracks with ( number of cluster >= fClusterThreshold )
83 * @return number of tracks
85 ULong64_t GetNTracksAboveClusterThreshold() { return fNTracksAboveClusterThreshold; }
89 /** Get Threshold for number of clusters per track
92 Int_t GetClusterThreshold() { return fClusterThreshold; }
94 /** Set Threshold for number of clusters per track
97 void SetClusterThreshold( Int_t i) { fClusterThreshold = i; }
101 /** Set Total number of cluster found
102 * @param i number of cluster
104 void SetNTotalCluster( Int_t i ) { fNTotalCluster = (ULong64_t) i; }
106 /** Add to Total number of cluster found
107 * @param i number of cluster
109 void AddNTotalCluster( Int_t i ) { fNTotalCluster += (ULong64_t) i; }
111 /** Get Total number of cluster found
112 * @return number of cluster
114 ULong64_t GetNTotalCluster() { return fNTotalCluster; }
118 /** Set Number of cluster which were used in tracks
119 * @param i number of cluster
121 void SetNUsedCluster( Int_t i ) { fNUsedCluster = (ULong64_t) i; }
123 /** Add to Number of cluster which were used in tracks
124 * @param i number AvgClusterPerTrackof cluster
126 void AddNUsedCluster( Int_t i ) {fNUsedCluster += (ULong64_t) i; }
128 /** Get Number of cluster which were used in tracks
129 * @return number of cluster
131 ULong64_t GetNUsedCluster() { return fNUsedCluster; }
135 /** Set Average of ( number of clusters per track ), floored
136 * @param i number of cluster
138 void SetAvgClusterPerTrack( Int_t i ) { fAvgClusterPerTrack = (ULong64_t) i; }
140 /** Add to Average of ( number of clusters per track ), floored
141 * @param i number of cluster
143 void AddAvgClusterPerTrack( Int_t i ) { fAvgClusterPerTrack += (ULong64_t) i; }
145 /** Get Average of ( number of clusters per track ), floored
146 * @return number of cluster
148 ULong64_t GetAvgClusterPerTrack() { return fAvgClusterPerTrack; }
152 /** copy constructor prohibited */
153 AliHLTTPCRunStatistics (const AliHLTTPCRunStatistics&);
155 /** assignment operator prohibited */
156 AliHLTTPCRunStatistics& operator= (const AliHLTTPCRunStatistics&);
160 /** Total number of tracks found */
161 ULong64_t fNTotalTracks; // see above
163 /** Tracks with ( number of cluster >= fClusterThreshold )
164 * ( for long tracks )
166 ULong64_t fNTracksAboveClusterThreshold; // see above
170 /** Threshold for number of clusters per track
171 * ( for long tracks )
173 Int_t fClusterThreshold; // see above
175 /** Total number of cluster found */
176 ULong64_t fNTotalCluster; // see above
178 /** Number of cluster which were used in tracks */
179 ULong64_t fNUsedCluster; // see above
181 /** Average of ( number of clusters per track ), floored */
182 ULong64_t fAvgClusterPerTrack; // see above
184 ClassDef(AliHLTTPCRunStatistics, 0);