List of all members | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
fevt::Telescope Class Reference

Fluorescence Detector Telescope Event. More...

#include <Telescope.h>

Public Types

typedef
boost::indirect_iterator
< InternalChannelIterator,
Channel & > 
ChannelIterator
 An iterator over available channels for r/w. More...
 
typedef
boost::indirect_iterator
< InternalConstChannelIterator,
const Channel & > 
ConstChannelIterator
 An iterator over available channles for read. More...
 
typedef std::vector
< utl::Vector >
::const_iterator 
ConstMirrorEventBorderPixelsIterator
 
typedef boost::filter_iterator
< ComponentSelector,
ConstAllPixelIterator
ConstPixelIterator
 
typedef boost::filter_iterator
< ComponentSelector,
AllPixelIterator
PixelIterator
 selective Pixel iterators More...
 

Public Member Functions

void Assign (const Telescope &t)
 copy all but keep original telescope and eye id More...
 
ChannelIterator ChannelsBegin ()
 
ConstChannelIterator ChannelsBegin () const
 
ChannelIterator ChannelsEnd ()
 
ConstChannelIterator ChannelsEnd () const
 
ChannelGetChannel (const unsigned int channelId)
 
const ChannelGetChannel (const unsigned int channelId) const
 
unsigned int GetEyeId () const
 
unsigned int GetId () const
 
unsigned int GetNActiveChannels () const
 
unsigned int GetNActivePixels () const
 
PixelGetPixel (const unsigned int pixelId, const ComponentSelector::Status status=ComponentSelector::eHasData)
 Retrieve Pixel by Id, throw exception if not existent. More...
 
const PixelGetPixel (const unsigned int pixelId, const ComponentSelector::Status status=ComponentSelector::eHasData) const
 
std::string GetRawTelPointing () const
 The pointing. More...
 
fevt::TelescopeRecDataGetRecData ()
 Reconstructed data for this telescope. More...
 
const fevt::TelescopeRecDataGetRecData () const
 
fevt::TelescopeSimDataGetSimData ()
 
const fevt::TelescopeSimDataGetSimData () const
 
ComponentSelector::Status GetStatus () const
 
unsigned int GetTimeOffset () const
 Time offset of this Telescope compared to fevt::Header::GetTime [ns]. More...
 
utl::TimeStamp GetTracesStartTime () const
 
fevt::TelescopeTriggerDataGetTriggerData ()
 
const fevt::TelescopeTriggerDataGetTriggerData () const
 
bool HasChannel (const unsigned int channelId) const
 
bool HasPixel (const unsigned int pixelId, const ComponentSelector::Status status=ComponentSelector::eHasData) const
 Check if the pixel is in the event. More...
 
bool HasRecData () const
 
bool HasSimData () const
 
bool HasTriggerData () const
 
void MakeChannel (const unsigned int channelId)
 
void MakePixel (const unsigned int pixelId, const ComponentSelector::Status status=ComponentSelector::eHasData)
 Make Pixel telescopeId. More...
 
void MakeRecData ()
 
void MakeSimData ()
 
void MakeTriggerData ()
 
ConstMirrorEventBorderPixelsIterator MirrorEventBorderPixelsBegin () const
 Begin of list of pixels just outside the mirror event. More...
 
ConstMirrorEventBorderPixelsIterator MirrorEventBorderPixelsEnd () const
 End of list of pixels just outside the mirror event. More...
 
Telescopeoperator= (const Telescope &t)
 
PixelIterator PixelsBegin ()
 iterator pointing to first available pixel of status eHasData (DEPRECATED) More...
 
ConstPixelIterator PixelsBegin () const
 first available pixel of status eHasData (DEPRECATED) More...
 
PixelIterator PixelsBegin (const ComponentSelector::Status status)
 iterator pointing to first available pixel of given status More...
 
ConstPixelIterator PixelsBegin (const ComponentSelector::Status status) const
 first available pixel of given status More...
 
PixelIterator PixelsEnd ()
 iterator pointing to end of available pixels of status eHasData (DEPRECATED) More...
 
ConstPixelIterator PixelsEnd () const
 end of available pixels of status eHasData (DEPRECATED) More...
 
PixelIterator PixelsEnd (const ComponentSelector::Status status)
 iterator pointing to end of available pixels of given status More...
 
ConstPixelIterator PixelsEnd (const ComponentSelector::Status status) const
 end of available pixels of given status More...
 
void SetRawTelPointing (const std::string &pointing)
 
void SetStatus (const ComponentSelector::Status status)
 
void SetTimeOffset (const unsigned int toffset)
 
void SetTracesStartTime (const utl::TimeStamp &tstamp)
 
 Telescope (const Telescope &t)
 

Private Types

typedef
boost::indirect_iterator
< InternalPixelIterator, Pixel & > 
AllPixelIterator
 An iterator over all pixels for read and write. More...
 
typedef
boost::indirect_iterator
< InternalConstPixelIterator,
const Pixel & > 
ConstAllPixelIterator
 An iterator over pixels for read. More...
 
typedef std::list< Channel * > InternalChannelContainer
 
typedef
InternalChannelContainer::iterator 
InternalChannelIterator
 
typedef
InternalChannelContainer::const_iterator 
InternalConstChannelIterator
 
typedef
InternalPixelContainer::const_iterator 
InternalConstPixelIterator
 
typedef std::list< Pixel * > InternalPixelContainer
 
typedef std::vector< utl::VectorInternalPixelDirCollection
 
typedef
InternalPixelContainer::iterator 
InternalPixelIterator
 

Private Member Functions

AllPixelIterator AllPixelsBegin ()
 
ConstAllPixelIterator AllPixelsBegin () const
 
AllPixelIterator AllPixelsEnd ()
 
ConstAllPixelIterator AllPixelsEnd () const
 
void CorrectIds (const unsigned int eyeId, const unsigned int telescopeId)
 
void GenerateMirrorEventBorderPixels () const
 
 Telescope (const unsigned int eyeId, const unsigned int telescopeId, const ComponentSelector::Status status=ComponentSelector::eHasData)
 
 ~Telescope ()
 

Private Attributes

InternalChannelContainer fChannels
 
unsigned int fEyeId = 0
 
InternalPixelDirCollection fMirrorEventBorderPixelsDir
 
InternalPixelContainer fPixels
 
std::string fRawTelPointing = "unknown"
 
utl::ShadowPtr< TelescopeRecDatafRecData
 
utl::ShadowPtr< TelescopeSimDatafSimData
 
ComponentSelector::Status fStatus
 This is for HEAT to determine pointing. More...
 
unsigned int fTelescopeId = 0
 
unsigned int fTimeOffset = 0
 
utl::TimeStamp fTracesStartTime
 
utl::ShadowPtr
< TelescopeTriggerData
fTriggerData
 

Friends

class Eye
 

Detailed Description

Fluorescence Detector Telescope Event.

Author
Stefano Argiro'

Definition at line 33 of file FEvent/Telescope.h.

Member Typedef Documentation

typedef boost::indirect_iterator<InternalPixelIterator, Pixel&> fevt::Telescope::AllPixelIterator
private

An iterator over all pixels for read and write.

Definition at line 45 of file FEvent/Telescope.h.

An iterator over available channels for r/w.

Definition at line 70 of file FEvent/Telescope.h.

typedef boost::indirect_iterator<InternalConstPixelIterator, const Pixel&> fevt::Telescope::ConstAllPixelIterator
private

An iterator over pixels for read.

Definition at line 48 of file FEvent/Telescope.h.

An iterator over available channles for read.

Definition at line 73 of file FEvent/Telescope.h.

An iterator over mirror event border pixels

Definition at line 170 of file FEvent/Telescope.h.

Definition at line 110 of file FEvent/Telescope.h.

Definition at line 36 of file FEvent/Telescope.h.

typedef InternalChannelContainer::iterator fevt::Telescope::InternalChannelIterator
private

Definition at line 37 of file FEvent/Telescope.h.

typedef InternalChannelContainer::const_iterator fevt::Telescope::InternalConstChannelIterator
private

Definition at line 38 of file FEvent/Telescope.h.

typedef InternalPixelContainer::const_iterator fevt::Telescope::InternalConstPixelIterator
private

Definition at line 42 of file FEvent/Telescope.h.

typedef std::list<Pixel*> fevt::Telescope::InternalPixelContainer
private

Definition at line 40 of file FEvent/Telescope.h.

Definition at line 50 of file FEvent/Telescope.h.

typedef InternalPixelContainer::iterator fevt::Telescope::InternalPixelIterator
private

Definition at line 41 of file FEvent/Telescope.h.

selective Pixel iterators

Definition at line 108 of file FEvent/Telescope.h.

Constructor & Destructor Documentation

fevt::Telescope::Telescope ( const Telescope t)
inline

Definition at line 59 of file FEvent/Telescope.h.

Telescope::Telescope ( const unsigned int  eyeId,
const unsigned int  telescopeId,
const ComponentSelector::Status  status = ComponentSelector::eHasData 
)
private

Definition at line 24 of file FEvent/Telescope.cc.

Telescope::~Telescope ( )
private

Definition at line 33 of file FEvent/Telescope.cc.

References fChannels, and fPixels.

Member Function Documentation

AllPixelIterator fevt::Telescope::AllPixelsBegin ( )
inlineprivate

Definition at line 52 of file FEvent/Telescope.h.

References fPixels.

Referenced by PixelsBegin().

ConstAllPixelIterator fevt::Telescope::AllPixelsBegin ( ) const
inlineprivate

Definition at line 54 of file FEvent/Telescope.h.

References fPixels.

AllPixelIterator fevt::Telescope::AllPixelsEnd ( )
inlineprivate

Definition at line 53 of file FEvent/Telescope.h.

References fPixels.

Referenced by PixelsBegin(), and PixelsEnd().

ConstAllPixelIterator fevt::Telescope::AllPixelsEnd ( ) const
inlineprivate

Definition at line 55 of file FEvent/Telescope.h.

References fPixels.

void Telescope::Assign ( const Telescope t)

copy all but keep original telescope and eye id

Definition at line 75 of file FEvent/Telescope.cc.

References CorrectIds(), fEyeId, and fTelescopeId.

Referenced by FdEyeMergerKG::FdEyeMerger::MergeEyes().

ChannelIterator fevt::Telescope::ChannelsBegin ( )
inline
ConstChannelIterator fevt::Telescope::ChannelsBegin ( ) const
inline

Definition at line 86 of file FEvent/Telescope.h.

References fChannels.

ChannelIterator fevt::Telescope::ChannelsEnd ( )
inline
ConstChannelIterator fevt::Telescope::ChannelsEnd ( ) const
inline

Definition at line 88 of file FEvent/Telescope.h.

References fChannels.

void Telescope::CorrectIds ( const unsigned int  eyeId,
const unsigned int  telescopeId 
)
private

Definition at line 404 of file FEvent/Telescope.cc.

References RdGeoCeLDFFitter::c, fEyeId, fRecData, fTelescopeId, and G4StationSimulatorOG::p.

Referenced by Assign().

void Telescope::GenerateMirrorEventBorderPixels ( ) const
private
Channel & Telescope::GetChannel ( const unsigned int  channelId)
const Channel & Telescope::GetChannel ( const unsigned int  channelId) const

Definition at line 101 of file FEvent/Telescope.cc.

References RdGeoCeLDFFitter::c, ERROR, fEyeId, and fTelescopeId.

unsigned int fevt::Telescope::GetEyeId ( ) const
inline
unsigned int fevt::Telescope::GetId ( ) const
inline
unsigned int fevt::Telescope::GetNActiveChannels ( ) const
inline

Definition at line 75 of file FEvent/Telescope.h.

References fChannels.

unsigned int fevt::Telescope::GetNActivePixels ( ) const
inline

Definition at line 92 of file FEvent/Telescope.h.

References fPixels.

Pixel & Telescope::GetPixel ( const unsigned int  pixelId,
const ComponentSelector::Status  status = ComponentSelector::eHasData 
)
const Pixel & Telescope::GetPixel ( const unsigned int  pixelId,
const ComponentSelector::Status  status = ComponentSelector::eHasData 
) const
std::string fevt::Telescope::GetRawTelPointing ( ) const
inline

The pointing.

Definition at line 163 of file FEvent/Telescope.h.

References fRawTelPointing.

Referenced by fdet::EventPointingManager::GetPointing().

fevt::TelescopeRecData & Telescope::GetRecData ( )

Reconstructed data for this telescope.

Definition at line 245 of file FEvent/Telescope.cc.

References fRecData.

Referenced by FdProfileConstrainedGeometryFitPG::PCGFitter::AdjustGeometry(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculateAdditionalIterationsToMeetTarget(), FdEnergyDepositFinderKG::ProfileCalculator::CalculateProfile(), FdProfileConstrainedGeometryFit::ApertureLight::CalculateShowerGeometryData(), FdProfileConstrainedGeometryFitPG::ApertureLight::CalculateShowerGeometryData(), FdApertureLightFinderKG::FdApertureLightFinder::CalculateShowerGeometryData(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculateTargetRelUncertainty(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculateTelescopeEfficiency(), FdProfileConstrainedGeometryFitPG::PCGFitter::FillParams(), FdApertureLightFinderKG::FdApertureLightFinder::FillTelescopeFluxes(), FdProfileConstrainedGeometryFitPG::ApertureLight::GetClearedTelescopeLightFlux(), FdProfileConstrainedGeometryFit::ApertureLight::GetClearedTelescopeLightFlux(), FdApertureLightFinderKG::FdApertureLightFinder::GetClearedTelescopeLightFlux(), FdProfileConstrainedGeometryFitPG::FdProfileConstrainedGeometryFit::GetDataFromPreviousFit(), FdProfileConstrainedGeometryFitPG::ChiZeroRegression::PrepParams(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::ProcessEvent(), FdProfileConstrainedGeometryFitPG::PCGFitter::Run(), FdLaserEnergyReconstructorKG::FdLaserEnergyReconstructor::Run(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::RunPhotonGenerationRayTracingLoop(), UseMcGeometryOG::UseMcGeometry::SetTimeFit(), and FdProfileConstrainedGeometryFitPG::PCGFitter::Underground().

const fevt::TelescopeRecData & Telescope::GetRecData ( ) const

Definition at line 252 of file FEvent/Telescope.cc.

References fRecData.

TelescopeSimData & Telescope::GetSimData ( )

Definition at line 220 of file FEvent/Telescope.cc.

References fSimData.

Referenced by FdBackgroundSimulatorOG::FdBackgroundSimulator::AddBackground(), UserModule::AnalyzeLightAtDiaphragm(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculateTelescopeEfficiency(), FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculateTelescopeTraceSum(), SpotPhotonGeneratorOG::SpotPhotonGenerator::DoSpot(), FdElectronicsSimulatorOG::FdElectronicsSimulator::ElecSim(), LightAtDiaphragmSimulatorKG::LightAtDiaphragmSimulator::EvaluateDirectCherenkovHits(), TelescopeSimulatorLX::TelescopeSimulator::FillTraces(), FdTriggerSimulatorOG::FdTriggerSimulator::FLTSim(), DrumPhotonGeneratorOG::DrumPhotonGenerator::GenerateDrumPhotons(), FdLightCollectionEfficiencyKG::PixelToApertureLightConverter::GetConversionConstant(), FdElectronicsSimulatorOG::FdElectronicsSimulator::InitCamera(), FdTriggerSimulatorOG::FdTriggerSimulator::MakeMirrorEvent(), io::Telescope_ROOT::operator>>(), UserModule::PlotLightAtDia(), MeanNpeFillerKG::MeanNpeFiller::Run(), FieldOfViewCalculatorKG::FieldOfViewCalculator::Run(), TelescopeSimulatorLX::TelescopeSimulator::Run(), SpotPhotonGeneratorOG::SpotPhotonGenerator::Run(), TelescopeSimulatorKG::TelescopeSimulator::Run(), TelescopeSimulatorKG2::TelescopeSimulator::Run(), DrumPhotonGeneratorOG::DrumPhotonGenerator::Run(), LightAtDiaphragmSimulatorKG::LightAtDiaphragmSimulator::Run(), ShowerPhotonGeneratorOG::ShowerPhotonGenerator::Run(), FdTriggerSimulatorOG::FdTriggerSimulator::ShiftEventToSLT(), FdTriggerSimulatorOG::FdTriggerSimulator::SLTSim(), and io::Telescope_ROOT::Telescope_ROOT().

const TelescopeSimData & Telescope::GetSimData ( ) const

Definition at line 227 of file FEvent/Telescope.cc.

References fSimData.

ComponentSelector::Status fevt::Telescope::GetStatus ( ) const
inline
unsigned int fevt::Telescope::GetTimeOffset ( ) const
inline
utl::TimeStamp fevt::Telescope::GetTracesStartTime ( ) const
inline

Start Time of all the traces in this object and in the associated Pixels and Channels

Definition at line 138 of file FEvent/Telescope.h.

References fTracesStartTime.

Referenced by FdLightCollectionEfficiencyKG::FdLightCollectionEfficiency::CalculateTelescopeEfficiency().

TelescopeTriggerData & Telescope::GetTriggerData ( )
const TelescopeTriggerData & Telescope::GetTriggerData ( ) const

Definition at line 277 of file FEvent/Telescope.cc.

References fTriggerData.

bool Telescope::HasChannel ( const unsigned int  channelId) const
bool Telescope::HasPixel ( const unsigned int  pixelId,
const ComponentSelector::Status  status = ComponentSelector::eHasData 
) const
bool fevt::Telescope::HasRecData ( ) const
inline
bool fevt::Telescope::HasSimData ( ) const
inline
bool fevt::Telescope::HasTriggerData ( ) const
inline
void Telescope::MakeChannel ( const unsigned int  channelId)
void Telescope::MakePixel ( const unsigned int  pixelId,
const ComponentSelector::Status  status = ComponentSelector::eHasData 
)
void Telescope::MakeRecData ( )
void Telescope::MakeSimData ( )
void Telescope::MakeTriggerData ( )
Telescope::ConstMirrorEventBorderPixelsIterator Telescope::MirrorEventBorderPixelsBegin ( ) const
Telescope::ConstMirrorEventBorderPixelsIterator Telescope::MirrorEventBorderPixelsEnd ( ) const
Telescope & Telescope::operator= ( const Telescope t)
Telescope::PixelIterator Telescope::PixelsBegin ( )
Telescope::ConstPixelIterator Telescope::PixelsBegin ( ) const

first available pixel of status eHasData (DEPRECATED)

Definition at line 370 of file FEvent/Telescope.cc.

References AllPixelsBegin(), AllPixelsEnd(), and fevt::ComponentSelector::eHasData.

PixelIterator fevt::Telescope::PixelsBegin ( const ComponentSelector::Status  status)
inline

iterator pointing to first available pixel of given status

Definition at line 123 of file FEvent/Telescope.h.

References AllPixelsBegin(), and AllPixelsEnd().

ConstPixelIterator fevt::Telescope::PixelsBegin ( const ComponentSelector::Status  status) const
inline

first available pixel of given status

Definition at line 129 of file FEvent/Telescope.h.

References AllPixelsBegin(), and AllPixelsEnd().

Telescope::PixelIterator Telescope::PixelsEnd ( )
Telescope::ConstPixelIterator Telescope::PixelsEnd ( ) const

end of available pixels of status eHasData (DEPRECATED)

Definition at line 393 of file FEvent/Telescope.cc.

References AllPixelsEnd(), and fevt::ComponentSelector::eHasData.

PixelIterator fevt::Telescope::PixelsEnd ( const ComponentSelector::Status  status)
inline

iterator pointing to end of available pixels of given status

Definition at line 126 of file FEvent/Telescope.h.

References AllPixelsEnd().

ConstPixelIterator fevt::Telescope::PixelsEnd ( const ComponentSelector::Status  status) const
inline

end of available pixels of given status

Definition at line 132 of file FEvent/Telescope.h.

References AllPixelsEnd().

void fevt::Telescope::SetRawTelPointing ( const std::string &  pointing)
inline
void fevt::Telescope::SetStatus ( const ComponentSelector::Status  status)
inline
void fevt::Telescope::SetTimeOffset ( const unsigned int  toffset)
inline
void fevt::Telescope::SetTracesStartTime ( const utl::TimeStamp tstamp)
inline

Definition at line 139 of file FEvent/Telescope.h.

References fTracesStartTime.

Referenced by io::Telescope_ROOT::operator>>().

Friends And Related Function Documentation

friend class Eye
friend

Definition at line 203 of file FEvent/Telescope.h.

Member Data Documentation

InternalChannelContainer fevt::Telescope::fChannels
private
unsigned int fevt::Telescope::fEyeId = 0
private
InternalPixelDirCollection fevt::Telescope::fMirrorEventBorderPixelsDir
mutableprivate

Hold the directions of the pixels that are one col/row outside the pixels that have been read out for the mirror event

Definition at line 201 of file FEvent/Telescope.h.

Referenced by GenerateMirrorEventBorderPixels(), MirrorEventBorderPixelsBegin(), MirrorEventBorderPixelsEnd(), and operator=().

InternalPixelContainer fevt::Telescope::fPixels
private
std::string fevt::Telescope::fRawTelPointing = "unknown"
private

Definition at line 197 of file FEvent/Telescope.h.

Referenced by GetRawTelPointing(), operator=(), and SetRawTelPointing().

utl::ShadowPtr<TelescopeRecData> fevt::Telescope::fRecData
private

Definition at line 191 of file FEvent/Telescope.h.

Referenced by CorrectIds(), GetRecData(), HasRecData(), MakeRecData(), and operator=().

utl::ShadowPtr<TelescopeSimData> fevt::Telescope::fSimData
private

Definition at line 190 of file FEvent/Telescope.h.

Referenced by GetSimData(), HasSimData(), MakeSimData(), and operator=().

ComponentSelector::Status fevt::Telescope::fStatus
private

This is for HEAT to determine pointing.

Definition at line 198 of file FEvent/Telescope.h.

Referenced by GetStatus(), operator=(), and SetStatus().

unsigned int fevt::Telescope::fTelescopeId = 0
private
unsigned int fevt::Telescope::fTimeOffset = 0
private

Definition at line 196 of file FEvent/Telescope.h.

Referenced by GetTimeOffset(), operator=(), and SetTimeOffset().

utl::TimeStamp fevt::Telescope::fTracesStartTime
private

Definition at line 193 of file FEvent/Telescope.h.

Referenced by GetTracesStartTime(), operator=(), and SetTracesStartTime().

utl::ShadowPtr<TelescopeTriggerData> fevt::Telescope::fTriggerData
private

Definition at line 192 of file FEvent/Telescope.h.

Referenced by GetTriggerData(), HasTriggerData(), MakeTriggerData(), and operator=().


The documentation for this class was generated from the following files:

, generated on Tue Sep 26 2023.