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 
25  public:
26  AlignmentPrescaler(const edm::ParameterSet &iConfig);
27  ~AlignmentPrescaler() override;
28  void beginJob() override;
29  void endJob() override;
30  void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override ;
31 
32  private:
33  edm::InputTag src_;//tracks in input
34  edm::InputTag srcQualityMap_;//Hit-quality association map
35 
36  std::string prescfilename_;//name of the file containing the TTree with the prescaling factors
37  std::string presctreename_;//name of the TTree with the prescaling factors
38 
39  TFile *fpresc_;
40  TTree *tpresc_;
41  TRandom3 *myrand_;
42 
43 
44  int layerFromId (const DetId& id, const TrackerTopology* tTopo) const;
45 
46  unsigned int detid_;
49 };
50 #endif
AlignmentPrescaler(const edm::ParameterSet &iConfig)
~AlignmentPrescaler() override
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
void beginJob() override
edm::InputTag srcQualityMap_
int iEvent
Definition: GenABIO.cc:224
std::string prescfilename_
std::string presctreename_
Definition: DetId.h:18
void endJob() override
int layerFromId(const DetId &id, const TrackerTopology *tTopo) const