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 
50 class SiStripDCSStatus;
52 class TrackerTopology;
53 
54 //
55 // class declaration
56 //
57 
59 public:
61  enum RecHitType { Single=0, Matched=1, Projected=2, Null=3};
62  explicit SiStripMonitorTrack(const edm::ParameterSet&);
64  virtual void beginRun(const edm::Run& run, const edm::EventSetup& c);
65  virtual void endJob(void);
66  virtual void analyze(const edm::Event&, const edm::EventSetup&);
67 
68 private:
69  enum ClusterFlags {
72  };
73  //booking
74  void book(const TrackerTopology* tTopo);
75  void bookModMEs(const uint32_t& );
76  void bookLayerMEs(const uint32_t&, std::string&);
78  MonitorElement * bookME1D(const char*, const char*);
79  MonitorElement * bookME2D(const char*, const char*);
80  MonitorElement * bookME3D(const char*, const char*);
81  MonitorElement * bookMEProfile(const char*, const char*);
82  MonitorElement * bookMETrend(const char*, const char*);
83  // internal evaluation of monitorables
84  void AllClusters(const edm::Event& ev, const edm::EventSetup& es);
85  void trackStudyFromTrack(edm::Handle<reco::TrackCollection > trackCollectionHandle, const edm::EventSetup& es);
87  void trajectoryStudy(const edm::Ref<std::vector<Trajectory> > traj, reco::TrackRef trackref, const edm::EventSetup& es);
88  void trackStudy(const edm::Event& ev, const edm::EventSetup& es);
89  // LocalPoint project(const GeomDet *det,const GeomDet* projdet,LocalPoint position,LocalVector trackdirection)const;
90  bool clusterInfos(SiStripClusterInfo* cluster, const uint32_t& detid, const TrackerTopology* tTopo, enum ClusterFlags flags, LocalVector LV);
91  template <class T> void RecHitInfo(const T* tkrecHit, LocalVector LV,reco::TrackRef track_ref, const edm::EventSetup&);
92 
93  // fill monitorables
95  void fillMEs(SiStripClusterInfo*,uint32_t detid, const TrackerTopology* tTopo, float,enum ClusterFlags);
96  inline void fillME(MonitorElement* ME,float value1){if (ME!=0)ME->Fill(value1);}
97  inline void fillME(MonitorElement* ME,float value1,float value2){if (ME!=0)ME->Fill(value1,value2);}
98  inline void fillME(MonitorElement* ME,float value1,float value2,float value3){if (ME!=0)ME->Fill(value1,value2,value3);}
99  inline void fillME(MonitorElement* ME,float value1,float value2,float value3,float value4){if (ME!=0)ME->Fill(value1,value2,value3,value4);}
100 
101  void getSubDetTag(std::string& folder_name, std::string& tag);
102  // ----------member data ---------------------------
103 
104 private:
109  float iOrbitSec;
110 
112 
113  //******* TkHistoMaps
115  //******** TkHistoMaps
116 
117  struct ModMEs{
124  };
125 
126  struct LayerMEs{
137  };
138  struct SubDetMEs{
148 
149  };
150  std::map<std::string, ModMEs> ModMEsMap;
151  std::map<std::string, LayerMEs> LayerMEsMap;
152  std::map<std::string, SubDetMEs> SubDetMEsMap;
153 
156 
159 
163 
164  bool Mod_On_;
165  bool Trend_On_;
168  bool ring_flag;
170 
173 
174  std::vector<uint32_t> ModulesToBeExcluded_;
175  std::vector<const SiStripCluster*> vPSiStripCluster;
178  bool flag_ring;
181 
187 
191 };
192 #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 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 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)
edm::EDGetTokenT< TrajTrackAssociationCollection > trackTrajToken_
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: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 &)