List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes | Private Member Functions | Private Attributes
fdDoubleBumpFinder::FdDoubleBumpFinder Class Reference

Module to create a trigger signal for a Shoot-the-Shower (Lidar) The selection is mainly done by fitting 2 Gaisser-Hillas functions and look for improvements in Chi² More...

#include "FdDoubleBumpFinder/FdDoubleBumpFinder.h"

Inheritance diagram for fdDoubleBumpFinder::FdDoubleBumpFinder:
Inheritance graph
[legend]

Public Types

enum  ResultFlag { eSuccess, eFailure, eBreakLoop, eContinueLoop }
 Flag returned by module methods to the RunController. More...
 
enum  VersionInfoType {
  eFilename = 1, eRevisionNumber = 2, eDate = 3, eTime = 4,
  eLastEditor = 5
}
 Different types of version info that can be retrieved from GetVersionInfo. More...
 

Public Member Functions

 FdDoubleBumpFinder ()
 
fwk::VModule::ResultFlag Finish ()
 Finish: invoked at end of the run (NOT end of the event) More...
 
utl::StopwatchGetStopwatch ()
 
const utl::StopwatchGetStopwatch () const
 
std::string GetVersionInfo (const VersionInfoType v) const
 Retrieve different sorts of module version info. More...
 
fwk::VModule::ResultFlag Init ()
 Initialize: invoked at beginning of run (NOT beginning of event) More...
 
void InitTiming ()
 
fwk::VModule::ResultFlag Run (evt::Event &event)
 Run: invoked once per event. More...
 
ResultFlag RunWithTiming (evt::Event &event)
 
 ~FdDoubleBumpFinder ()
 

Static Public Member Functions

static std::string GetResultFlagByName (const ResultFlag flag)
 

Protected Types

enum  InfoLevel { eInfoNone = 0, eInfoFinal = 1, eInfoIntermediate = 2, eInfoDebug = 3 }
 

Protected Attributes

int fInfoLevel = 0
 

Private Member Functions

bool FillRecData (evt::Event &event, fevt::Eye &eye)
 
bool Fit (fevt::Eye &eye)
 
bool IsPreselected (evt::Event &event, fevt::Eye &eye) const
 
bool IsSelected (fevt::Eye &eye) const
 
 REGISTER_MODULE ("FdDoubleBumpFinderKG", FdDoubleBumpFinder)
 
bool Scan (const std::vector< double > &depth, const std::vector< double > &dEdX, const std::vector< double > &dEdXError, double &xMax1, double &xMax2, double &dEdXMax1, double &dEdXMax2)
 

Private Attributes

double fConstraintLambda
 
double fConstraintXFirst
 
double fConstraintXFirstMinusXMax
 
double fCutValue
 
double fdEdXMax1
 
double fdEdXMax2
 
double fDGHChi2
 
unsigned int fDGHNdf
 
double fGHChi2
 
double fLambda1
 
double fLambda2
 
double fMaxCoreTankDist
 
double fMaxZenith
 
unsigned int fMinAxisPixels
 
bool fPreSelectEvents
 
profileFit::ProfileFitter fProfileFitter
 
int fVerbosity
 
double fXFirst1
 
double fXFirst2
 
double fXMax1
 
double fXMax2
 

Detailed Description

Module to create a trigger signal for a Shoot-the-Shower (Lidar) The selection is mainly done by fitting 2 Gaisser-Hillas functions and look for improvements in Chi²

Author
C. Baus
Date
August 2010

Definition at line 27 of file FdDoubleBumpFinder.h.

Member Enumeration Documentation

enum fwk::VModule::InfoLevel
protectedinherited
Enumerator
eInfoNone 
eInfoFinal 
eInfoIntermediate 
eInfoDebug 

Definition at line 125 of file VModule.h.

enum fwk::VModule::ResultFlag
inherited

Flag returned by module methods to the RunController.

Enumerator
eSuccess 

Report success to RunController.

eFailure 

Report failure to RunController, causing RunController to terminate execution.

eBreakLoop 

Break current loop. It works for nested loops too!

eContinueLoop 

Skip remaining modules in the current loop and continue with next iteration of the loop.

Definition at line 60 of file VModule.h.

Different types of version info that can be retrieved from GetVersionInfo.

Enumerator
eFilename 
eRevisionNumber 
eDate 
eTime 
eLastEditor 

Definition at line 110 of file VModule.h.

Constructor & Destructor Documentation

FdDoubleBumpFinder::FdDoubleBumpFinder ( )

Definition at line 72 of file FdDoubleBumpFinder.cc.

fdDoubleBumpFinder::FdDoubleBumpFinder::~FdDoubleBumpFinder ( )
inline

Definition at line 31 of file FdDoubleBumpFinder.h.

Member Function Documentation

bool FdDoubleBumpFinder::FillRecData ( evt::Event event,
fevt::Eye eye 
)
private
VModule::ResultFlag FdDoubleBumpFinder::Finish ( )
virtual

Finish: invoked at end of the run (NOT end of the event)

This method is for things that should be done at the end of the run (for example, closing files or writing out histograms) {You must override this method in your concrete module}

Implements fwk::VModule.

Definition at line 786 of file FdDoubleBumpFinder.cc.

References fwk::VModule::eSuccess, fVerbosity, and INFO.

bool FdDoubleBumpFinder::Fit ( fevt::Eye eye)
private

Definition at line 306 of file FdDoubleBumpFinder.cc.

References utl::cm, utl::cm2, profileFit::eDGHLambda1, profileFit::eDGHLambda2, profileFit::eDGHnMax1, profileFit::eDGHnMax2, profileFit::eDGHX01, profileFit::eDGHX02, profileFit::eDGHXmax1, profileFit::eDGHXmax2, profileFit::eDoubleGaisserHillas, profileFit::eGaisserHillas, profileFit::eGHLambda, profileFit::eGHnMax, profileFit::eGHX0, profileFit::eGHXmax, evt::gh::eLambda, profileFit::eNDGHpars, profileFit::eNGHpars, evt::gh::eX0, fConstraintLambda, fConstraintXFirst, fConstraintXFirstMinusXMax, fdEdXMax1, fdEdXMax2, fDGHChi2, fDGHNdf, fGHChi2, profileFit::ProfileFitter::Fit(), fLambda1, fLambda2, fProfileFitter, fVerbosity, fXFirst1, fXFirst2, fXMax1, fXMax2, utl::g, profileFit::ProfileFitter::GetChi2(), evt::ShowerFRecData::GetEnergyDeposit(), profileFit::ProfileFitter::GetFitParameters(), fevt::EyeRecData::GetFRecShower(), evt::ShowerFRecData::GetGHParameters(), profileFit::ProfileFitter::GetNdf(), evt::VGaisserHillasParameter::GetNMax(), utl::TabulatedFunction::GetNPoints(), fevt::Eye::GetRecData(), evt::GaisserHillas4Parameter::GetShapeParameter(), profileFit::ProfileFitter::GetStatus(), evt::VGaisserHillasParameter::GetXMax(), evt::ShowerFRecData::HasEnergyDeposit(), fevt::EyeRecData::HasFRecShower(), evt::ShowerFRecData::HasGHParameters(), fevt::Eye::HasRecData(), PeV, Scan(), profileFit::ProfileFitter::SetData(), profileFit::ProfileFitter::SetFunctionType(), profileFit::ProfileFitter::SetStartParameters(), profileFit::ProfileFitter::SetThreshold(), profileFit::ProfileFitter::SetVerbosity(), WARNING, utl::TabulatedFunction::XBegin(), utl::TabulatedFunction::XEnd(), utl::TabulatedFunction::YBegin(), utl::TabulatedFunction::YEnd(), utl::TabulatedFunctionErrors::YErrBegin(), and utl::TabulatedFunctionErrors::YErrEnd().

Referenced by Run().

std::string fwk::VModule::GetResultFlagByName ( const ResultFlag  flag)
staticinherited
utl::Stopwatch& fwk::VModule::GetStopwatch ( )
inlineinherited

Definition at line 106 of file VModule.h.

References fwk::VModule::fStopwatch.

const utl::Stopwatch& fwk::VModule::GetStopwatch ( ) const
inlineinherited

Definition at line 107 of file VModule.h.

References fwk::VModule::fStopwatch.

std::string fwk::VModule::GetVersionInfo ( const VersionInfoType  v) const
inherited
VModule::ResultFlag FdDoubleBumpFinder::Init ( )
virtual

Initialize: invoked at beginning of run (NOT beginning of event)

This method is for things that should be done once at the beginning of a run (for example, booking histograms, performing calculations that need to be done only once, initializing parameters) {You must override this method in your concrete module}

Implements fwk::VModule.

Definition at line 77 of file FdDoubleBumpFinder.cc.

References utl::cm, degree, fwk::VModule::eFailure, ERROR, fwk::VModule::eSuccess, fConstraintLambda, fConstraintXFirst, fConstraintXFirstMinusXMax, fCutValue, fMaxCoreTankDist, fMaxZenith, fMinAxisPixels, fPreSelectEvents, fVerbosity, utl::g, utl::Branch::GetChild(), utl::Branch::GetData(), fwk::CentralConfig::GetTopBranch(), fwk::VModule::GetVersionInfo(), INFO, and utl::m.

void fwk::VModule::InitTiming ( )
inlineinherited

Definition at line 95 of file VModule.h.

References fwk::VModule::fStopwatch, and utl::Stopwatch::Reset().

bool FdDoubleBumpFinder::IsPreselected ( evt::Event event,
fevt::Eye eye 
) const
private
bool FdDoubleBumpFinder::IsSelected ( fevt::Eye eye) const
private
fdDoubleBumpFinder::FdDoubleBumpFinder::REGISTER_MODULE ( "FdDoubleBumpFinderKG"  ,
FdDoubleBumpFinder   
)
private
VModule::ResultFlag FdDoubleBumpFinder::Run ( evt::Event event)
virtual

Run: invoked once per event.

This method is for things that should be done once per event {You must override this method in your concrete module}

Implements fwk::VModule.

Definition at line 177 of file FdDoubleBumpFinder.cc.

References fwk::VModule::eContinueLoop, fwk::VModule::eSuccess, fevt::FEvent::EyesBegin(), fevt::FEvent::EyesEnd(), FillRecData(), Fit(), fPreSelectEvents, fVerbosity, evt::Event::HasFEvent(), INFO, IsPreselected(), and WARNING.

ResultFlag fwk::VModule::RunWithTiming ( evt::Event event)
inlineinherited
bool FdDoubleBumpFinder::Scan ( const std::vector< double > &  depth,
const std::vector< double > &  dEdX,
const std::vector< double > &  dEdXError,
double &  xMax1,
double &  xMax2,
double &  dEdXMax1,
double &  dEdXMax2 
)
private

Member Data Documentation

double fdDoubleBumpFinder::FdDoubleBumpFinder::fConstraintLambda
private

Definition at line 53 of file FdDoubleBumpFinder.h.

Referenced by Fit(), Init(), and Scan().

double fdDoubleBumpFinder::FdDoubleBumpFinder::fConstraintXFirst
private

Definition at line 54 of file FdDoubleBumpFinder.h.

Referenced by Fit(), Init(), and Scan().

double fdDoubleBumpFinder::FdDoubleBumpFinder::fConstraintXFirstMinusXMax
private

Definition at line 55 of file FdDoubleBumpFinder.h.

Referenced by Fit(), Init(), and Scan().

double fdDoubleBumpFinder::FdDoubleBumpFinder::fCutValue
private

Definition at line 52 of file FdDoubleBumpFinder.h.

Referenced by Init(), and IsSelected().

double fdDoubleBumpFinder::FdDoubleBumpFinder::fdEdXMax1
private

Definition at line 63 of file FdDoubleBumpFinder.h.

Referenced by FillRecData(), and Fit().

double fdDoubleBumpFinder::FdDoubleBumpFinder::fdEdXMax2
private

Definition at line 64 of file FdDoubleBumpFinder.h.

Referenced by FillRecData(), and Fit().

double fdDoubleBumpFinder::FdDoubleBumpFinder::fDGHChi2
private

Definition at line 65 of file FdDoubleBumpFinder.h.

Referenced by FillRecData(), Fit(), and IsSelected().

unsigned int fdDoubleBumpFinder::FdDoubleBumpFinder::fDGHNdf
private

Definition at line 66 of file FdDoubleBumpFinder.h.

Referenced by FillRecData(), and Fit().

double fdDoubleBumpFinder::FdDoubleBumpFinder::fGHChi2
private

Definition at line 67 of file FdDoubleBumpFinder.h.

Referenced by FillRecData(), Fit(), and IsSelected().

int fwk::VModule::fInfoLevel = 0
protectedinherited
double fdDoubleBumpFinder::FdDoubleBumpFinder::fLambda1
private

Definition at line 59 of file FdDoubleBumpFinder.h.

Referenced by FillRecData(), and Fit().

double fdDoubleBumpFinder::FdDoubleBumpFinder::fLambda2
private

Definition at line 60 of file FdDoubleBumpFinder.h.

Referenced by FillRecData(), and Fit().

double fdDoubleBumpFinder::FdDoubleBumpFinder::fMaxCoreTankDist
private

Definition at line 50 of file FdDoubleBumpFinder.h.

Referenced by Init(), and IsPreselected().

double fdDoubleBumpFinder::FdDoubleBumpFinder::fMaxZenith
private

Definition at line 51 of file FdDoubleBumpFinder.h.

Referenced by Init(), and IsPreselected().

unsigned int fdDoubleBumpFinder::FdDoubleBumpFinder::fMinAxisPixels
private

Definition at line 47 of file FdDoubleBumpFinder.h.

Referenced by Init(), and IsPreselected().

bool fdDoubleBumpFinder::FdDoubleBumpFinder::fPreSelectEvents
private

Definition at line 49 of file FdDoubleBumpFinder.h.

Referenced by Init(), and Run().

profileFit::ProfileFitter fdDoubleBumpFinder::FdDoubleBumpFinder::fProfileFitter
private

Definition at line 45 of file FdDoubleBumpFinder.h.

Referenced by Fit().

int fdDoubleBumpFinder::FdDoubleBumpFinder::fVerbosity
private

Definition at line 48 of file FdDoubleBumpFinder.h.

Referenced by FillRecData(), Finish(), Fit(), Init(), IsPreselected(), IsSelected(), Run(), and Scan().

double fdDoubleBumpFinder::FdDoubleBumpFinder::fXFirst1
private

Definition at line 61 of file FdDoubleBumpFinder.h.

Referenced by FillRecData(), and Fit().

double fdDoubleBumpFinder::FdDoubleBumpFinder::fXFirst2
private

Definition at line 62 of file FdDoubleBumpFinder.h.

Referenced by FillRecData(), and Fit().

double fdDoubleBumpFinder::FdDoubleBumpFinder::fXMax1
private

Definition at line 57 of file FdDoubleBumpFinder.h.

Referenced by FillRecData(), and Fit().

double fdDoubleBumpFinder::FdDoubleBumpFinder::fXMax2
private

Definition at line 58 of file FdDoubleBumpFinder.h.

Referenced by FillRecData(), and Fit().


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

, generated on Tue Sep 26 2023.