CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
TrackingRecoMaterialAnalyser Class Reference
Inheritance diagram for TrackingRecoMaterialAnalyser:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
 
 TrackingRecoMaterialAnalyser (const edm::ParameterSet &)
 
 ~TrackingRecoMaterialAnalyser () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Private Member Functions

bool isDoubleSided (const TrackerTopology *tTopo, DetId id)
 

Private Attributes

const edm::EDGetTokenT
< reco::BeamSpot
beamspotToken_
 
MonitorElementdeltaP_in_out_vs_eta_
 
MonitorElementdeltaP_in_out_vs_eta_2d_
 
MonitorElementdeltaP_in_out_vs_eta_vs_phi_2d_
 
MonitorElementdeltaP_in_out_vs_z_
 
MonitorElementdeltaP_in_out_vs_z_2d_
 
MonitorElementdeltaPl_in_out_vs_eta_
 
MonitorElementdeltaPl_in_out_vs_z_
 
MonitorElementdeltaPt_in_out_2d_
 
MonitorElementdeltaPt_in_out_vs_eta_
 
MonitorElementdeltaPt_in_out_vs_z_
 
std::string folder_
 
MonitorElementhisto_RZ_
 
MonitorElementhisto_RZ_Ori_
 
std::unordered_map
< std::string, MonitorElement * > 
histosEta_
 
std::unordered_map
< std::string, MonitorElement * > 
histosOriEta_
 
MonitorElementP_vs_eta_2d_
 
TrackTransformer refitter_
 
const edm::ESGetToken
< TrackerGeometry,
TrackerDigiGeometryRecord
trackerGeometryTokenRun_
 
const edm::EDGetTokenT
< reco::TrackCollection
tracksToken_
 
const edm::ESGetToken
< TrackerTopology,
TrackerTopologyRcd
tTopoToken_
 
bool usePV_
 
const edm::EDGetTokenT
< reco::VertexCollection
verticesToken_
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
using CacheTypes = CacheContexts< T...>
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T...>
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr
< DQMEDAnalyzerGlobalCache
initializeGlobalCache (edm::ParameterSet const &)
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 32 of file TrackingRecoMaterialAnalyser.cc.

Constructor & Destructor Documentation

TrackingRecoMaterialAnalyser::TrackingRecoMaterialAnalyser ( const edm::ParameterSet iPSet)
explicit

Definition at line 67 of file TrackingRecoMaterialAnalyser.cc.

68  : refitter_(iPSet, consumesCollector()),
69  tracksToken_(consumes<reco::TrackCollection>(iPSet.getParameter<edm::InputTag>("tracks"))),
70  beamspotToken_(consumes<reco::BeamSpot>(iPSet.getParameter<edm::InputTag>("beamspot"))),
71  verticesToken_(mayConsume<reco::VertexCollection>(iPSet.getParameter<edm::InputTag>("vertices"))),
72  trackerGeometryTokenRun_(esConsumes<edm::Transition::BeginRun>()),
74  usePV_(iPSet.getParameter<bool>("usePV")),
75  folder_(iPSet.getParameter<std::string>("folder")),
76  histo_RZ_(nullptr),
77  histo_RZ_Ori_(nullptr),
78  deltaPt_in_out_2d_(nullptr),
79  deltaP_in_out_vs_eta_(nullptr),
80  deltaP_in_out_vs_z_(nullptr),
81  deltaP_in_out_vs_eta_2d_(nullptr),
83  deltaP_in_out_vs_z_2d_(nullptr),
84  deltaPt_in_out_vs_eta_(nullptr),
85  deltaPt_in_out_vs_z_(nullptr),
86  deltaPl_in_out_vs_eta_(nullptr),
87  deltaPl_in_out_vs_z_(nullptr),
88  P_vs_eta_2d_(nullptr) {}
const edm::EDGetTokenT< reco::VertexCollection > verticesToken_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeometryTokenRun_
const edm::EDGetTokenT< reco::TrackCollection > tracksToken_
const edm::EDGetTokenT< reco::BeamSpot > beamspotToken_
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
TrackingRecoMaterialAnalyser::~TrackingRecoMaterialAnalyser ( void  )
override

Definition at line 91 of file TrackingRecoMaterialAnalyser.cc.

91 {}

Member Function Documentation

void TrackingRecoMaterialAnalyser::analyze ( const edm::Event event,
const edm::EventSetup setup 
)
overridevirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 171 of file TrackingRecoMaterialAnalyser.cc.

References funct::abs(), cms::cuda::assert(), beam_dqm_sourceclient-live_cfg::beamSpot, beamspotToken_, deltaP_in_out_vs_eta_, deltaP_in_out_vs_eta_2d_, deltaP_in_out_vs_eta_vs_phi_2d_, deltaP_in_out_vs_z_, deltaP_in_out_vs_z_2d_, deltaPl_in_out_vs_eta_, deltaPl_in_out_vs_z_, deltaPt_in_out_2d_, deltaPt_in_out_vs_eta_, deltaPt_in_out_vs_z_, dqm::impl::MonitorElement::Fill(), HcalObjRepresent::Fill(), edm::EventSetup::getData(), histo_RZ_, histo_RZ_Ori_, histosEta_, histosOriEta_, SurfaceOrientation::inner, isDoubleSided(), reco::Vertex::isFake(), MediumProperties::isValid(), LogTrace, Surface::mediumProperties(), TrackingRecHit::missing, reco::Vertex::ndof(), SurfaceOrientation::outer, fireworks::p2, P_vs_eta_2d_, reco::Vertex::position(), MetAnalyzer::pv(), MediumProperties::radLen(), dt_dqm_sourceclient_common_cff::reco, refitter_, sDETS, TrackTransformer::setServices(), mathSSE::sqrt(), cond::impl::to_string(), HLT_FULL_cff::track, tracks, tracksToken_, TrackTransformer::transform(), tTopoToken_, usePV_, findQualityFiles::v, TrackingRecHit::valid, beam_dqm_sourceclient-live_cfg::vertices, verticesToken_, MediumProperties::xi(), and reco::Vertex::z().

171  {
172  using namespace edm;
173  using namespace reco;
174  using namespace std;
175 
176  refitter_.setServices(setup);
177 
178  Handle<TrackCollection> tracks = event.getHandle(tracksToken_);
180 
181  // Get the TrackerTopology
182  const TrackerTopology *const tTopo = &setup.getData(tTopoToken_);
183 
184  // Get Tracks
185  if (!tracks.isValid() || tracks->empty()) {
186  LogInfo("TrackingRecoMaterialAnalyser") << "Invalid or empty track collection" << endl;
187  return;
188  }
189 
190  // Track Selector
191  auto selector = [](const Track &track, const reco::Vertex::Point &pv) -> bool {
192  return (track.quality(track.qualityByName("highPurity")) && track.dxy(pv) < 0.01 &&
193  track.hitPattern().numberOfLostTrackerHits(HitPattern::MISSING_OUTER_HITS) == 0);
194  };
195 
196  // Get BeamSpot
197  Handle<BeamSpot> beamSpot = event.getHandle(beamspotToken_);
198  // Bail out if missing
199  if (!beamSpot.isValid())
200  return;
201 
202  reco::Vertex::Point pv(beamSpot->position());
203  if (usePV_) {
204  if (vertices.isValid() && !vertices->empty()) {
205  // Since we need to use eta and Z information from the tracks, in
206  // order not to have the reco material distribution washed out due
207  // to geometrical effects, we need to confine the PV to some small
208  // region.
209  const Vertex &v = (*vertices)[0];
210  if (!v.isFake() && v.ndof() > 4 && std::fabs(v.z()) < 24 && std::fabs(v.position().rho()) < 2)
211  pv = v.position();
212  }
213  }
214 
215  // Main idea:
216  // * select first good tracks in input, according to reasonable criteria
217  // * refit the tracks so that we have access to the TrajectoryMeasurements
218  // that internally have all the information about the TSOS on all
219  // crossed layers. We need the refit track and not the original one so
220  // that we are able to correctly compute the path travelled by the track
221  // within the detector, using its updated TSOS. The material description
222  // can in principle be derived also directly from the rechits, via the
223  // det()[(->)GeomDet *]->mediumProperties chain, but that would simply give the
224  // face values, not the "real" ones used while propagating the track.
225  // * Loop on all measurements, extract the information about the TSOS,
226  // its surface and its mediumProperties
227  // * Make plots for the untouched material properties, but also for the
228  // ones corrected by the track direction, since the material properties,
229  // according to the documentation, should refer to normal incidence of
230  // the track, which is seldom the case, according to the current direction
231  TrajectoryStateOnSurface current_tsos;
232  DetId current_det;
233  for (auto const &track : *tracks) {
234  if (!selector(track, pv))
235  continue;
236  auto const &inner = track.innerMomentum();
237  auto const &outer = track.outerMomentum();
238  deltaP_in_out_vs_eta_->Fill(inner.eta(), inner.R() - outer.R());
239  deltaP_in_out_vs_z_->Fill(track.outerZ(), inner.R() - outer.R());
240  deltaP_in_out_vs_eta_2d_->Fill(inner.eta(), inner.R() - outer.R());
241  deltaP_in_out_vs_eta_vs_phi_2d_->Fill(inner.eta(), inner.phi(), inner.R() - outer.R());
242  deltaP_in_out_vs_z_2d_->Fill(track.outerZ(), inner.R() - outer.R());
243  deltaPt_in_out_vs_eta_->Fill(inner.eta(), inner.rho() - outer.rho());
244  deltaPt_in_out_vs_z_->Fill(track.outerZ(), inner.rho() - outer.rho());
245  deltaPl_in_out_vs_eta_->Fill(inner.eta(), inner.z() - outer.z());
246  deltaPl_in_out_vs_z_->Fill(track.outerZ(), inner.z() - outer.z());
247  deltaPt_in_out_2d_->Fill(track.outerZ(), track.outerPosition().rho(), inner.rho() - outer.rho());
248  P_vs_eta_2d_->Fill(track.eta(), track.p());
249  vector<Trajectory> traj = refitter_.transform(track);
250  if (traj.size() > 1 || traj.empty())
251  continue;
252  for (auto const &tm : traj.front().measurements()) {
253  if (tm.recHit().get() &&
254  (tm.recHitR().type() == TrackingRecHit::valid || tm.recHitR().type() == TrackingRecHit::missing)) {
255  current_tsos = tm.updatedState().isValid() ? tm.updatedState() : tm.forwardPredictedState();
256  auto const &localP = current_tsos.localMomentum();
257  current_det = tm.recHit()->geographicalId();
258  const Surface &surface = current_tsos.surface();
259  assert(tm.recHit()->surface() == &surface);
260  if (!surface.mediumProperties().isValid()) {
261  LogError("TrackingRecoMaterialAnalyser")
262  << "Medium properties for material linked to detector"
263  << " are invalid at: " << current_tsos.globalPosition() << " " << (SiStripDetId)current_det << endl;
264  assert(0);
265  continue;
266  }
267  float p2 = localP.mag2();
268  float xf = std::abs(std::sqrt(p2) / localP.z());
269  float ori_xi = surface.mediumProperties().xi();
270  float ori_radLen = surface.mediumProperties().radLen();
271  float xi = ori_xi * xf;
272  float radLen = ori_radLen * xf;
273 
274  // NOTA BENE: THIS ASSUMES THAT THE TRACKS HAVE BEEN PRODUCED
275  // WITH SPLITTING, AS IS THE CASE FOR THE generalTracks
276  // collection.
277 
278  // Since there are double-sided (glued) modules all over the
279  // tracker, the material budget has been internally
280  // partitioned in two equal components, so that each single
281  // layer will receive half of the correct radLen. For this
282  // reason, only for the double-sided components, we rescale
283  // the obtained radLen by 2.
284 
285  // In particular see code here:
286  // http://cmslxr.fnal.gov/dxr/CMSSW_8_0_5/source/Geometry/TrackerGeometryBuilder/src/TrackerGeomBuilderFromGeometricDet.cc#213
287  // where, in the SiStrip Tracker, if the module has a partner
288  // (i.e. it's a glued detector) the plane is built with a
289  // scaling of 0.5. The actual plane is built few lines below:
290  // http://cmslxr.fnal.gov/dxr/CMSSW_8_0_5/source/Geometry/TrackerGeometryBuilder/src/TrackerGeomBuilderFromGeometricDet.cc#287
291 
292  if (isDoubleSided(tTopo, current_det)) {
293  LogTrace("TrackingRecoMaterialAnalyser")
294  << "Eta: " << track.eta() << " " << sDETS[current_det.subdetId()] << tTopo->layer(current_det)
295  << " has ori_radLen: " << ori_radLen << " and ori_xi: " << xi << " and has radLen: " << radLen
296  << " and xi: " << xi << endl;
297  ori_radLen *= 2.;
298  radLen *= 2.;
299  }
300 
301  histosOriEta_[sDETS[current_det.subdetId()] + to_string(tTopo->layer(current_det))]->Fill(
302  current_tsos.globalPosition().eta(), ori_radLen);
303  histosEta_[sDETS[current_det.subdetId()] + to_string(tTopo->layer(current_det))]->Fill(
304  current_tsos.globalPosition().eta(), radLen);
305  histo_RZ_Ori_->Fill(current_tsos.globalPosition().z(), current_tsos.globalPosition().perp(), ori_radLen);
306  histo_RZ_->Fill(current_tsos.globalPosition().z(), current_tsos.globalPosition().perp(), radLen);
307  LogInfo("TrackingRecoMaterialAnalyser")
308  << "Eta: " << track.eta() << " " << sDETS[current_det.subdetId()] << tTopo->layer(current_det)
309  << " has ori_radLen: " << ori_radLen << " and ori_xi: " << xi << " and has radLen: " << radLen
310  << " and xi: " << xi << endl;
311  }
312  }
313  }
314 }
const edm::EDGetTokenT< reco::VertexCollection > verticesToken_
float radLen() const
void setServices(const edm::EventSetup &) override
set the services needed by the TrackTransformer
const TString p2
Definition: fwPaths.cc:13
bool isDoubleSided(const TrackerTopology *tTopo, DetId id)
std::string to_string(const V &value)
Definition: OMSAccess.h:71
std::unordered_map< std::string, MonitorElement * > histosEta_
const edm::EDGetTokenT< reco::TrackCollection > tracksToken_
auto const & tracks
cannot be loose
const edm::EDGetTokenT< reco::BeamSpot > beamspotToken_
Log< level::Error, false > LogError
assert(be >=bs)
const Point & position() const
position
Definition: Vertex.h:127
#define LogTrace(id)
static const std::vector< std::string > sDETS
std::unordered_map< std::string, MonitorElement * > histosOriEta_
void Fill(long long x)
bool getData(T &iHolder) const
Definition: EventSetup.h:122
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
T sqrt(T t)
Definition: SSEVec.h:19
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double z() const
z coordinate
Definition: Vertex.h:133
math::XYZPoint Point
point in the space
Definition: Vertex.h:40
double ndof() const
Definition: Vertex.h:123
Log< level::Info, false > LogInfo
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:18
Definition: DetId.h:17
bool isFake() const
Definition: Vertex.h:76
float xi() const
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
bool isValid() const
const MediumProperties & mediumProperties() const
Definition: Surface.h:83
std::vector< Trajectory > transform(const reco::Track &) const override
Convert a reco::Track into Trajectory.
void TrackingRecoMaterialAnalyser::bookHistograms ( DQMStore::IBooker i,
edm::Run const &  ,
edm::EventSetup const &  setup 
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 94 of file TrackingRecoMaterialAnalyser.cc.

References dqm::implementation::IBooker::book2D(), dqm::implementation::IBooker::bookProfile(), dqm::implementation::IBooker::bookProfile2D(), data, deltaP_in_out_vs_eta_, deltaP_in_out_vs_eta_2d_, deltaP_in_out_vs_eta_vs_phi_2d_, deltaP_in_out_vs_z_, deltaP_in_out_vs_z_2d_, deltaPl_in_out_vs_eta_, deltaPl_in_out_vs_z_, deltaPt_in_out_2d_, deltaPt_in_out_vs_eta_, deltaPt_in_out_vs_z_, folder_, edm::EventSetup::getData(), histo_RZ_, histo_RZ_Ori_, histosEta_, histosOriEta_, submitPVResolutionJobs::key, P_vs_eta_2d_, sDETS, dqm::implementation::NavigatorBase::setCurrentFolder(), runGCPTkAlMap::title, and trackerGeometryTokenRun_.

96  {
97  using namespace std;
98  const TrackerGeometry &trackerGeometry = setup.getData(trackerGeometryTokenRun_);
99 
100  ibook.setCurrentFolder(folder_);
101 
102  // Histogram to store the radiation length map, in the R-Z plane,
103  // gathering numbers directly from the trackerRecoMaterial.xml
104  // file. The numbers are not corrected for the track angle.
105  histo_RZ_Ori_ = ibook.bookProfile2D("OriRadLen", "Original_RadLen", 600, -300., 300, 120, 0., 120., 0., 1.);
106 
107  // Histogram to store the radiation length map, as before, but
108  // correcting the numbers with the track angle. This represents the
109  // real material seen by the track.
110  histo_RZ_ = ibook.bookProfile2D("RadLen", "RadLen", 600, -300., 300, 120, 0., 120., 0., 1.);
111 
112  // Histogram to show the deltaP Out-In in the eta-phi plane.
113  deltaP_in_out_vs_eta_vs_phi_2d_ = ibook.bookProfile2D(
114  "DeltaP_in_out_vs_eta_vs_phi_2d", "DeltaP_in_out_vs_eta_vs_phi_2d", 100, -3.0, 3.0, 100, -3.15, 3.15, 0., 100.);
115 
116  // Histogram to show the deltaP Out-In vs eta.
118  ibook.book2D("DeltaP_in_out_vs_eta_2d", "DeltaP_in_out_vs_eta_2d", 100, -3.0, 3.0, 100, 0., 1);
119 
120  // Histogram to show the deltaP Out-In vs Z. The Z coordinate is the
121  // one computed at the outermost hit.
122  deltaP_in_out_vs_z_2d_ = ibook.book2D("DeltaP_in_out_vs_z_2d", "DeltaP_in_out_vs_z_2d", 600, -300, 300, 200., -1, 1.);
123 
124  // Histogram to show the deltaP Out-In vs eta. The eta is the one
125  // computed at the innermost hit.
127  ibook.bookProfile("DeltaP_in_out_vs_eta", "DeltaP_in_out_vs_eta", 100, -3.0, 3.0, -100., 100.);
128  deltaP_in_out_vs_z_ = ibook.bookProfile("DeltaP_in_out_vs_z", "DeltaP_in_out_vs_z", 600, -300, 300, -100., 100.);
129 
130  // Histogram to show the delta_Pt Out-In vs eta. The eta is the one
131  // computed at the innermost hit.
133  ibook.bookProfile("DeltaPt_in_out_vs_eta", "DeltaPt_in_out_vs_eta", 100, -3.0, 3.0, -100., 100.);
134 
135  // Histogram to show the delta_Pt Out-In vs Z. The Z is the one
136  // computed at the outermost hit.
137  deltaPt_in_out_vs_z_ = ibook.bookProfile("DeltaPt_in_out_vs_z", "DeltaPt_in_out_vs_z", 600, -300, 300, -100., 100);
138 
139  // Histogram to show the delta_Pl Out-In vs eta. The eta is the one
140  // computed at the innermost hit.
142  ibook.bookProfile("DeltaPz_in_out_vs_eta", "DeltaPz_in_out_vs_eta", 100, -3.0, 3.0, -100., 100.);
143 
144  // Histogram to show the delta_Pl Out-In vs Z. The Z is the one
145  // computed at the outermost hit.
146  deltaPl_in_out_vs_z_ = ibook.bookProfile("DeltaPz_in_out_vs_z", "DeltaPz_in_out_vs_z", 600, -300, 300, -100., 100.);
147 
148  // Histogram to show the delta_Pt Out-In in the Z-R plane. Z and R
149  // are related to the outermost hit.
150  deltaPt_in_out_2d_ = ibook.bookProfile2D("DeltaPt 2D", "DeltaPt 2D", 600, -300., 300, 120, 0., 120., -100., 100.);
151 
152  // Histogram to show the distribution of p vs eta for all tracks.
153  P_vs_eta_2d_ = ibook.book2D("P_vs_eta_2d", "P_vs_eta_2d", 100, -3.0, 3.0, 100., 0., 5.);
154  char title[50];
155  char key[20];
156  for (unsigned int det = 1; det < sDETS.size(); ++det) {
157  for (unsigned int sub_det = 1; sub_det <= trackerGeometry.numberOfLayers(det); ++sub_det) {
158  memset(title, 0, sizeof(title));
159  snprintf(title, sizeof(title), "Original_RadLen_vs_Eta_%s%d", sDETS[det].data(), sub_det);
160  snprintf(key, sizeof(key), "%s%d", sDETS[det].data(), sub_det);
161  histosOriEta_.insert(
162  make_pair<string, MonitorElement *>(key, ibook.bookProfile(title, title, 250, -5.0, 5.0, 0., 1.)));
163  snprintf(title, sizeof(title), "RadLen_vs_Eta_%s%d", sDETS[det].data(), sub_det);
164  histosEta_.insert(
165  make_pair<string, MonitorElement *>(key, ibook.bookProfile(title, title, 250, -5.0, 5.0, 0., 1.)));
166  }
167  }
168 }
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeometryTokenRun_
std::unordered_map< std::string, MonitorElement * > histosEta_
static const std::vector< std::string > sDETS
std::unordered_map< std::string, MonitorElement * > histosOriEta_
tuple key
prepare the HTCondor submission files and eventually submit them
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
bool TrackingRecoMaterialAnalyser::isDoubleSided ( const TrackerTopology tTopo,
DetId  id 
)
inlineprivate

Definition at line 40 of file TrackingRecoMaterialAnalyser.cc.

References TrackerTopology::glued().

Referenced by analyze().

40 { return (tTopo->glued(id)); }
uint32_t glued(const DetId &id) const

Member Data Documentation

const edm::EDGetTokenT<reco::BeamSpot> TrackingRecoMaterialAnalyser::beamspotToken_
private

Definition at line 43 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze().

MonitorElement* TrackingRecoMaterialAnalyser::deltaP_in_out_vs_eta_
private

Definition at line 54 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingRecoMaterialAnalyser::deltaP_in_out_vs_eta_2d_
private

Definition at line 56 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingRecoMaterialAnalyser::deltaP_in_out_vs_eta_vs_phi_2d_
private

Definition at line 57 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingRecoMaterialAnalyser::deltaP_in_out_vs_z_
private

Definition at line 55 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingRecoMaterialAnalyser::deltaP_in_out_vs_z_2d_
private

Definition at line 58 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingRecoMaterialAnalyser::deltaPl_in_out_vs_eta_
private

Definition at line 61 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingRecoMaterialAnalyser::deltaPl_in_out_vs_z_
private

Definition at line 62 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingRecoMaterialAnalyser::deltaPt_in_out_2d_
private

Definition at line 53 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingRecoMaterialAnalyser::deltaPt_in_out_vs_eta_
private

Definition at line 59 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingRecoMaterialAnalyser::deltaPt_in_out_vs_z_
private

Definition at line 60 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze(), and bookHistograms().

std::string TrackingRecoMaterialAnalyser::folder_
private

Definition at line 48 of file TrackingRecoMaterialAnalyser.cc.

Referenced by bookHistograms().

MonitorElement* TrackingRecoMaterialAnalyser::histo_RZ_
private

Definition at line 51 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingRecoMaterialAnalyser::histo_RZ_Ori_
private

Definition at line 52 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze(), and bookHistograms().

std::unordered_map<std::string, MonitorElement *> TrackingRecoMaterialAnalyser::histosEta_
private

Definition at line 50 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze(), and bookHistograms().

std::unordered_map<std::string, MonitorElement *> TrackingRecoMaterialAnalyser::histosOriEta_
private

Definition at line 49 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* TrackingRecoMaterialAnalyser::P_vs_eta_2d_
private

Definition at line 63 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze(), and bookHistograms().

TrackTransformer TrackingRecoMaterialAnalyser::refitter_
private

Definition at line 41 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze().

const edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> TrackingRecoMaterialAnalyser::trackerGeometryTokenRun_
private

Definition at line 45 of file TrackingRecoMaterialAnalyser.cc.

Referenced by bookHistograms().

const edm::EDGetTokenT<reco::TrackCollection> TrackingRecoMaterialAnalyser::tracksToken_
private

Definition at line 42 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze().

const edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> TrackingRecoMaterialAnalyser::tTopoToken_
private

Definition at line 46 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze().

bool TrackingRecoMaterialAnalyser::usePV_
private

Definition at line 47 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze().

const edm::EDGetTokenT<reco::VertexCollection> TrackingRecoMaterialAnalyser::verticesToken_
private

Definition at line 44 of file TrackingRecoMaterialAnalyser.cc.

Referenced by analyze().