CMS 3D CMS Logo

AlignmentPrescaler.h
Go to the documentation of this file.
1 #ifndef TrackerAlignment_AlignmentPrescaler_H
2 #define TrackerAlignment_AlignmentPrescaler_H
3 
9 
12 
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 
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_;
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
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
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:57
AlignmentPrescaler::src_
edm::InputTag src_
Definition: AlignmentPrescaler.h:32
InputTag.h
DetId.h
AlignmentPrescaler::detid_
unsigned int detid_
Definition: AlignmentPrescaler.h:44
EventSetup.h
edm::EDProducer
Definition: EDProducer.h:36
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