Project
Loading...
Searching...
No Matches
CosmicProcessor.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
14#ifndef ALICEO2_TOF_COSMICPROCESSOR_H
15#define ALICEO2_TOF_COSMICPROCESSOR_H
16
17#include <utility>
18#include <vector>
19#include "TOFBase/Geo.h"
20#include "TOFBase/Digit.h"
23
24namespace o2
25{
26
27namespace tof
28{
30{
31 using Digit = o2::tof::Digit;
33
34 public:
35 CosmicProcessor() = default;
36 ~CosmicProcessor() = default;
37
40
41 void process(DigitDataReader& r, bool fill = true);
42 void processTrack();
43 void clear();
44 std::vector<CosmicInfo>* getCosmicInfo() { return (&mCosmicInfo); }
45 std::vector<CalibInfoTrackCl>* getCosmicTrack() { return (&mCosmicTrack); }
46 std::vector<int>* getCosmicTrackSize() { return (&mSizeTrack); }
47
48 private:
49 std::vector<CosmicInfo> mCosmicInfo;
50 std::vector<CalibInfoTrackCl> mCosmicTrack;
51 std::vector<CalibInfoTrackCl> mCosmicTrackTemp;
52 std::vector<int> mSizeTrack;
53 int mCounters[Geo::NCHANNELS];
54};
55
56} // namespace tof
57} // namespace o2
58#endif /* ALICEO2_TOF_COSMICPROCESSOR_H */
Info from cosmic.
Definition of the TOF hit reader.
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to process
std::vector< CalibInfoTrackCl > * getCosmicTrack()
std::vector< int > * getCosmicTrackSize()
CosmicProcessor & operator=(const CosmicProcessor &)=delete
CosmicProcessor(const CosmicProcessor &)=delete
std::vector< CosmicInfo > * getCosmicInfo()
DigitDataReader class for TOF. Feeds the MC digits to the Cluster Finder.
Definition DataReader.h:60
TOF digit implementation.
Definition Digit.h:31
static constexpr int NCHANNELS
Definition Geo.h:126
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Transient data for single strip digits.
Definition DataReader.h:32