#include <SurveyInputBase.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &)=0 |
Do nothing for each event. | |
virtual void | beginJob () |
Read data from input. | |
virtual | ~SurveyInputBase () |
Static Public Member Functions | |
static void | addComponent (Alignable *) |
static Alignable * | detector () |
Get alignable detector as read from input. | |
Protected Attributes | |
bool | theFirstEvent |
Static Private Attributes | |
static Alignable * | theDetector |
Abstract base class to read survey raw measurements.
Definition at line 17 of file SurveyInputBase.h.
SurveyInputBase::~SurveyInputBase | ( | ) | [virtual] |
Definition at line 7 of file SurveyInputBase.cc.
References theDetector.
{ delete theDetector; theDetector = 0; }
void SurveyInputBase::addComponent | ( | Alignable * | comp | ) | [static] |
Add a component or sub-system to the detector. Class will own component (takes care of deleting the pointer).
Definition at line 14 of file SurveyInputBase.cc.
References Alignable::addComponent(), and theDetector.
Referenced by SurveyInputCSCfromPins::analyze(), SurveyInputTrackerFromDB::analyze(), CreateSurveyRcds::analyze(), and SurveyMisalignmentInput::analyze().
{ if (0 == theDetector) theDetector = comp; else theDetector->addComponent(comp); }
virtual void SurveyInputBase::analyze | ( | const edm::Event & | , |
const edm::EventSetup & | |||
) | [pure virtual] |
Do nothing for each event.
Implements edm::EDAnalyzer.
Implemented in CreateSurveyRcds, SurveyInputCSCfromPins, SurveyInputTrackerFromDB, and SurveyMisalignmentInput.
virtual void SurveyInputBase::beginJob | ( | void | ) | [inline, virtual] |
Read data from input.
Reimplemented from edm::EDAnalyzer.
Definition at line 25 of file SurveyInputBase.h.
References theFirstEvent.
{ theFirstEvent = true; }
Alignable * SurveyInputBase::detector | ( | ) | [inline, static] |
Get alignable detector as read from input.
Definition at line 51 of file SurveyInputBase.h.
References theDetector.
Referenced by SurveyInputTrackerFromDB::analyze(), CreateSurveyRcds::analyze(), SurveyMisalignmentInput::analyze(), and SurveyDBUploader::endJob().
{ return theDetector; }
Alignable * SurveyInputBase::theDetector [static, private] |
Definition at line 48 of file SurveyInputBase.h.
Referenced by addComponent(), detector(), and ~SurveyInputBase().
bool SurveyInputBase::theFirstEvent [protected] |
Definition at line 44 of file SurveyInputBase.h.
Referenced by SurveyInputCSCfromPins::analyze(), SurveyInputTrackerFromDB::analyze(), SurveyMisalignmentInput::analyze(), and beginJob().