CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
AlignmentProducerAsAnalyzer Class Reference

#include <AlignmentProducerAsAnalyzer.h>

Inheritance diagram for AlignmentProducerAsAnalyzer:
AlignmentProducerBase edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 AlignmentProducerAsAnalyzer (const edm::ParameterSet &)
 Constructor. More...
 
void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
void beginLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &) override
 
void beginRun (const edm::Run &, const edm::EventSetup &) override
 
void endJob () override
 
void endLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &) override
 
void endRun (const edm::Run &, const edm::EventSetup &) override
 
 ~AlignmentProducerAsAnalyzer () override=default
 Destructor. More...
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources >
 EDAnalyzer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () 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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (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)
 

Private Member Functions

bool getAliClusterValueMap (const edm::Event &, edm::Handle< AliClusterValueMap > &) override
 
bool getBeamSpot (const edm::Event &, edm::Handle< reco::BeamSpot > &) override
 
bool getTkFittedLasBeamCollection (const edm::Run &, edm::Handle< TkFittedLasBeamCollection > &) override
 
bool getTrajTrackAssociationCollection (const edm::Event &, edm::Handle< TrajTrackAssociationCollection > &) override
 
bool getTsosVectorCollection (const edm::Run &, edm::Handle< TsosVectorCollection > &) override
 

Private Attributes

edm::EDGetTokenT< reco::BeamSpotbeamSpotToken_
 
edm::EDGetTokenT< AliClusterValueMapclusterValueMapToken_
 
edm::EDGetTokenT< TrajTrackAssociationCollectiontjTkAssociationMapToken_
 
edm::EDGetTokenT< TkFittedLasBeamCollectiontkLasBeamToken_
 
edm::EDGetTokenT< TsosVectorCollectiontsosVectorToken_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- 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 Member Functions inherited from AlignmentProducerBase
 AlignmentProducerBase (const edm::ParameterSet &)
 
void beginLuminosityBlockImpl (const edm::LuminosityBlock &, const edm::EventSetup &)
 begin lumi block More...
 
void beginRunImpl (const edm::Run &, const edm::EventSetup &)
 begin run More...
 
void endLuminosityBlockImpl (const edm::LuminosityBlock &, const edm::EventSetup &)
 end lumi block More...
 
void endRunImpl (const edm::Run &, const edm::EventSetup &)
 end run More...
 
bool finish ()
 
void initAlignmentAlgorithm (const edm::EventSetup &, bool update=false)
 
int nEvent () const
 
bool processEvent (const edm::Event &, const edm::EventSetup &)
 Process event. More...
 
void startProcessing ()
 Start processing of events. More...
 
void terminateProcessing (const edm::EventSetup *=nullptr)
 Terminate processing of events. More...
 
virtual ~AlignmentProducerBase () noexcept(false)
 
- 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>
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)
 
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)
 
- Protected Attributes inherited from AlignmentProducerBase
const edm::InputTag beamSpotTag_
 BeamSpot. More...
 
const edm::InputTag clusterValueMapTag_
 ValueMap containing associtaion cluster-flag. More...
 
const bool doMuon_
 
const bool doTracker_
 
std::shared_ptr< CSCGeometrymuonCSCGeometry_
 
std::shared_ptr< DTGeometrymuonDTGeometry_
 
const edm::InputTag tjTkAssociationMapTag_
 Map with tracks/trajectories. More...
 
const edm::InputTag tkLasBeamTag_
 LAS beams in edm::Run (ignore if empty) More...
 
std::shared_ptr< TrackerGeometrytrackerGeometry_
 
const bool useExtras_
 

Detailed Description

Definition at line 26 of file AlignmentProducerAsAnalyzer.h.

Constructor & Destructor Documentation

◆ AlignmentProducerAsAnalyzer()

AlignmentProducerAsAnalyzer::AlignmentProducerAsAnalyzer ( const edm::ParameterSet config)

Constructor.

Definition at line 16 of file AlignmentProducerAsAnalyzer.cc.

18  usesResource(TFileService::kSharedResource);
19 
20  tjTkAssociationMapToken_ = consumes<TrajTrackAssociationCollection>(tjTkAssociationMapTag_);
21  beamSpotToken_ = consumes<reco::BeamSpot>(beamSpotTag_);
22  tkLasBeamToken_ = consumes<TkFittedLasBeamCollection>(tkLasBeamTag_);
23  tsosVectorToken_ = consumes<TsosVectorCollection>(tkLasBeamTag_);
24  clusterValueMapToken_ = consumes<AliClusterValueMap>(clusterValueMapTag_);
25 }

◆ ~AlignmentProducerAsAnalyzer()

AlignmentProducerAsAnalyzer::~AlignmentProducerAsAnalyzer ( )
overridedefault

Destructor.

Member Function Documentation

◆ analyze()

void AlignmentProducerAsAnalyzer::analyze ( const edm::Event event,
const edm::EventSetup setup 
)
overridevirtual

◆ beginJob()

void AlignmentProducerAsAnalyzer::beginJob ( void  )
overridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 28 of file AlignmentProducerAsAnalyzer.cc.

28 {}

◆ beginLuminosityBlock()

void AlignmentProducerAsAnalyzer::beginLuminosityBlock ( const edm::LuminosityBlock lumiBlock,
const edm::EventSetup setup 
)
override

◆ beginRun()

void AlignmentProducerAsAnalyzer::beginRun ( const edm::Run run,
const edm::EventSetup setup 
)
override

◆ endJob()

void AlignmentProducerAsAnalyzer::endJob ( void  )
overridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 31 of file AlignmentProducerAsAnalyzer.cc.

31  {
33  if (!finish()) {
34  edm::LogError("Alignment") << "@SUB=AlignmentProducerAsAnalyzer::endJob"
35  << "Did not process any events, do not dare to store to DB.";
36  }
37 
38  // message is used by the MillePede log parser to check the end of the job
39  edm::LogInfo("Alignment") << "@SUB=AlignmentProducerAsAnalyzer::endJob"
40  << "Finished alignment producer job.";
41 }

References AlignmentProducerBase::finish(), and AlignmentProducerBase::terminateProcessing().

Referenced by o2olib.O2ORunMgr::executeJob().

◆ endLuminosityBlock()

void AlignmentProducerAsAnalyzer::endLuminosityBlock ( const edm::LuminosityBlock lumiBlock,
const edm::EventSetup setup 
)
override

◆ endRun()

void AlignmentProducerAsAnalyzer::endRun ( const edm::Run run,
const edm::EventSetup setup 
)
override

◆ getAliClusterValueMap()

bool AlignmentProducerAsAnalyzer::getAliClusterValueMap ( const edm::Event event,
edm::Handle< AliClusterValueMap > &  result 
)
inlineoverrideprivatevirtual

Implements AlignmentProducerBase.

Definition at line 89 of file AlignmentProducerAsAnalyzer.h.

90  {
91  return event.getByToken(clusterValueMapToken_, result);
92 }

References clusterValueMapToken_, and mps_fire::result.

◆ getBeamSpot()

bool AlignmentProducerAsAnalyzer::getBeamSpot ( const edm::Event event,
edm::Handle< reco::BeamSpot > &  result 
)
inlineoverrideprivatevirtual

Implements AlignmentProducerBase.

Definition at line 72 of file AlignmentProducerAsAnalyzer.h.

72  {
73  return event.getByToken(beamSpotToken_, result);
74 }

References beamSpotToken_, and mps_fire::result.

◆ getTkFittedLasBeamCollection()

bool AlignmentProducerAsAnalyzer::getTkFittedLasBeamCollection ( const edm::Run run,
edm::Handle< TkFittedLasBeamCollection > &  result 
)
inlineoverrideprivatevirtual

Implements AlignmentProducerBase.

Definition at line 77 of file AlignmentProducerAsAnalyzer.h.

78  {
79  return run.getByToken(tkLasBeamToken_, result);
80 }

References mps_fire::result, writedatasetfile::run, and tkLasBeamToken_.

◆ getTrajTrackAssociationCollection()

bool AlignmentProducerAsAnalyzer::getTrajTrackAssociationCollection ( const edm::Event event,
edm::Handle< TrajTrackAssociationCollection > &  result 
)
inlineoverrideprivatevirtual

Implements AlignmentProducerBase.

Definition at line 66 of file AlignmentProducerAsAnalyzer.h.

67  {
68  return event.getByToken(tjTkAssociationMapToken_, result);
69 }

References mps_fire::result, and tjTkAssociationMapToken_.

◆ getTsosVectorCollection()

bool AlignmentProducerAsAnalyzer::getTsosVectorCollection ( const edm::Run run,
edm::Handle< TsosVectorCollection > &  result 
)
inlineoverrideprivatevirtual

Implements AlignmentProducerBase.

Definition at line 83 of file AlignmentProducerAsAnalyzer.h.

84  {
85  return run.getByToken(tsosVectorToken_, result);
86 }

References mps_fire::result, writedatasetfile::run, and tsosVectorToken_.

Member Data Documentation

◆ beamSpotToken_

edm::EDGetTokenT<reco::BeamSpot> AlignmentProducerAsAnalyzer::beamSpotToken_
private

Definition at line 59 of file AlignmentProducerAsAnalyzer.h.

Referenced by getBeamSpot().

◆ clusterValueMapToken_

edm::EDGetTokenT<AliClusterValueMap> AlignmentProducerAsAnalyzer::clusterValueMapToken_
private

Definition at line 62 of file AlignmentProducerAsAnalyzer.h.

Referenced by getAliClusterValueMap().

◆ tjTkAssociationMapToken_

edm::EDGetTokenT<TrajTrackAssociationCollection> AlignmentProducerAsAnalyzer::tjTkAssociationMapToken_
private

Definition at line 58 of file AlignmentProducerAsAnalyzer.h.

Referenced by getTrajTrackAssociationCollection().

◆ tkLasBeamToken_

edm::EDGetTokenT<TkFittedLasBeamCollection> AlignmentProducerAsAnalyzer::tkLasBeamToken_
private

Definition at line 60 of file AlignmentProducerAsAnalyzer.h.

Referenced by getTkFittedLasBeamCollection().

◆ tsosVectorToken_

edm::EDGetTokenT<TsosVectorCollection> AlignmentProducerAsAnalyzer::tsosVectorToken_
private

Definition at line 61 of file AlignmentProducerAsAnalyzer.h.

Referenced by getTsosVectorCollection().

AlignmentProducerBase::beginLuminosityBlockImpl
void beginLuminosityBlockImpl(const edm::LuminosityBlock &, const edm::EventSetup &)
begin lumi block
Definition: AlignmentProducerBase.cc:250
AlignmentProducerBase::endRunImpl
void endRunImpl(const edm::Run &, const edm::EventSetup &)
end run
Definition: AlignmentProducerBase.cc:234
AlignmentProducerBase::endLuminosityBlockImpl
void endLuminosityBlockImpl(const edm::LuminosityBlock &, const edm::EventSetup &)
end lumi block
Definition: AlignmentProducerBase.cc:256
AlignmentProducerAsAnalyzer::tjTkAssociationMapToken_
edm::EDGetTokenT< TrajTrackAssociationCollection > tjTkAssociationMapToken_
Definition: AlignmentProducerAsAnalyzer.h:58
edm::LogInfo
Definition: MessageLogger.h:254
AlignmentProducerAsAnalyzer::tkLasBeamToken_
edm::EDGetTokenT< TkFittedLasBeamCollection > tkLasBeamToken_
Definition: AlignmentProducerAsAnalyzer.h:60
AlignmentProducerAsAnalyzer::tsosVectorToken_
edm::EDGetTokenT< TsosVectorCollection > tsosVectorToken_
Definition: AlignmentProducerAsAnalyzer.h:61
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
AlignmentProducerBase::beamSpotTag_
const edm::InputTag beamSpotTag_
BeamSpot.
Definition: AlignmentProducerBase.h:123
config
Definition: config.py:1
AlignmentProducerBase::tjTkAssociationMapTag_
const edm::InputTag tjTkAssociationMapTag_
Map with tracks/trajectories.
Definition: AlignmentProducerBase.h:120
AlignmentProducerAsAnalyzer::beamSpotToken_
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
Definition: AlignmentProducerAsAnalyzer.h:59
AlignmentProducerBase
Definition: AlignmentProducerBase.h:69
AlignmentProducerBase::finish
bool finish()
Definition: AlignmentProducerBase.cc:755
AlignmentProducerBase::processEvent
bool processEvent(const edm::Event &, const edm::EventSetup &)
Process event.
Definition: AlignmentProducerBase.cc:136
edm::LogError
Definition: MessageLogger.h:183
AlignmentProducerBase::terminateProcessing
void terminateProcessing(const edm::EventSetup *=nullptr)
Terminate processing of events.
Definition: AlignmentProducerBase.cc:114
AlignmentProducerBase::tkLasBeamTag_
const edm::InputTag tkLasBeamTag_
LAS beams in edm::Run (ignore if empty)
Definition: AlignmentProducerBase.h:126
writedatasetfile.run
run
Definition: writedatasetfile.py:27
TFileService::kSharedResource
static const std::string kSharedResource
Definition: TFileService.h:76
AlignmentProducerBase::clusterValueMapTag_
const edm::InputTag clusterValueMapTag_
ValueMap containing associtaion cluster-flag.
Definition: AlignmentProducerBase.h:129
AlignmentProducerAsAnalyzer::clusterValueMapToken_
edm::EDGetTokenT< AliClusterValueMap > clusterValueMapToken_
Definition: AlignmentProducerAsAnalyzer.h:62
mps_fire.result
result
Definition: mps_fire.py:303
event
Definition: event.py:1
AlignmentProducerBase::beginRunImpl
void beginRunImpl(const edm::Run &, const edm::EventSetup &)
begin run
Definition: AlignmentProducerBase.cc:207