CMS 3D CMS Logo

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

void analyze (const edm::Event &, const edm::EventSetup &) override=0
 Do nothing for each event. More...
 
void beginJob () override
 Read data from input. More...
 
 ~SurveyInputBase () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

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 &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 

Protected Attributes

bool theFirstEvent
 

Static Private Attributes

static AlignabletheDetector
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- 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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<typename ESProduct , Transition Tr = Transition::Event>
auto esConsumes (eventsetup::EventSetupRecordKey const &, ESInputTag const &tag)
 
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 ( )
override

Definition at line 7 of file SurveyInputBase.cc.

References theDetector.

8 {
9  delete theDetector;
10 
11  theDetector = nullptr;
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(), SurveyInputTrackerFromDB::analyze(), CreateSurveyRcds::analyze(), SurveyMisalignmentInput::analyze(), and beginJob().

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

Do nothing for each event.

Implemented in SurveyMisalignmentInput, CreateSurveyRcds, SurveyInputTrackerFromDB, and SurveyInputCSCfromPins.

Referenced by beginJob().

void SurveyInputBase::beginJob ( void  )
inlineoverridevirtual

Read data from input.

Reimplemented from edm::EDAnalyzer.

Definition at line 25 of file SurveyInputBase.h.

References addComponent(), analyze(), detector(), and 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(), beginJob(), 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