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
22 
26 
34 
39 
43 
45 
46 //******** Single include for the TkMap *************
48 //***************************************************
49 
51 
52 class SiStripDCSStatus;
54 class TrackerTopology;
55 
56 //
57 // class declaration
58 //
59 
61 public:
63  enum RecHitType { Single=0, Matched=1, Projected=2, Null=3};
64  explicit SiStripMonitorTrack(const edm::ParameterSet&);
66  void dqmBeginRun(const edm::Run& run, const edm::EventSetup& es) ;
67  virtual void endJob(void);
68  virtual void analyze(const edm::Event&, const edm::EventSetup&);
69  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
70 
71 private:
72  enum ClusterFlags {
75  };
76  //booking
77  void book(DQMStore::IBooker &, const TrackerTopology* tTopo);
78  void bookModMEs(DQMStore::IBooker &, const uint32_t& );
79  void bookLayerMEs(DQMStore::IBooker &, const uint32_t&, std::string&);
81  MonitorElement * bookME1D(DQMStore::IBooker & , const char*, const char*);
82  MonitorElement * bookME2D(DQMStore::IBooker & , const char*, const char*);
83  MonitorElement * bookME3D(DQMStore::IBooker & , const char*, const char*);
84  MonitorElement * bookMEProfile(DQMStore::IBooker & , const char*, const char*);
85  MonitorElement * bookMETrend(DQMStore::IBooker & , const char*, const char*);
86  // internal evaluation of monitorables
87  void AllClusters(const edm::Event& ev, const edm::EventSetup& es);
88  void trackStudyFromTrack(edm::Handle<reco::TrackCollection > trackCollectionHandle, const edm::EventSetup& es);
90  void trajectoryStudy(const edm::Ref<std::vector<Trajectory> > traj, reco::TrackRef trackref, const edm::EventSetup& es);
91  void trackStudy(const edm::Event& ev, const edm::EventSetup& es);
92  // LocalPoint project(const GeomDet *det,const GeomDet* projdet,LocalPoint position,LocalVector trackdirection)const;
93  bool clusterInfos(SiStripClusterInfo* cluster, const uint32_t& detid, const TrackerTopology* tTopo, enum ClusterFlags flags, LocalVector LV);
94  template <class T> void RecHitInfo(const T* tkrecHit, LocalVector LV,reco::TrackRef track_ref, const edm::EventSetup&);
95 
96  // fill monitorables
98  void fillMEs(SiStripClusterInfo*,uint32_t detid, const TrackerTopology* tTopo, float,enum ClusterFlags);
99  inline void fillME(MonitorElement* ME,float value1){if (ME!=0)ME->Fill(value1);}
100  inline void fillME(MonitorElement* ME,float value1,float value2){if (ME!=0)ME->Fill(value1,value2);}
101  inline void fillME(MonitorElement* ME,float value1,float value2,float value3){if (ME!=0)ME->Fill(value1,value2,value3);}
102  inline void fillME(MonitorElement* ME,float value1,float value2,float value3,float value4){if (ME!=0)ME->Fill(value1,value2,value3,value4);}
103 
104  void getSubDetTag(std::string& folder_name, std::string& tag);
105  // ----------member data ---------------------------
106 
107 private:
112  float iOrbitSec;
113 
115 
116  //******* TkHistoMaps
118  //******** TkHistoMaps
119 
120  struct ModMEs{
127  };
128 
129  struct LayerMEs{
140  };
141  struct SubDetMEs{
151 
152  };
153  std::map<std::string, ModMEs> ModMEsMap;
154  std::map<std::string, LayerMEs> LayerMEsMap;
155  std::map<std::string, SubDetMEs> SubDetMEsMap;
156 
159 
162 
166 
167  bool Mod_On_;
168  bool Trend_On_;
171  bool ring_flag;
173 
176 
177  std::vector<uint32_t> ModulesToBeExcluded_;
178  std::vector<const SiStripCluster*> vPSiStripCluster;
181  bool flag_ring;
184 
190 
194 };
195 #endif
MonitorElement * bookMETrend(DQMStore::IBooker &, const char *, const char *)
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 trackStudyFromTrack(edm::Handle< reco::TrackCollection > trackCollectionHandle, const edm::EventSetup &es)
edm::EDGetTokenT< reco::TrackCollection > trackToken_
void trackStudyFromTrajectory(edm::Handle< TrajTrackAssociationCollection > TItkAssociatorCollection, const edm::EventSetup &es)
void fillME(MonitorElement *ME, float value1)
SiStripDCSStatus * dcsStatus_
void book(DQMStore::IBooker &, const TrackerTopology *tTopo)
void AllClusters(const edm::Event &ev, const edm::EventSetup &es)
edm::ParameterSet conf_
std::vector< Variable::Flags > flags
Definition: MVATrainer.cc:135
MonitorElement * bookME1D(DQMStore::IBooker &, const char *, const char *)
void bookLayerMEs(DQMStore::IBooker &, const uint32_t &, std::string &)
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
edm::ESHandle< SiStripDetCabling > SiStripDetCabling_
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)
TrackingRecHit::ConstRecHitPointer ConstRecHitPointer
std::map< std::string, SubDetMEs > SubDetMEsMap
void fillModMEs(SiStripClusterInfo *, std::string, float)
std::shared_ptr< TrackingRecHit const > ConstRecHitPointer
MonitorElement * bookME2D(DQMStore::IBooker &, const char *, const char *)
void bookSubDetMEs(DQMStore::IBooker &, std::string &name)
MonitorElement * bookME3D(DQMStore::IBooker &, const char *, const char *)
std::vector< const SiStripCluster * > vPSiStripCluster
edm::ESHandle< TrackerGeometry > tkgeom
SiStripFolderOrganizer folderOrganizer_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void getSubDetTag(std::string &folder_name, std::string &tag)
edm::EDGetTokenT< TrajTrackAssociationCollection > trackTrajToken_
void bookModMEs(DQMStore::IBooker &, const uint32_t &)
void dqmBeginRun(const edm::Run &run, const edm::EventSetup &es)
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_
MonitorElement * bookMEProfile(DQMStore::IBooker &, const char *, const char *)
TkHistoMap * tkhisto_StoNCorrOnTrack
std::vector< uint32_t > ModulesToBeExcluded_
virtual void endJob(void)
edm::ParameterSet Parameters
long double T
Definition: Run.h:41
void trajectoryStudy(const edm::Ref< std::vector< Trajectory > > traj, reco::TrackRef trackref, const edm::EventSetup &es)
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusterToken_
std::map< std::string, LayerMEs > LayerMEsMap
void RecHitInfo(const T *tkrecHit, LocalVector LV, reco::TrackRef track_ref, const edm::EventSetup &)