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"
70 
72 
73 
75 //
76 // class decleration
77 //
78 
80 
81  //structure which contains all MonitorElement for a Layer
82  // there is 34 layers in the tracker
83  struct LayerMEs{ // MEs for Layer Level
93  };
94 
95 
96  public:
97  explicit SiStripMonitorMuonHLT(const edm::ParameterSet& ps);
99 
100  private:
101  virtual void analyze(const edm::Event&, const edm::EventSetup&);
102  void analyzeOnTrackClusters( const reco::Track* l3tk, const TrackerGeometry & theTracker, bool isL3MuTrack = true );
103  virtual void endJob() ;
104  void createMEs(DQMStore::IBooker &, const edm::EventSetup& es);
105  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
106  //methods needed for normalisation
109  void GeometryFromTrackGeom (const std::vector<DetId>& Dets,const TrackerGeometry & theTracker, const edm::EventSetup& iSetup,
110  std::map<std::string,std::vector<float> > & m_PhiStripMod_Eta,std::map<std::string,std::vector<float> > & m_PhiStripMod_Nb);
111  void Normalizer (const std::vector<DetId>& Dets,const TrackerGeometry & theTracker);
112  void PrintNormalization (const std::vector<std::string>& v_LabelHisto);
113 
114  // ----------member data ---------------------------
115 
117 
121  int nTrig_;
123  bool verbose_;
126 
127  //booleans to active part of the code
128  bool runOnClusters_; //all clusters collection
129  bool runOnMuonCandidates_; //L3 muons candidates
130  bool runOnTracks_; //tracks available in HLT stream
131 
132  //tag for collection taken as input
136 
140 
141 
142 
143  int HistoNumber; //nof layers in Tracker = 34
145  uint32_t cached_detid;
146  int16_t cached_layer;
148  std::map<std::string, LayerMEs> LayerMEMap;
149  //2D info from TkHistoMap
153 
154 
155  // FOR NORMALISATION
156  std::map<std::string,std::vector<float> > m_BinPhi ;
157  std::map<std::string,std::vector<float> > m_BinEta ;
158  std::map<std::string,std::vector<float> > m_ModNormPhi;
159  std::map<std::string,std::vector<float> > m_ModNormEta;
160 
161 
162 
163 };
164 #endif
std::map< std::string, std::vector< float > > m_BinPhi
edm::EDGetTokenT< reco::TrackCollection > TrackCollectionToken_
float GetPhiWeight(std::string label, GlobalPoint gp)
TkLayerMap::XYbin cached_XYbin
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)
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)
edm::EDGetTokenT< edm::LazyGetter< SiStripCluster > > clusterCollectionToken_
std::map< std::string, std::vector< float > > m_ModNormEta
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: Run.h:41
edm::ParameterSet parameters_
void createMEs(DQMStore::IBooker &, const edm::EventSetup &es)