102 unsigned int n_reco_btl = 0;
104 for (
const auto&
recHit : *btlRecHitsHandle) {
108 if (thedet ==
nullptr)
109 throw cms::Exception(
"BtlRecHitsValidation") <<
"GeographicalID: " << std::hex << geoId.
rawId() <<
" (" 110 << detId.
rawId() <<
") is invalid!" <<
std::dec << std::endl;
116 const auto& global_point = thedet->
toGlobal(local_point);
152 meNhits_ = ibook.
book1D(
"BtlNhits",
"Number of BTL RECO hits;N_{RECO}", 100, 0., 5000.);
154 meHitEnergy_ = ibook.
book1D(
"BtlHitEnergy",
"BTL RECO hits energy;E_{RECO} [MeV]", 100, 0., 20.);
155 meHitTime_ = ibook.
book1D(
"BtlHitTime",
"BTL RECO hits ToA;ToA_{RECO} [ns]", 100, 0., 25.);
158 "BtlOccupancy",
"BTL RECO hits occupancy;Z_{RECO} [cm]; #phi_{RECO} [rad]", 65, -260., 260., 126, -3.15, 3.15);
160 meHitX_ = ibook.
book1D(
"BtlHitX",
"BTL RECO hits X;X_{RECO} [cm]", 60, -120., 120.);
161 meHitY_ = ibook.
book1D(
"BtlHitY",
"BTL RECO hits Y;Y_{RECO} [cm]", 60, -120., 120.);
162 meHitZ_ = ibook.
book1D(
"BtlHitZ",
"BTL RECO hits Z;Z_{RECO} [cm]", 100, -260., 260.);
163 meHitPhi_ = ibook.
book1D(
"BtlHitPhi",
"BTL RECO hits #phi;#phi_{RECO} [rad]", 126, -3.15, 3.15);
164 meHitEta_ = ibook.
book1D(
"BtlHitEta",
"BTL RECO hits #eta;#eta_{RECO}", 100, -1.55, 1.55);
167 ibook.
bookProfile(
"BtlHitTvsE",
"BTL RECO ToA vs energy;E_{RECO} [MeV];ToA_{RECO} [ns]", 50, 0., 20., 0., 100.);
169 "BtlHitEvsPhi",
"BTL RECO energy vs #phi;#phi_{RECO} [rad];E_{RECO} [MeV]", 50, -3.15, 3.15, 0., 100.);
171 "BtlHitEvsEta",
"BTL RECO energy vs #eta;#eta_{RECO};E_{RECO} [MeV]", 50, -1.55, 1.55, 0., 100.);
173 ibook.
bookProfile(
"BtlHitEvsZ",
"BTL RECO energy vs Z;Z_{RECO} [cm];E_{RECO} [MeV]", 50, -260., 260., 0., 100.);
175 "BtlHitTvsPhi",
"BTL RECO ToA vs #phi;#phi_{RECO} [rad];ToA_{RECO} [ns]", 50, -3.15, 3.15, 0., 100.);
177 ibook.
bookProfile(
"BtlHitTvsEta",
"BTL RECO ToA vs #eta;#eta_{RECO};ToA_{RECO} [ns]", 50, -1.6, 1.6, 0., 100.);
179 ibook.
bookProfile(
"BtlHitTvsZ",
"BTL RECO ToA vs Z;Z_{RECO} [cm];ToA_{RECO} [ns]", 50, -260., 260., 0., 100.);
189 descriptions.
add(
"btlRecHits", desc);
T getParameter(std::string const &) const
MonitorElement * meHitEnergy_
const std::string folder_
CaloTopology const * topology(0)
MonitorElement * bookProfile(Args &&...args)
MonitorElement * meHitEvsZ_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
virtual const Topology & topology() const
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
MonitorElement * meHitPhi_
int getMTDTopologyMode() const
constexpr uint32_t rawId() const
get the raw id
MonitorElement * meNhits_
BtlRecHitsValidation(const edm::ParameterSet &)
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * meHitTime_
int nrows() const override
MonitorElement * meOccupancy_
MonitorElement * meHitEta_
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
const MTDGeomDet * idToDet(DetId) const override
#define DEFINE_FWK_MODULE(type)
BTLDetId geographicalId(CrysLayout lay) const
void setCurrentFolder(std::string const &fullpath)
MonitorElement * meHitTvsPhi_
MonitorElement * meHitEvsPhi_
virtual const PixelTopology & specificTopology() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
MonitorElement * book1D(Args &&...args)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
LocalPoint pixelToModuleLocalPoint(const LocalPoint &plp, int row, int col) const
MonitorElement * book2D(Args &&...args)
edm::EDGetTokenT< FTLRecHitCollection > btlRecHitsToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
~BtlRecHitsValidation() override
Detector identifier class for the Barrel Timing Layer. The crystal count must start from 0...
int column(unsigned nrows=16) const
MonitorElement * meHitTvsE_
auto makeValid(const U &iOtherHandleType) noexcept(false)
MonitorElement * meHitEvsEta_
T const * product() const
MonitorElement * meHitTvsEta_
MonitorElement * meHitTvsZ_
int row(unsigned nrows=16) const