1
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk:8080/projects/maus
3
* MAUS is free software: you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License as published by
5
* the Free Software Foundation, either version 3 of the License, or
6
* (at your option) any later version.
8
* MAUS is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with MAUS. If not, see <http://www.gnu.org/licenses/>.
18
/** @class SciFiLookup
19
* Class used to link between SciFiDigits and the MC hits used to make them
22
#ifndef SCIFILOOKUP_HH
23
#define SCIFILOOKUP_HH
31
#include "src/common_cpp/DataStructure/MCEvent.hh"
32
#include "src/common_cpp/DataStructure/Hit.hh"
33
#include "src/common_cpp/DataStructure/SciFiNoiseHit.hh"
34
#include "src/common_cpp/DataStructure/SciFiDigit.hh"
40
/** @brief Default constructor */
43
/** @brief Default destructor, does nothing */
46
/** @brief Create the maps between digits and hits */
47
bool make_hits_map(MCEvent* evt);
49
/** @brief Create the maps between digits and noise hits */
50
bool make_noise_map(MCEvent* evt);
52
/** @brief Return a vector of SciFiHits used to make a SciFiDigit */
53
bool get_hits(const SciFiDigit* dig, std::vector<SciFiHit*> &hits);
55
/** @brief Return a vector of SciFiNoiseHits used to make a SciFiDigit */
56
bool get_noise(const SciFiDigit* dig, std::vector<SciFiNoiseHit*> &noise);
58
/** @brief Return a vector of SciFiNoiseHits used to make a SciFiDigit */
59
uint64_t get_digit_id(const SciFiDigit* digit);
61
/** @brief Return the digit to hits map */
62
std::map<uint64_t, std::vector<SciFiHit*> > get_hits_map() { return _hits_map; }
64
/** @brief Return the digit to noise hits map */
65
std::map<uint64_t, std::vector<SciFiNoiseHit*> > get_noise_map() { return _noise_map; }
68
std::map<uint64_t, std::vector<SciFiHit*> > _hits_map;
69
std::map<uint64_t, std::vector<SciFiNoiseHit*> > _noise_map;