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 
4 #include <Riostream.h>
5 #include <string>
6 #include "TFile.h"
7 #include "TTree.h"
8 #include "TRandom3.h"
9 #include "TH1F.h"
10 
11 
17 
20 
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;
45 
46  unsigned int detid_;
49 };
50 #endif
AlignmentPrescaler(const edm::ParameterSet &iConfig)
int layerFromId(const DetId &id) const
edm::InputTag srcQualityMap_
int iEvent
Definition: GenABIO.cc:243
std::string prescfilename_
std::string presctreename_
Definition: DetId.h:20
virtual void produce(edm::Event &iEvent, const edm::EventSetup &iSetup)