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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
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 wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
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
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (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::~SurveyInputBase ( )
override

Definition at line 7 of file SurveyInputBase.cc.

7  {
8  delete theDetector;
9 
10  theDetector = nullptr;
11 }

References theDetector.

Member Function Documentation

◆ addComponent()

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 13 of file SurveyInputBase.cc.

13  {
14  if (nullptr == theDetector)
15  theDetector = comp;
16  else
18 }

References Alignable::addComponent(), AlCaHLTBitMon_QueryRunRegistry::comp, and theDetector.

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

◆ analyze()

void SurveyInputBase::analyze ( const edm::Event ,
const edm::EventSetup  
)
overridepure virtual

Do nothing for each event.

Implements edm::EDAnalyzer.

Implemented in SurveyMisalignmentInput, CreateSurveyRcds, SurveyInputTrackerFromDB, and SurveyInputCSCfromPins.

◆ beginJob()

void SurveyInputBase::beginJob ( void  )
inlineoverridevirtual

Read data from input.

Reimplemented from edm::EDAnalyzer.

Definition at line 22 of file SurveyInputBase.h.

22 { theFirstEvent = true; }

References theFirstEvent.

◆ detector()

Alignable * SurveyInputBase::detector ( )
inlinestatic

Get alignable detector as read from input.

Definition at line 41 of file SurveyInputBase.h.

41 { return theDetector; }

References theDetector.

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

Member Data Documentation

◆ theDetector

Alignable * SurveyInputBase::theDetector
staticprivate

Definition at line 38 of file SurveyInputBase.h.

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

◆ theFirstEvent

bool SurveyInputBase::theFirstEvent
protected
SurveyInputBase::theFirstEvent
bool theFirstEvent
Definition: SurveyInputBase.h:35
AlCaHLTBitMon_QueryRunRegistry.comp
comp
Definition: AlCaHLTBitMon_QueryRunRegistry.py:249
Alignable::addComponent
virtual void addComponent(Alignable *)=0
SurveyInputBase::theDetector
static Alignable * theDetector
Definition: SurveyInputBase.h:38