Alignment
TrackerAlignment
plugins
AlignmentPrescaler.h
Go to the documentation of this file.
1
#ifndef TrackerAlignment_AlignmentPrescaler_H
2
#define TrackerAlignment_AlignmentPrescaler_H
3
4
#include "
FWCore/Framework/interface/EDProducer.h
"
5
#include "
FWCore/Framework/interface/EventPrincipal.h
"
6
#include "
FWCore/Framework/interface/Event.h
"
7
#include "
FWCore/Framework/interface/EventSetup.h
"
8
#include "
FWCore/Framework/interface/ESHandle.h
"
9
10
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
11
#include "
FWCore/Utilities/interface/InputTag.h
"
12
13
#include "
DataFormats/DetId/interface/DetId.h
"
14
15
#include <string>
16
#include "TFile.h"
17
#include "TTree.h"
18
#include "TRandom3.h"
19
#include "TH1F.h"
20
21
class
TrackerTopology
;
22
23
class
AlignmentPrescaler
:
public
edm::EDProducer
{
24
public
:
25
AlignmentPrescaler
(
const
edm::ParameterSet
&iConfig);
26
~AlignmentPrescaler
()
override
;
27
void
beginJob
()
override
;
28
void
endJob
()
override
;
29
void
produce
(
edm::Event
&
iEvent
,
const
edm::EventSetup
&iSetup)
override
;
30
31
private
:
32
edm::InputTag
src_
;
//tracks in input
33
edm::InputTag
srcQualityMap_
;
//Hit-quality association map
34
35
std::string
prescfilename_
;
//name of the file containing the TTree with the prescaling factors
36
std::string
presctreename_
;
//name of the TTree with the prescaling factors
37
38
TFile *
fpresc_
;
39
TTree *
tpresc_
;
40
TRandom3 *
myrand_
;
41
42
int
layerFromId
(
const
DetId
&
id
,
const
TrackerTopology
*tTopo)
const
;
43
44
unsigned
int
detid_
;
45
float
hitPrescFactor_
,
overlapPrescFactor_
;
46
int
totnhitspxl_
;
47
};
48
#endif
AlignmentPrescaler::fpresc_
TFile * fpresc_
Definition:
AlignmentPrescaler.h:38
AlignmentPrescaler::produce
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition:
AlignmentPrescaler.cc:73
EDProducer.h
ESHandle.h
AlignmentPrescaler::myrand_
TRandom3 * myrand_
Definition:
AlignmentPrescaler.h:40
AlignmentPrescaler::presctreename_
std::string presctreename_
Definition:
AlignmentPrescaler.h:36
TrackerTopology
Definition:
TrackerTopology.h:16
AlignmentPrescaler::beginJob
void beginJob() override
Definition:
AlignmentPrescaler.cc:42
AlignmentPrescaler::~AlignmentPrescaler
~AlignmentPrescaler() override
Definition:
AlignmentPrescaler.cc:38
AlignmentPrescaler::prescfilename_
std::string prescfilename_
Definition:
AlignmentPrescaler.h:35
AlignmentPrescaler::AlignmentPrescaler
AlignmentPrescaler(const edm::ParameterSet &iConfig)
Definition:
AlignmentPrescaler.cc:28
DetId
Definition:
DetId.h:17
EventPrincipal.h
AlignmentPrescaler::totnhitspxl_
int totnhitspxl_
Definition:
AlignmentPrescaler.h:46
AlignmentPrescaler::tpresc_
TTree * tpresc_
Definition:
AlignmentPrescaler.h:39
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
AlignmentPrescaler::layerFromId
int layerFromId(const DetId &id, const TrackerTopology *tTopo) const
Definition:
AlignmentPrescaler.cc:230
AlignmentPrescaler::srcQualityMap_
edm::InputTag srcQualityMap_
Definition:
AlignmentPrescaler.h:33
AlignmentPrescaler
Definition:
AlignmentPrescaler.h:23
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::EventSetup
Definition:
EventSetup.h:58
AlignmentPrescaler::src_
edm::InputTag src_
Definition:
AlignmentPrescaler.h:32
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
InputTag.h
DetId.h
AlignmentPrescaler::detid_
unsigned int detid_
Definition:
AlignmentPrescaler.h:44
EventSetup.h
edm::EDProducer
Definition:
EDProducer.h:35
AlignmentPrescaler::hitPrescFactor_
float hitPrescFactor_
Definition:
AlignmentPrescaler.h:45
AlignmentPrescaler::overlapPrescFactor_
float overlapPrescFactor_
Definition:
AlignmentPrescaler.h:45
ParameterSet.h
edm::Event
Definition:
Event.h:73
edm::InputTag
Definition:
InputTag.h:15
AlignmentPrescaler::endJob
void endJob() override
Definition:
AlignmentPrescaler.cc:66
Generated for CMSSW Reference Manual by
1.8.16