CMS 3D CMS Logo

AlignmentProducerAsAnalyzer.cc
Go to the documentation of this file.
1 
9 /*** Header file ***/
11 
14 
15 //------------------------------------------------------------------------------
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 }
26 
27 //------------------------------------------------------------------------------
29 
30 //------------------------------------------------------------------------------
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 }
42 
43 //------------------------------------------------------------------------------
46 }
47 
48 //------------------------------------------------------------------------------
50 
51 //------------------------------------------------------------------------------
53  const edm::EventSetup& setup) {
54  beginLuminosityBlockImpl(lumiBlock, setup);
55 }
56 
57 //------------------------------------------------------------------------------
59  const edm::EventSetup& setup) {
60  endLuminosityBlockImpl(lumiBlock, setup);
61 }
62 
63 //------------------------------------------------------------------------------
66 }
67 
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
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
edm::LogInfo
Definition: MessageLogger.h:254
AlignmentProducerAsAnalyzer::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &) override
Definition: AlignmentProducerAsAnalyzer.cc:44
AlignmentProducerAsAnalyzer.h
AlignmentProducer useable for Prompt Calibration Loop (PCL)
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
config
Definition: config.py:1
MakerMacros.h
AlignmentProducerAsAnalyzer::beginJob
void beginJob() override
Definition: AlignmentProducerAsAnalyzer.cc:28
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
AlignmentProducerAsAnalyzer
Definition: AlignmentProducerAsAnalyzer.h:26
AlignmentProducerAsAnalyzer::endLuminosityBlock
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Definition: AlignmentProducerAsAnalyzer.cc:58
AlignmentProducerBase
Definition: AlignmentProducerBase.h:69
AlignmentProducerAsAnalyzer::beginLuminosityBlock
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Definition: AlignmentProducerAsAnalyzer.cc:52
AlignmentProducerBase::finish
bool finish()
Definition: AlignmentProducerBase.cc:755
AlignmentProducerAsAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: AlignmentProducerAsAnalyzer.cc:64
TFileService.h
AlignmentProducerBase::processEvent
bool processEvent(const edm::Event &, const edm::EventSetup &)
Process event.
Definition: AlignmentProducerBase.cc:136
edm::ParameterSet
Definition: ParameterSet.h:36
edm::LogError
Definition: MessageLogger.h:183
AlignmentProducerBase::terminateProcessing
void terminateProcessing(const edm::EventSetup *=nullptr)
Terminate processing of events.
Definition: AlignmentProducerBase.cc:114
edm::EventSetup
Definition: EventSetup.h:57
AlignmentProducerAsAnalyzer::endRun
void endRun(const edm::Run &, const edm::EventSetup &) override
Definition: AlignmentProducerAsAnalyzer.cc:49
writedatasetfile.run
run
Definition: writedatasetfile.py:27
TFileService::kSharedResource
static const std::string kSharedResource
Definition: TFileService.h:76
AlignmentProducerAsAnalyzer::endJob
void endJob() override
Definition: AlignmentProducerAsAnalyzer.cc:31
AlignmentProducerAsAnalyzer::AlignmentProducerAsAnalyzer
AlignmentProducerAsAnalyzer(const edm::ParameterSet &)
Constructor.
Definition: AlignmentProducerAsAnalyzer.cc:16
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
AlignmentProducerBase::beginRunImpl
void beginRunImpl(const edm::Run &, const edm::EventSetup &)
begin run
Definition: AlignmentProducerBase.cc:207