test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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);
28  void beginJob();
29  void endJob();
30  virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) ;
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)
edm::InputTag srcQualityMap_
int iEvent
Definition: GenABIO.cc:230
std::string prescfilename_
std::string presctreename_
Definition: DetId.h:18
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)
int layerFromId(const DetId &id, const TrackerTopology *tTopo) const