29 #ifndef LARDATAOBJ_SIMULATION_SIMPHOTONS_H 30 #define LARDATAOBJ_SIMULATION_SIMPHOTONS_H 48 class SimPhotonsCollection;
51 bool operator<(OnePhoton
const&, OnePhoton
const&);
75 float Time{std::numeric_limits<float>::min()};
155 int OpChannel()
const;
158 void SetChannel(
int ch);
206 std::string
const& GetSDName()
const;
209 void SetSDName(std::string
const& TheSDName);
265 fTheSDName = TheSDName;
270 #endif // LARDATAOBJ_SIMULATION_SIMPHOTONS_H list_type::allocator_type allocator_type
void SetSDName(std::string const &TheSDName)
Sets the name of the sensitive detector for this collection.
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
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.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definitions of vector data types for optical detectors.
Definitions of geometry vector data types.
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.
String & operator+=(String &s, VectorDumper< Vector > const &manip)
Appends a string rendering of a vector to the specified string.
list_type::iterator iterator
SimPhotonsLite(int chan)
Constructor: associated to optical detector channel chan, and empty.
list_type::iterator iterator
bool operator==(const SimPhotonsLite &other) const
Returns whether other is on the same channel (OpChannel) as this.
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.
bool SetInSD
Whether the photon reaches the sensitive detector.
QuadExpr operator+(double v, const QuadExpr &e)
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
OpticalPoint3DBase_t< double > OpticalPoint_t
Type of optical 3D point with representation in double precision.
std::map< int, SimPhotons > list_type
std::string fTheSDName
Sensitive detector name.
float Energy
Scintillation photon energy [GeV].
Collection of sim::SimPhotons, indexed by channel number.
bool operator==(infinite_endcount_iterator< T > const &, count_iterator< T > const &)
bool operator<(const BeamGateInfo &lhs, const BeamGateInfo &rhs)
int MotherTrackID
ID of the GEANT4 track causing the scintillation.