CMS 3D CMS Logo

AlignmentProducerAsAnalyzer.cc
Go to the documentation of this file.
1 
11 /*** Header file ***/
13 
16 
17 
18 
19 //------------------------------------------------------------------------------
21  AlignmentProducerBase{config}
22 {
23  usesResource(TFileService::kSharedResource);
24 
25  tjTkAssociationMapToken_ = consumes<TrajTrackAssociationCollection>(tjTkAssociationMapTag_);
26  beamSpotToken_ = consumes<reco::BeamSpot>(beamSpotTag_);
27  tkLasBeamToken_ = consumes<TkFittedLasBeamCollection>(tkLasBeamTag_);
28  tsosVectorToken_ = consumes<TsosVectorCollection>(tkLasBeamTag_);
29  clusterValueMapToken_ = consumes<AliClusterValueMap>(clusterValueMapTag_);
30 }
31 
32 
33 //------------------------------------------------------------------------------
34 void
36 {
37 }
38 
39 
40 //------------------------------------------------------------------------------
41 void
43 {
45  if (!finish()) {
46  edm::LogError("Alignment")
47  << "@SUB=AlignmentProducerAsAnalyzer::endJob"
48  << "Did not process any events, do not dare to store to DB.";
49  }
50 
51  // message is used by the MillePede log parser to check the end of the job
52  edm::LogInfo("Alignment")
53  << "@SUB=AlignmentProducerAsAnalyzer::endJob"
54  << "Finished alignment producer job.";
55 }
56 
57 
58 //------------------------------------------------------------------------------
59 void
61 {
62  beginRunImpl(run, setup);
63 }
64 
65 
66 //------------------------------------------------------------------------------
67 void
69 {
70  endRunImpl(run, setup);
71 }
72 
73 
74 //------------------------------------------------------------------------------
75 void
77  const edm::EventSetup& setup)
78 {
79  beginLuminosityBlockImpl(lumiBlock, setup);
80 }
81 
82 
83 //------------------------------------------------------------------------------
84 void
86  const edm::EventSetup& setup)
87 {
88  endLuminosityBlockImpl(lumiBlock, setup);
89 }
90 
91 
92 //------------------------------------------------------------------------------
93 void
95 {
96  processEvent(event, setup);
97 }
98 
99 
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.
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:1
Definition: config.py:1
edm::EDGetTokenT< TkFittedLasBeamCollection > tkLasBeamToken_
edm::EDGetTokenT< AliClusterValueMap > clusterValueMapToken_
edm::EDGetTokenT< TrajTrackAssociationCollection > tjTkAssociationMapToken_
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:43
edm::EDGetTokenT< TsosVectorCollection > tsosVectorToken_