CMS 3D CMS Logo

AlignmentProducerAsAnalyzer.cc
Go to the documentation of this file.
1 
9 /*** Header file ***/
11 
14 
15 //------------------------------------------------------------------------------
17  : AlignmentProducerBase(config, consumesCollector()),
18  token_(produces<AlignmentToken, edm::Transition::EndProcessBlock>()) {
19  usesResource(TFileService::kSharedResource);
20 
21  tjTkAssociationMapToken_ = consumes<TrajTrackAssociationCollection>(tjTkAssociationMapTag_);
22  beamSpotToken_ = consumes<reco::BeamSpot>(beamSpotTag_);
23  tkLasBeamToken_ = consumes<TkFittedLasBeamCollection>(tkLasBeamTag_);
24  tsosVectorToken_ = consumes<TsosVectorCollection>(tkLasBeamTag_);
25  clusterValueMapToken_ = consumes<AliClusterValueMap>(clusterValueMapTag_);
26 }
27 
28 //------------------------------------------------------------------------------
30 
31 //------------------------------------------------------------------------------
33 
34 //------------------------------------------------------------------------------
37 }
38 
39 //------------------------------------------------------------------------------
41 
42 //------------------------------------------------------------------------------
44  const edm::EventSetup& setup) {
45  beginLuminosityBlockImpl(lumiBlock, setup);
46 }
47 
48 //------------------------------------------------------------------------------
50  const edm::EventSetup& setup) {
51  endLuminosityBlockImpl(lumiBlock, setup);
52 }
53 
55  const AlignmentToken valueToPut{};
56  processBlock.emplace(token_, valueToPut);
57 
59  if (!finish()) {
60  edm::LogError("Alignment") << "@SUB=AlignmentProducerAsAnalyzer::endJob"
61  << "Did not process any events, do not dare to store to DB.";
62  }
63 
64  // message is used by the MillePede log parser to check the end of the job
65  edm::LogInfo("Alignment") << "@SUB=AlignmentProducerAsAnalyzer::endJob"
66  << "Finished alignment producer job.";
67 }
68 
69 //------------------------------------------------------------------------------
72 }
73 
static const std::string kSharedResource
Definition: TFileService.h:76
void terminateProcessing(const edm::EventSetup *=nullptr)
Terminate processing of events.
const edm::InputTag tjTkAssociationMapTag_
Map with tracks/trajectories.
AlignmentProducer useable for Prompt Calibration Loop (PCL)
bool processEvent(const edm::Event &, const edm::EventSetup &)
Process event.
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Definition: config.py:1
void accumulate(const edm::Event &, const edm::EventSetup &) override
Log< level::Error, false > LogError
edm::EDGetTokenT< TkFittedLasBeamCollection > tkLasBeamToken_
edm::EDGetTokenT< AliClusterValueMap > clusterValueMapToken_
edm::EDGetTokenT< TrajTrackAssociationCollection > tjTkAssociationMapToken_
void endRun(const edm::Run &, const edm::EventSetup &) override
const edm::InputTag beamSpotTag_
BeamSpot.
void endRunImpl(const edm::Run &, const edm::EventSetup &)
end run
Transition
Definition: Transition.h:12
void endLuminosityBlockImpl(const edm::LuminosityBlock &, const edm::EventSetup &)
end lumi block
void endProcessBlockProduce(edm::ProcessBlock &processBlock) override
Log< level::Info, false > LogInfo
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
void beginLuminosityBlockImpl(const edm::LuminosityBlock &, const edm::EventSetup &)
begin lumi block
HLT enums.
AlignmentProducerAsAnalyzer(const edm::ParameterSet &)
Constructor.
const edm::InputTag tkLasBeamTag_
LAS beams in edm::Run (ignore if empty)
edm::EDPutTokenT< AlignmentToken > token_
void emplace(EDPutTokenT< PROD > token, Args &&... args)
Definition: ProcessBlock.h:171
void beginRun(const edm::Run &, const edm::EventSetup &) override
void beginRunImpl(const edm::Run &, const edm::EventSetup &)
begin run
const edm::InputTag clusterValueMapTag_
ValueMap containing associtaion cluster-flag.
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
Definition: event.py:1
Definition: Run.h:45
edm::EDGetTokenT< TsosVectorCollection > tsosVectorToken_