CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Private Attributes
SurveyInputBase Class Referenceabstract

#include <SurveyInputBase.h>

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

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)=0
 Do nothing for each event. More...
 
virtual void beginJob ()
 Read data from input. More...
 
virtual ~SurveyInputBase ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Static Public Member Functions

static void addComponent (Alignable *)
 
static Alignabledetector ()
 Get alignable detector as read from input. More...
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Protected Attributes

bool theFirstEvent
 

Static Private Attributes

static AlignabletheDetector
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Abstract base class to read survey raw measurements.

Date:
2007/05/15 18:14:04
Revision:
1.2
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.

8 {
9  delete theDetector;
10 
11  theDetector = 0;
12 }
static Alignable * theDetector

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(), AlCaHLTBitMon_QueryRunRegistry::comp, and theDetector.

Referenced by SurveyInputCSCfromPins::analyze(), CreateSurveyRcds::analyze(), SurveyInputTrackerFromDB::analyze(), and SurveyMisalignmentInput::analyze().

15 {
16  if (0 == theDetector)
17  theDetector = comp;
18  else
20 }
static Alignable * theDetector
virtual void addComponent(Alignable *)=0
virtual void SurveyInputBase::analyze ( const edm::Event ,
const edm::EventSetup  
)
pure virtual

Do nothing for each event.

Implements edm::EDAnalyzer.

Implemented in SurveyMisalignmentInput, CreateSurveyRcds, SurveyInputTrackerFromDB, and SurveyInputCSCfromPins.

virtual void SurveyInputBase::beginJob ( void  )
inlinevirtual

Read data from input.

Reimplemented from edm::EDAnalyzer.

Definition at line 25 of file SurveyInputBase.h.

References theFirstEvent.

25 { theFirstEvent = true; }
Alignable * SurveyInputBase::detector ( )
inlinestatic

Get alignable detector as read from input.

Definition at line 51 of file SurveyInputBase.h.

References theDetector.

Referenced by CreateSurveyRcds::analyze(), SurveyInputTrackerFromDB::analyze(), SurveyMisalignmentInput::analyze(), and SurveyDBUploader::endJob().

52 {
53  return theDetector;
54 }
static Alignable * theDetector

Member Data Documentation

Alignable * SurveyInputBase::theDetector
staticprivate

Definition at line 48 of file SurveyInputBase.h.

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

bool SurveyInputBase::theFirstEvent
protected