|
 |
Definition at line 39 of file HGCalRecHitValidation.cc.
◆ HGCalRecHitValidation()
◆ ~HGCalRecHitValidation()
HGCalRecHitValidation::~HGCalRecHitValidation |
( |
| ) |
|
|
inlineoverride |
◆ analyze()
Reimplemented from DQMEDAnalyzer.
Definition at line 119 of file HGCalRecHitValidation.cc.
124 unsigned int ntot(0), nused(0);
128 if (!
geom.isValid()) {
139 for (
const auto& it : *(hbhecoll.
product())) {
140 DetId detId = it.id();
151 <<
"Handle does not exist !!!";
159 for (
const auto& it : *(hbhecoll.
product())) {
160 DetId detId = it.id();
169 <<
"Handle does not exist !!!";
176 if (!
geom.isValid()) {
181 int geomType = ((
geom0->topology().waferHexagon8()) ? 1 : ((
geom0->topology().tileTrapezoid()) ? 2 : 0));
185 if (theRecHitContainers.
isValid()) {
189 for (
const auto& it : *(theRecHitContainers.
product())) {
192 DetId detId = it.id();
193 int layer = ((geomType == 0)
201 <<
"does not exist !!!";
208 edm::LogVerbatim(
"HGCalValidation") <<
"Event " <<
iEvent.id().event() <<
" with " << ntot <<
" total and " << nused
References HcalDetId::depth(), fillHitsInfo(), relativeConstraints::geom, motionPolicyChamber::geom0, edm::EventSetup::get(), get, HcalEndcap, iEvent, ifHCAL_, edm::HandleBase::isValid(), HGCalDetId::layer(), HGCScintillatorDetId::layer(), HGCSiliconDetId::layer(), nameDetector_, OccupancyMap_minus, OccupancyMap_plus, convertSQLiteXML::ok, edm::Handle< T >::product(), recHitSource_, recHitValidation(), edm::SortedCollection< T, SORT >::size(), DetId::subdetId(), and verbosity_.
◆ bookHistograms()
Implements DQMEDAnalyzer.
Definition at line 287 of file HGCalRecHitValidation.cc.
289 std::ostringstream histoname;
290 for (
unsigned int il = 0; il <
layers_; ++il) {
292 auto istr1 = std::to_string(ilayer);
293 while (istr1.size() < 2) {
294 istr1.insert(0,
"0");
297 histoname <<
"HitOccupancy_Plus_layer_" << istr1;
300 histoname <<
"HitOccupancy_Minus_layer_" << istr1;
304 histoname <<
"EtaPhi_Plus_"
305 <<
"layer_" << istr1;
308 histoname <<
"EtaPhi_Minus_"
309 <<
"layer_" << istr1;
314 histoname <<
"energy_layer_" << istr1;
315 energy_.push_back(iB.
book1D(histoname.str().c_str(),
"energy_", 500, 0, 1));
319 histoname <<
"SUMOfRecHitOccupancy_Plus";
323 histoname <<
"SUMOfRecHitOccupancy_Minus";
References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), energy_, EtaPhi_Minus_, EtaPhi_Plus_, firstLayer_, HitOccupancy_Minus_, HitOccupancy_Plus_, createfilelist::int, layers_, MeanHitOccupancy_Minus_, MeanHitOccupancy_Plus_, nameDetector_, pi, and dqm::implementation::NavigatorBase::setCurrentFolder().
◆ dqmBeginRun()
◆ fillDescriptions()
◆ fillHitsInfo() [1/2]
void HGCalRecHitValidation::fillHitsInfo |
( |
| ) |
|
|
private |
◆ fillHitsInfo() [2/2]
void HGCalRecHitValidation::fillHitsInfo |
( |
HitsInfo & |
hits | ) |
|
|
private |
◆ fillOccupancyMap()
void HGCalRecHitValidation::fillOccupancyMap |
( |
std::map< int, int > & |
OccupancyMap, |
|
|
int |
layer |
|
) |
| |
|
private |
◆ recHitValidation()
template<class T1 , class T2 >
void HGCalRecHitValidation::recHitValidation |
( |
DetId & |
detId, |
|
|
int |
layer, |
|
|
const T1 * |
geom, |
|
|
T2 |
it |
|
) |
| |
|
private |
Definition at line 213 of file HGCalRecHitValidation.cc.
215 double energy = it->energy();
217 float globalx = global.
x();
218 float globaly = global.
y();
219 float globalz = global.
z();
231 edm::LogVerbatim(
"HGCalValidation") <<
"-------------------------- gx = " << globalx <<
" gy = " << globaly
232 <<
" gz = " << globalz <<
" phi = " <<
hinfo.phi <<
" eta = " <<
hinfo.eta
233 <<
" lay = " <<
hinfo.layer;
References HCALHighEnergyHPDFilter_cfi::energy, PV3DBase< T, PVType, FrameType >::eta(), fillHitsInfo(), fillOccupancyMap(), firstLayer_, relativeConstraints::geom, OccupancyMap_minus, OccupancyMap_plus, PV3DBase< T, PVType, FrameType >::phi(), verbosity_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by analyze().
◆ energy_
◆ EtaPhi_Minus_
◆ EtaPhi_Plus_
◆ firstLayer_
int HGCalRecHitValidation::firstLayer_ |
|
private |
◆ HitOccupancy_Minus_
std::vector<MonitorElement*> HGCalRecHitValidation::HitOccupancy_Minus_ |
|
private |
◆ HitOccupancy_Plus_
std::vector<MonitorElement*> HGCalRecHitValidation::HitOccupancy_Plus_ |
|
private |
◆ ifHCAL_
bool HGCalRecHitValidation::ifHCAL_ |
|
private |
◆ layers_
unsigned int HGCalRecHitValidation::layers_ |
|
private |
◆ MeanHitOccupancy_Minus_
◆ MeanHitOccupancy_Plus_
◆ nameDetector_
std::string HGCalRecHitValidation::nameDetector_ |
|
private |
◆ OccupancyMap_minus
std::map<int, int> HGCalRecHitValidation::OccupancyMap_minus |
|
private |
◆ OccupancyMap_plus
std::map<int, int> HGCalRecHitValidation::OccupancyMap_plus |
|
private |
◆ recHitSource_
◆ verbosity_
int HGCalRecHitValidation::verbosity_ |
|
private |
std::string nameDetector_
T const * product() const
MonitorElement * MeanHitOccupancy_Minus_
void fillOccupancyMap(std::map< int, int > &OccupancyMap, int layer)
std::vector< MonitorElement * > EtaPhi_Minus_
virtual void setCurrentFolder(std::string const &fullpath)
edm::EDGetToken recHitSource_
constexpr int depth() const
get the tower depth
std::map< int, int > OccupancyMap_plus
T getUntrackedParameter(std::string const &, T const &) const
int layer() const
get the layer #
int layer() const
get the layer #
std::vector< MonitorElement * > HitOccupancy_Plus_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
void recHitValidation(DetId &detId, int layer, const T1 *geom, T2 it)
std::vector< MonitorElement * > EtaPhi_Plus_
std::vector< MonitorElement * > HitOccupancy_Minus_
unsigned int layers(bool reco) const
std::vector< std::pair< float, float > >::iterator itr
std::vector< MonitorElement * > energy_
MonitorElement * MeanHitOccupancy_Plus_
Log< level::Info, true > LogVerbatim
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
std::map< int, int > OccupancyMap_minus
T getParameter(std::string const &) const
int getMaxDepth(const int &type) const
Geom::Phi< T > phi() const
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
int layer() const
get the layer #