CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripMonitorTrack.h
Go to the documentation of this file.
1 
2 #ifndef SiStripMonitorTrack_H
3 #define SiStripMonitorTrack_H
4 
5 // system include files
6 #include <memory>
7 #include <fstream>
8 #include <iostream>
9 #include <vector>
10 #include <string>
11 
12 // user include files
21 
25 
33 
38 
42 
44 
45 //******** Single include for the TkMap *************
47 //***************************************************
48 
49 class SiStripDCSStatus;
51 class TrackerTopology;
52 //
53 // class declaration
54 //
55 
57 public:
59  enum RecHitType { Single=0, Matched=1, Projected=2, Null=3};
60  explicit SiStripMonitorTrack(const edm::ParameterSet&);
62  virtual void beginRun(const edm::Run& run, const edm::EventSetup& c);
63  virtual void endJob(void);
64  virtual void analyze(const edm::Event&, const edm::EventSetup&);
65 
66 private:
67  enum ClusterFlags {
70  };
71  //booking
72  void book(const TrackerTopology* tTopo);
73  void bookModMEs(const uint32_t& );
74  void bookLayerMEs(const uint32_t&, std::string&);
76  MonitorElement * bookME1D(const char*, const char*);
77  MonitorElement * bookME2D(const char*, const char*);
78  MonitorElement * bookME3D(const char*, const char*);
79  MonitorElement * bookMEProfile(const char*, const char*);
80  MonitorElement * bookMETrend(const char*, const char*);
81  // internal evaluation of monitorables
82  void AllClusters(const edm::Event& ev, const edm::EventSetup& es);
83  void trackStudy(const edm::Event& ev, const edm::EventSetup& es);
84  // LocalPoint project(const GeomDet *det,const GeomDet* projdet,LocalPoint position,LocalVector trackdirection)const;
85  bool clusterInfos(SiStripClusterInfo* cluster, const uint32_t& detid, const TrackerTopology* tTopo, enum ClusterFlags flags, LocalVector LV);
86  template <class T> void RecHitInfo(const T* tkrecHit, LocalVector LV,reco::TrackRef track_ref, const edm::EventSetup&);
87 
88  // fill monitorables
90  void fillMEs(SiStripClusterInfo*,uint32_t detid, const TrackerTopology* tTopo, float,enum ClusterFlags);
91  inline void fillME(MonitorElement* ME,float value1){if (ME!=0)ME->Fill(value1);}
92  inline void fillME(MonitorElement* ME,float value1,float value2){if (ME!=0)ME->Fill(value1,value2);}
93  inline void fillME(MonitorElement* ME,float value1,float value2,float value3){if (ME!=0)ME->Fill(value1,value2,value3);}
94  inline void fillME(MonitorElement* ME,float value1,float value2,float value3,float value4){if (ME!=0)ME->Fill(value1,value2,value3,value4);}
95 
96  void getSubDetTag(std::string& folder_name, std::string& tag);
97  // ----------member data ---------------------------
98 
99 private:
104  float iOrbitSec;
105 
106  //******* TkHistoMaps
108  //******** TkHistoMaps
109 
110  struct ModMEs{
117  };
118 
119  struct LayerMEs{
130  };
131  struct SubDetMEs{
141 
142  };
143  std::map<std::string, ModMEs> ModMEsMap;
144  std::map<std::string, LayerMEs> LayerMEsMap;
145  std::map<std::string, SubDetMEs> SubDetMEsMap;
146 
149 
152 
153  bool Mod_On_;
154  bool Trend_On_;
157  bool ring_flag;
159 
162 
163  std::vector<uint32_t> ModulesToBeExcluded_;
164  std::vector<const SiStripCluster*> vPSiStripCluster;
167  bool flag_ring;
170 
176 
180 };
181 #endif
void fillME(MonitorElement *ME, float value1, float value2, float value3)
TkHistoMap * tkhisto_NumOffTrack
SiStripMonitorTrack(const edm::ParameterSet &)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void trackStudy(const edm::Event &ev, const edm::EventSetup &es)
void fillME(MonitorElement *ME, float value1)
SiStripDCSStatus * dcsStatus_
void AllClusters(const edm::Event &ev, const edm::EventSetup &es)
void bookLayerMEs(const uint32_t &, std::string &)
edm::ParameterSet conf_
std::vector< Variable::Flags > flags
Definition: MVATrainer.cc:135
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
edm::ESHandle< SiStripDetCabling > SiStripDetCabling_
void bookSubDetMEs(std::string &name)
void fillME(MonitorElement *ME, float value1, float value2)
void Fill(long long x)
Definition: ME.h:11
math::XYZTLorentzVectorD LV
void fillMEs(SiStripClusterInfo *, uint32_t detid, const TrackerTopology *tTopo, float, enum ClusterFlags)
void fillME(MonitorElement *ME, float value1, float value2, float value3, float value4)
std::map< std::string, SubDetMEs > SubDetMEsMap
void fillModMEs(SiStripClusterInfo *, std::string, float)
std::vector< const SiStripCluster * > vPSiStripCluster
edm::ESHandle< TrackerGeometry > tkgeom
SiStripFolderOrganizer folderOrganizer_
MonitorElement * bookMETrend(const char *, const char *)
void getSubDetTag(std::string &folder_name, std::string &tag)
void book(const TrackerTopology *tTopo)
TransientTrackingRecHit::ConstRecHitPointer ConstRecHitPointer
std::map< std::string, ModMEs > ModMEsMap
TkHistoMap * tkhisto_NumOnTrack
bool clusterInfos(SiStripClusterInfo *cluster, const uint32_t &detid, const TrackerTopology *tTopo, enum ClusterFlags flags, LocalVector LV)
GenericTriggerEventFlag * genTriggerEventFlag_
virtual void beginRun(const edm::Run &run, const edm::EventSetup &c)
MonitorElement * bookME2D(const char *, const char *)
MonitorElement * bookMEProfile(const char *, const char *)
MonitorElement * bookME3D(const char *, const char *)
TkHistoMap * tkhisto_StoNCorrOnTrack
std::vector< uint32_t > ModulesToBeExcluded_
virtual void endJob(void)
void bookModMEs(const uint32_t &)
edm::ParameterSet Parameters
MonitorElement * bookME1D(const char *, const char *)
long double T
Definition: Run.h:36
std::map< std::string, LayerMEs > LayerMEsMap
void RecHitInfo(const T *tkrecHit, LocalVector LV, reco::TrackRef track_ref, const edm::EventSetup &)