CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Protected Attributes | Static Private Attributes

SurveyInputBase Class Reference

#include <SurveyInputBase.h>

Inheritance diagram for SurveyInputBase:
edm::EDAnalyzer CreateSurveyRcds SurveyInputCSCfromPins SurveyInputTrackerFromDB SurveyMisalignmentInput

List of all members.

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 Alignabledetector ()
 Get alignable detector as read from input.

Protected Attributes

bool theFirstEvent

Static Private Attributes

static AlignabletheDetector

Detailed Description

Abstract base class to read survey raw measurements.

Date:
2010/01/07 14:36:22
Revision:
1.3
Author:
Chung Khim Lae

Definition at line 17 of file SurveyInputBase.h.


Constructor & Destructor Documentation

SurveyInputBase::~SurveyInputBase ( ) [virtual]

Definition at line 7 of file SurveyInputBase.cc.

References theDetector.

{
  delete theDetector;

  theDetector = 0;
}

Member Function Documentation

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;
}

Member Data Documentation

Definition at line 48 of file SurveyInputBase.h.

Referenced by addComponent(), detector(), and ~SurveyInputBase().