Project
Loading...
Searching...
No Matches
MCEventStats.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
13
14#ifndef ALICEO2_DATAFORMATS_MCEVENTSTATS_H_
15#define ALICEO2_DATAFORMATS_MCEVENTSTATS_H_
16
17#include "Rtypes.h" // to get ClassDef?
18
19namespace o2
20{
21namespace dataformats
22{
23
27{
28 public:
29 void setNHits(int n) { mNOfHits = n; }
30 int getNHits() const { return mNOfHits; }
31 void setNTransportedTracks(int n) { mNOfTransportedTracks = n; }
32 int getNTransportedTracks() const { return mNOfTransportedTracks; }
33 void setNKeptTracks(int n) { mNOfKeptTracks = n; }
34 int getNKeptTracks() const { return mNOfKeptTracks; }
35 void setNSteps(int n) { mNOfSteps = n; }
36 int getNSteps() const { return mNOfSteps; }
37
39 void add(MCEventStats const& other)
40 {
41 mNOfHits += other.mNOfHits;
42 mNOfTransportedTracks += other.mNOfTransportedTracks;
43 mNOfKeptTracks += other.mNOfKeptTracks;
44 mNOfSteps += other.mNOfSteps;
45 }
46
47 private:
48 // store a view global properties that this event
49 // had in the current simulation (which can be used quick filtering/searching)
50
51 int mNOfHits = 0; // number of hits produced
52 int mNOfTransportedTracks = 0; // number of tracks transported
53 int mNOfKeptTracks = 0; // number of tracks stored/kept in output
54 int mNOfSteps = 0; // number of MC steps done
55
56 ClassDefNV(MCEventStats, 1);
57
58};
60/*****************************************************************/
61/*****************************************************************/
62
63} /* namespace dataformats */
64} /* namespace o2 */
65
66#endif /* ALICEO2_DATAFORMATS_MCEVENTSTATS_H_ */
void add(MCEventStats const &other)
merge from another object
GLdouble n
Definition glcorearb.h:1982
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other