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 
120  int nTrig_;
122  bool verbose_;
125 
126  //booleans to active part of the code
127  bool runOnClusters_; //all clusters collection
128  bool runOnMuonCandidates_; //L3 muons candidates
129  bool runOnTracks_; //tracks available in HLT stream
130 
131  //tag for collection taken as input
135 
139 
140 
141 
142  int HistoNumber; //nof layers in Tracker = 34
144  uint32_t cached_detid;
145  int16_t cached_layer;
147  std::map<std::string, LayerMEs> LayerMEMap;
148  //2D info from TkHistoMap
152 
153 
154  // FOR NORMALISATION
155  std::map<std::string,std::vector<float> > m_BinPhi ;
156  std::map<std::string,std::vector<float> > m_BinEta ;
157  std::map<std::string,std::vector<float> > m_ModNormPhi;
158  std::map<std::string,std::vector<float> > m_ModNormEta;
159 
160 
161 
162 };
163 #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)