CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripMonitorMuonHLT.h
Go to the documentation of this file.
1 #ifndef SiStripMonitorMuonHLT_SiStripMonitorMuonHLT_h
2 #define SiStripMonitorMuonHLT_SiStripMonitorMuonHLT_h
3 
4 
5 // system include files
6 #include <memory>
7 #include <string>
8 #include <cmath>
9 
10 // user include files
23 
31 //#include "DataFormats/Common/interface/TriggerResults.h"
35 
41 
43 
45 
48 
50 
51  //needed for normalisation
52 //Id
56 //BoundPlane
62 //Point
64 //Root
65 #include "TGraph.h"
66 #include "TFile.h"
67 #include "TH1F.h"
68 #include "TMath.h"
69 #include "Math/GenVector/CylindricalEta3D.h"
71 
72 //
73 // class decleration
74 //
75 
77 
78  //structure which contains all MonitorElement for a Layer
79  // there is 34 layers in the tracker
80  struct LayerMEs{ // MEs for Layer Level
90  };
91 
92 
93  public:
94  explicit SiStripMonitorMuonHLT(const edm::ParameterSet& ps);
96 
97  private:
98  virtual void beginRun(const edm::Run& run, const edm::EventSetup& es);
99  virtual void analyze(const edm::Event&, const edm::EventSetup&);
100  void analyzeOnTrackClusters( const reco::Track* l3tk, const TrackerGeometry & theTracker, bool isL3MuTrack = true );
101  virtual void endJob() ;
102  void createMEs(const edm::EventSetup& es);
103  //methods needed for normalisation
106  void GeometryFromTrackGeom (const std::vector<DetId>& Dets,const TrackerGeometry & theTracker, const edm::EventSetup& iSetup,
107  std::map<std::string,std::vector<float> > & m_PhiStripMod_Eta,std::map<std::string,std::vector<float> > & m_PhiStripMod_Nb);
108  void Normalizer (const std::vector<DetId>& Dets,const TrackerGeometry & theTracker);
109  void PrintNormalization (const std::vector<std::string>& v_LabelHisto);
110 
111  // ----------member data ---------------------------
112 
114 
119  int nTrig_;
121  bool verbose_;
124 
125  //booleans to active part of the code
126  bool runOnClusters_; //all clusters collection
127  bool runOnMuonCandidates_; //L3 muons candidates
128  bool runOnTracks_; //tracks available in HLT stream
129 
130  //tag for collection taken as input
134 
138 
139 
140 
141  int HistoNumber; //nof layers in Tracker = 34
143  std::map<std::string, LayerMEs> LayerMEMap;
144  //2D info from TkHistoMap
148 
149 
150  // FOR NORMALISATION
151  std::map<std::string,std::vector<float> > m_BinPhi ;
152  std::map<std::string,std::vector<float> > m_BinEta ;
153  std::map<std::string,std::vector<float> > m_ModNormPhi;
154  std::map<std::string,std::vector<float> > m_ModNormEta;
155 
156 
157 
158 };
159 #endif
std::map< std::string, std::vector< float > > m_BinPhi
edm::EDGetTokenT< reco::TrackCollection > TrackCollectionToken_
float GetPhiWeight(std::string label, GlobalPoint gp)
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > l3collectionToken_
void GeometryFromTrackGeom(const std::vector< DetId > &Dets, const TrackerGeometry &theTracker, const edm::EventSetup &iSetup, std::map< std::string, std::vector< float > > &m_PhiStripMod_Eta, std::map< std::string, std::vector< float > > &m_PhiStripMod_Nb)
float GetEtaWeight(std::string label, GlobalPoint gp)
bool verbose_
every n events
void analyzeOnTrackClusters(const reco::Track *l3tk, const TrackerGeometry &theTracker, bool isL3MuTrack=true)
SiStripMonitorMuonHLT(const edm::ParameterSet &ps)
void createMEs(const edm::EventSetup &es)
int prescaleEvt_
mutriggered events
virtual void analyze(const edm::Event &, const edm::EventSetup &)
std::map< std::string, LayerMEs > LayerMEMap
void Normalizer(const std::vector< DetId > &Dets, const TrackerGeometry &theTracker)
std::map< std::string, std::vector< float > > m_BinEta
std::map< std::string, std::vector< float > > m_ModNormPhi
void PrintNormalization(const std::vector< std::string > &v_LabelHisto)
virtual void beginRun(const edm::Run &run, const edm::EventSetup &es)
edm::EDGetTokenT< edm::LazyGetter< SiStripCluster > > clusterCollectionToken_
std::map< std::string, std::vector< float > > m_ModNormEta
Definition: Run.h:41
edm::ParameterSet parameters_