CMS 3D CMS Logo

AlignmentProducerAsAnalyzer.cc
Go to the documentation of this file.
1 
9 /*** Header file ***/
11 
14 
15 //------------------------------------------------------------------------------
17  : AlignmentProducerBase{config} {
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 //------------------------------------------------------------------------------
45  beginRunImpl(run, setup);
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 //------------------------------------------------------------------------------
65  processEvent(event, setup);
66 }
67 
static const std::string kSharedResource
Definition: TFileService.h:76
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.
void terminateProcessing(const edm::EventSetup *=0)
Terminate processing of events.
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Definition: config.py:1
edm::EDGetTokenT< TkFittedLasBeamCollection > tkLasBeamToken_
edm::EDGetTokenT< AliClusterValueMap > clusterValueMapToken_
edm::EDGetTokenT< TrajTrackAssociationCollection > tjTkAssociationMapToken_
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void endRun(const edm::Run &, const edm::EventSetup &) override
void analyze(const edm::Event &, const edm::EventSetup &) override
const edm::InputTag beamSpotTag_
BeamSpot.
void endRunImpl(const edm::Run &, const edm::EventSetup &)
end run
void endLuminosityBlockImpl(const edm::LuminosityBlock &, const edm::EventSetup &)
end lumi block
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
void beginLuminosityBlockImpl(const edm::LuminosityBlock &, const edm::EventSetup &)
begin lumi block
AlignmentProducerAsAnalyzer(const edm::ParameterSet &)
Constructor.
const edm::InputTag tkLasBeamTag_
LAS beams in edm::Run (ignore if empty)
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_