1 #ifndef _mevt_Counter_h_
2 #define _mevt_Counter_h_
4 #include <evt/ComponentGroup.h>
5 #include <mevt/Module.h>
6 #include <mevt/CounterSimData.h>
7 #include <utl/ShadowPtr.h>
8 #include <utl/ConsecutiveEnumFactory.h>
ComponentIterator Begin()
Module & GetModule(const int mId)
bool IsCandidate() const
The muon counter status.
double GetNumberOfMuonsErrorHighHG() const
double GetNumberOfMuonsErrorHighLG() const
InternalModuleCollection fModules
double GetLDFResidual() const
The LDF residual of the counter is calculated as the sum of the estimated muons of the associated mod...
boost::transform_iterator< ConstComponentResolver, PairConstIterator > ComponentConstIterator
Alias for constant iterator over contained components.
double GetMeanMuonsLowLimit() const
boost::transform_iterator< ComponentResolver, PairIterator > ComponentIterator
Alias for non-constant iterator over contained components.
evt::ComponentGroup< Module > InternalModuleCollection
double GetNumberOfEstimatedMuonsLG() const
The number of estimated muons with the ADC is calculated as the sum of the estimated muons of the ass...
ModuleIterator ModulesBegin()
bool HasRecData() const
Counter is flagged has having reconstructed data if at least one of its associated modules has recons...
Counter level event data.
size_t CountRejectedModules() const
double GetT50Error() const
double GetMeanMuonDensityErrorLow() const
bool HasT50() const
The median of the arrival time of muons in GPS sec, ns All modules associated to the counter are cons...
double GetMeanMuonDensityErrorHigh() const
bool IsSaturated() const
Check if the counter is "hardware" saturated (limit imposed by detector segmentation) ...
void Make(int id)
Construct by id.
ModuleIterator ModulesEnd()
double GetActiveAreaLG() const
double GetNumberOfMuonsErrorHigh() const
bool IsADCCalibratedLG() const
Check if the counter ADC LG channel is calibrated.
Counter(const int cId)
Constructs the Counter with the given identificator.
bool IsRejected() const
Check if the counter is rejected.
void SetT502SdStart(const double c)
bool IsEmpty() const
Checks if there are muons in the counter.
double GetMeanMuonDensity() const
void SetT1(const double t1)
friend void boost::checked_delete(T *) BOOST_NOEXCEPT
Friendship for destruction. Depends on evt::ComponentGroup innards.
double GetMuonDensityHG() const
bool IsSilent() const
Check if the counter is silent.
double GetMuonDensityErrorLowLG() const
bool Has(const int id) const
Query existence.
double GetMuonDensityErrorHighLG() const
double GetActiveAreaHG() const
A TimeStamp holds GPS second and nanosecond for some event.
int GetNumberOf() const
Query quantity.
void SetSilent()
Set the status of all modules in this counter to silent. This is used if the associated tank does not...
const Component & const
Retrieve by id.
double GetActiveArea() const
utl::TimeStamp fSignalT50
double GetMuonDensity() const
The density measured by a counter is the calculated as the number of estimated muons over the active ...
double GetTimeResidual() const
Residual of geometry fit.
double GetMeanMuons() const
bool IsADCCalibratedHG() const
Check if the counter ADC HG channel is calibrated.
double GetMuonDensityErrorLowHG() const
double GetNumberOfMuonsLowLimit() const
The lower limit to the number of muons in a counter.
size_t CountSilentModules() const
const Module & GetModule(const int mId) const
double GetMuonDensityErrorHighHG() const
unsigned int GetNumberOfChannelsOn() const
double GetNumberOfMuonsErrorLowHG() const
InternalModuleCollection::ComponentIterator ModuleIterator
ModuleConstIterator ModulesBegin() const
Common class for groups of components of the Event hierarchy.
size_t CountCandidateModules() const
Count the number of modules in the counter by status.
bool HasModule(const int mId) const
Counter level simulation data.
double GetMuonDensityErrorHigh() const
double GetNumberOfMuonsErrorLow() const
void SetSignalT50(const utl::TimeStamp &time)
void SetRejected(const std::string &reason="")
Set the status of all modules in this counter to rejected. As described for the muon counter status...
double GetMeanMuonsErrorLow() const
int GetId() const
The id of the counter.
ModuleConstIterator ModulesEnd() const
void SetTimeResidual(const double residual)
void MakeModule(const int mId)
double GetPlaneFrontDelay() const
Delay of the couner wrt to a plane front oriented with the reconstructed shower axis.
void SetT50Error(const double e)
double GetNumberOfEstimatedMuons() const
The number of estimated muons of the counter is calculated as the sum of the estimated muons of the a...
utl::TimeStamp GetSignalT50() const
double GetMeanMuonsErrorHigh() const
InternalModuleCollection::ComponentConstIterator ModuleConstIterator
double GetMuonDensityLG() const
int GetNumberOfModules() const
void SetPlaneFrontDelay(const double c)
double GetMuonDensityErrorLow() const
const CounterSimData & GetSimData() const
CounterSimData & GetSimData()
Component & Get(const int id)
Retrieve by id.
double GetNumberOfEstimatedMuonsHG() const
double GetT502SdStart() const
Nanoseconds between the MD t50 and the SD signal start time (md t50-sd start)
double GetNumberOfMuonsErrorLowLG() const
utl::ShadowPtr< CounterSimData > fSimData