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::one::EDAnalyzer<> edm::one::EDAnalyzerBase 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::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () 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
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > 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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices 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::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Protected Attributes

bool theFirstEvent
 

Static Private Attributes

static AlignabletheDetector
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase 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)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

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.

References theDetector.

7  {
8  delete theDetector;
9 
10  theDetector = nullptr;
11 }
static Alignable * 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.

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

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

13  {
14  if (nullptr == theDetector)
15  theDetector = comp;
16  else
18 }
static Alignable * theDetector
virtual void addComponent(Alignable *)=0

◆ analyze()

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

◆ beginJob()

void SurveyInputBase::beginJob ( )
inlineoverridevirtual

Read data from input.

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 22 of file SurveyInputBase.h.

References theFirstEvent.

22 { theFirstEvent = true; }

◆ detector()

Alignable * SurveyInputBase::detector ( )
inlinestatic

Get alignable detector as read from input.

Definition at line 41 of file SurveyInputBase.h.

References theDetector.

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

41 { return theDetector; }
static Alignable * theDetector

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