43 timeStart = timeEnd = timeMax = 0;
62 if (_x < rhs.
_x)
return true;
63 if (rhs.
_x < _x)
return false;
64 if (_y < rhs.
_y)
return true;
65 if (rhs.
_y < _y)
return false;
66 if (_z < rhs.
_z)
return true;
67 if (rhs.
_z < _z)
return false;
82 std::vector<deposit> deps{};
87 : pos(p),
pid(pi), deps(num_planes)
101 void MakeMCEdep(
const std::vector<sim::SimChannel>& schArray);
103 void MakeMCEdep(
const std::vector<sim::SimEnergyDeposit>& sedArray);
105 void MakeMCEdep(
const std::vector<sim::SimEnergyDepositLite>& sedArray);
109 return (_track_index.find(track_id) != _track_index.end());
115 auto iter = _track_index.find(track_id);
116 return (iter == _track_index.end() ? -1 : (int)((*iter).second));
120 const std::vector<sim::MCEdep>& GetEdepArrayAt(
size_t edep_index)
const;
123 const std::map<unsigned int, size_t>
TrackIndexMap()
const {
return _track_index; }
128 _track_index.clear();
129 std::vector<std::vector<sim::MCEdep>>().swap(_mc_edeps);
130 std::map<unsigned int, size_t>().swap(_track_index);
134 std::vector<sim::MCEdep>& __GetEdepArray__(
unsigned int track_id);
MCEdep(sim::UniquePosition p, geo::PlaneID pi, size_t num_planes, float e, float c, size_t id)
bool operator<(const UniquePosition &rhs) const
The data type to uniquely identify a Plane.
std::map< geo::PlaneID, size_t > createPlaneIndexMap()
int TrackToEdepIndex(unsigned int track_id) const
Converts a track ID to MCEdep array index. Returns -1 if no corresponding array found ...
bool ExistTrack(const unsigned int track_id) const
const std::map< unsigned int, size_t > TrackIndexMap() const
Returns a map of track id <-> MCEdep vector index.
contains information for a single step in the detector simulation (pared down in size to the essentia...
std::map< unsigned int, size_t > _track_index
Definition of data types for geometry description.
std::vector< std::vector< sim::MCEdep > > _mc_edeps
deposit(float e, float c)
UniquePosition(double x=0, double y=0, double z=0)
contains information for a single step in the detector simulation
object containing MC truth information necessary for making RawDigits and doing back tracking ...
constexpr T pi()
Returns the constant pi (up to 35 decimal digits of precision)