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
54 //BoundPlane
60 //Point
62 //Root
63 #include "TGraph.h"
64 #include "TFile.h"
65 #include "TH1F.h"
66 #include "TMath.h"
67 #include "Math/GenVector/CylindricalEta3D.h"
68 
70 
71 
73 //
74 // class decleration
75 //
76 
78 
79  //structure which contains all MonitorElement for a Layer
80  // there is 34 layers in the tracker
81  struct LayerMEs{ // MEs for Layer Level
91  };
92 
93 
94  public:
95  explicit SiStripMonitorMuonHLT(const edm::ParameterSet& ps);
97 
98  private:
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(DQMStore::IBooker &, const edm::EventSetup& es);
103  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
104  //methods needed for normalisation
107  void GeometryFromTrackGeom (const std::vector<DetId>& Dets,const TrackerGeometry & theTracker, const edm::EventSetup& iSetup,
108  std::map<std::string,std::vector<float> > & m_PhiStripMod_Eta,std::map<std::string,std::vector<float> > & m_PhiStripMod_Nb);
109  void Normalizer (const std::vector<DetId>& Dets,const TrackerGeometry & theTracker);
110  void PrintNormalization (const std::vector<std::string>& v_LabelHisto);
111 
112  // ----------member data ---------------------------
113 
115 
118  int nTrig_;
120  bool verbose_;
123 
124  //booleans to active part of the code
125  bool runOnClusters_; //all clusters collection
126  bool runOnMuonCandidates_; //L3 muons candidates
127  bool runOnTracks_; //tracks available in HLT stream
128 
129  //tag for collection taken as input
133 
137 
138 
139 
140  int HistoNumber; //nof layers in Tracker = 34
142  uint32_t cached_detid;
143  int16_t cached_layer;
145  std::map<std::string, LayerMEs> LayerMEMap;
146  //2D info from TkHistoMap
150 
151 
152  // FOR NORMALISATION
153  std::map<std::string,std::vector<float> > m_BinPhi ;
154  std::map<std::string,std::vector<float> > m_BinEta ;
155  std::map<std::string,std::vector<float> > m_ModNormPhi;
156  std::map<std::string,std::vector<float> > m_ModNormEta;
157 
158 
159 
160 };
161 #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)