1 #ifndef _SdTopDownSignalSelectorUGR_h_
2 #define _SdTopDownSignalSelectorUGR_h_
4 #include <fwk/VModule.h>
6 #include <sevt/SEvent.h>
7 #include <sevt/Station.h>
10 #include <utl/TimeStamp.h>
20 namespace SdTopDownSignalSelectorUGR {
24 GeoSegment(
const int start,
const int stop,
const double binsTh,
25 const double charge,
const double aop,
const double signal,
185 const double binSize,
186 const unsigned int startBin,
187 const unsigned int startIntegration,
188 const unsigned int endIntegration,
189 const double traceIntegral)
const;
bool SelectMainSegment(GeoSegmentCollection &segments)
double EstimatedZenith(const std::string &s)
std::vector< GeoSegment > GeoSegmentCollection
Detector description interface for Station-related data.
bool operator()(const GeoSegment &i, const GeoSegment &j) const
void RemoveIsolatedStations()
double fPreSignalThreshold
Interface class to access to the SD part of an event.
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
std::vector< unsigned int > fIndexes
A TimeStamp holds GPS second and nanosecond for some event.
std::pair< double, double > fRiseTimeFractions
class to hold data at Station level
GeoSegmentCollection fAllSegments
virtual ~SdTopDownSignalSelectorUGR()
class to hold reconstructed data at PMT level
void RemoveRandomStations()
utl::TimeStamp fStartTime
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
bool TryRemovingStations(int)
bool operator()(const GeoSegment &i, const GeoSegment &j) const
bool IsGoodTimeConfig(const TimeCorrectionType correctionType)
utl::TraceD GetVEMChargeTrace(const sevt::Station &st) const
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
bool operator()(const GeoSegment &i, const GeoSegment &j) const
std::vector< GeoSegment > FoundSegments(sevt::Station &st)
void ComputeShapeRiseFallPeak(sevt::PMTRecData &pmtRecData, const double binSize, const unsigned int startBin, const unsigned int startIntegration, const unsigned int endIntegration, const double traceIntegral) const
static utl::Point fBarycenter
unsigned int fRejectionProcedure
double CorrectTimeAltitude(const int)
bool operator()(const GeoSegment &i, const GeoSegment &j) const
double CorrectTimeAltitudeCurv(const int)
ResultFlag
Flag returned by module methods to the RunController.
bool UpdateStationValues(sevt::Station &st, const int start, const int stop)
double EstimatedAzimuth(const std::string &s)
REGISTER_MODULE("SdTopDownSignalSelectorUGR", SdTopDownSignalSelectorUGR)
std::pair< double, double > fFallTimeFractions
void UpdateSegmentValues(const int seg)
const sdet::Station * fStDet
std::vector< double > fResiduals
std::vector< GeoSegment > FoundBasicSegments(sevt::Station &st)
SdTopDownSignalSelectorUGR()
GeoSegment(const int start, const int stop, const double binsTh, const double charge, const double aop, const double signal, utl::TimeStamp startTime, sevt::Station *const stEvt, const sdet::Station *const stDet, bool candidate)
static utl::TimeStamp fBaryTime
bool fIsLastTimingIteration
int fMinNumberStSignalCut
bool operator()(const GeoSegment &i, const GeoSegment &j) const