30 #ifndef LARDATAOBJ_SIMULATION_SIMPHOTONS_H 31 #define LARDATAOBJ_SIMULATION_SIMPHOTONS_H 51 class SimPhotonsCollection;
54 bool operator< (OnePhoton
const&, OnePhoton
const&);
170 void SetChannel(
int ch);
246 inline bool sim::SimPhotonsLite::operator==
266 {
return fTheSDName; }
269 { fTheSDName = TheSDName; }
274 #endif // LARDATAOBJ_SIMULATION_SIMPHOTONS_H list_type::allocator_type allocator_type
std::map< int, SimPhotons > list_type
void SetSDName(std::string const &TheSDName)
Sets the name of the sensitive detector for this collection.
Index OpChannel(Index detNum, Index channel)
bool operator==(const SimPhotons &other) const
Returns whether other is on the same channel (OpChannel) as this.
int OpChannel() const
Returns the optical channel number this object is associated to.
list_type::difference_type difference_type
std::vector< OnePhoton > list_type
DoubleProduct & operator+=(DoubleProduct &left, DoubleProduct const &right)
list_type::size_type size_type
list_type::size_type size_type
All information of a photon entering the sensitive optical detector volume.
list_type::difference_type difference_type
int fOpChannel
Optical detector channel associated to this data.
list_type::key_compare key_compare
SimPhotons(int chan)
Constructor: associated to optical detector channel chan, and empty.
list_type::key_type key_type
geo::Point_t InitialPosition
Scintillation position in world coordinates [cm].
list_type::reverse_iterator reverse_iterator
std::map< int, int > DetectedPhotons
Number of photons detected at each given time: time tick -> photons.
void SetChannel(int ch)
Sets the optical detector channel number this object is associated to.
Definitions of vector data types for optical detectors.
list_type::const_reverse_iterator const_reverse_iterator
std::string const & GetSDName() const
Returns the name of the sensitive detector for this collection.
list_type::const_reverse_iterator const_reverse_iterator
int OpChannel
Optical detector channel associated to this data.
list_type::iterator iterator
SimPhotonsLite(int chan)
Constructor: associated to optical detector channel chan, and empty.
list_type::iterator iterator
Code to link reconstructed objects back to the MC truth information.
list_type::mapped_type mapped_type
list_type::value_type value_type
list_type::reverse_iterator reverse_iterator
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
Collection of photons which recorded on one channel.
Compact representation of photons on a channel.
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
DoubleProduct operator+(DoubleProduct const &left, DoubleProduct const right)
bool SetInSD
Whether the photon reaches the sensitive detector.
list_type::const_iterator const_iterator
list_type::value_type value_type
geo::OpticalPoint_t FinalLocalPosition
Where photon enters the optical detector in local coordinates [cm].
list_type::const_iterator const_iterator
Definitions of geometry vector data types.
OpticalPoint3DBase_t< double > OpticalPoint_t
Type of optical 3D point with representation in double precision.
std::string fTheSDName
Sensitive detector name.
float Energy
Scintillation photon energy [GeV].
Collection of sim::SimPhotons, indexed by channel number.
bool operator<(const BeamGateInfo &lhs, const BeamGateInfo &rhs)
bool operator==(ModuleKeyAndType const &a, ModuleKeyAndType const &b) noexcept
int MotherTrackID
ID of the GEANT4 track causing the scintillation.