CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
siStripRawPrime::monitorApproxCluster Struct Reference

Public Member Functions

void book (dqm::implementation::DQMStore::IBooker &ibook, const std::string &folder)
 
void fill (const SiStripApproximateCluster &cluster)
 
bool isBooked ()
 
 monitorApproxCluster ()
 

Private Attributes

dqm::reco::MonitorElementh_avgCharge_
 
dqm::reco::MonitorElementh_barycenter_
 
dqm::reco::MonitorElementh_charge_
 
dqm::reco::MonitorElementh_isSaturated_
 
dqm::reco::MonitorElementh_passFilter_
 
dqm::reco::MonitorElementh_passPeakFilter_
 
dqm::reco::MonitorElementh_width_
 
bool isBooked_
 

Detailed Description

Definition at line 44 of file SiStripMonitorApproximateCluster.cc.

Constructor & Destructor Documentation

◆ monitorApproxCluster()

siStripRawPrime::monitorApproxCluster::monitorApproxCluster ( )
inline

Member Function Documentation

◆ book()

void siStripRawPrime::monitorApproxCluster::book ( dqm::implementation::DQMStore::IBooker ibook,
const std::string &  folder 
)
inline

Definition at line 59 of file SiStripMonitorApproximateCluster.cc.

References dqm::implementation::IBooker::book1D(), printsummarytable::folder, h_avgCharge_, h_barycenter_, h_charge_, h_isSaturated_, h_passFilter_, h_passPeakFilter_, h_width_, isBooked_, dqm::impl::MonitorElement::setBinLabel(), and dqm::implementation::NavigatorBase::setCurrentFolder().

Referenced by SiStripMonitorApproximateCluster::bookHistograms().

59  {
60  ibook.setCurrentFolder(folder);
62  ibook.book1D("clusterBarycenter", "cluster barycenter;cluster barycenter;#clusters", 7680., 0., 7680.);
63  h_width_ = ibook.book1D("clusterWidth", "cluster width;cluster width;#clusters", 128, -0.5, 127.5);
64  h_avgCharge_ = ibook.book1D(
65  "clusterAvgCharge", "average strip charge;average strip charge [ADC counts];#clusters", 256, -0.5, 255.5);
66 
67  h_charge_ = ibook.book1D(
68  "clusterCharge", "total cluster charge;total cluster charge [ADC counts];#clusters", 300, -0.5, 2999.5);
69 
70  h_isSaturated_ = ibook.book1D("clusterSaturation", "cluster saturation;is saturated?;#clusters", 3, -1.5, 1.5);
71  h_isSaturated_->setBinLabel(1, "Not saturated");
72  h_isSaturated_->setBinLabel(3, "Saturated");
73 
74  h_passFilter_ = ibook.book1D("filter", "filter;passes filter?;#clusters", 3, -1.5, 1.5);
75  h_passFilter_->setBinLabel(1, "No");
76  h_passFilter_->setBinLabel(3, "Yes");
77 
78  h_passPeakFilter_ = ibook.book1D("peakFilter", "peak filter;passes peak filter?;#clusters", 3, -1.5, 1.5);
80  h_passPeakFilter_->setBinLabel(3, "Yes");
81 
82  isBooked_ = true;
83  }
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98

◆ fill()

void siStripRawPrime::monitorApproxCluster::fill ( const SiStripApproximateCluster cluster)
inline

Definition at line 49 of file SiStripMonitorApproximateCluster.cc.

References SiStripApproximateCluster::avgCharge(), SiStripApproximateCluster::barycenter(), dqm::impl::MonitorElement::Fill(), SiStripApproximateCluster::filter(), h_avgCharge_, h_barycenter_, h_charge_, h_isSaturated_, h_passFilter_, h_passPeakFilter_, h_width_, SiStripApproximateCluster::isSaturated(), SiStripApproximateCluster::peakFilter(), and SiStripApproximateCluster::width().

Referenced by SiStripMonitorApproximateCluster::analyze().

49  {
50  h_barycenter_->Fill(cluster.barycenter());
51  h_width_->Fill(cluster.width());
52  h_charge_->Fill(cluster.width() * cluster.avgCharge()); // see SiStripCluster constructor
53  h_avgCharge_->Fill(cluster.avgCharge());
54  h_isSaturated_->Fill(cluster.isSaturated() ? 1 : -1);
55  h_passFilter_->Fill(cluster.filter() ? 1 : -1);
56  h_passPeakFilter_->Fill(cluster.peakFilter() ? 1 : -1);
57  }
void Fill(long long x)

◆ isBooked()

bool siStripRawPrime::monitorApproxCluster::isBooked ( )
inline

Member Data Documentation

◆ h_avgCharge_

dqm::reco::MonitorElement* siStripRawPrime::monitorApproxCluster::h_avgCharge_
private

Definition at line 91 of file SiStripMonitorApproximateCluster.cc.

Referenced by book(), and fill().

◆ h_barycenter_

dqm::reco::MonitorElement* siStripRawPrime::monitorApproxCluster::h_barycenter_
private

Definition at line 89 of file SiStripMonitorApproximateCluster.cc.

Referenced by book(), and fill().

◆ h_charge_

dqm::reco::MonitorElement* siStripRawPrime::monitorApproxCluster::h_charge_
private

Definition at line 92 of file SiStripMonitorApproximateCluster.cc.

Referenced by book(), and fill().

◆ h_isSaturated_

dqm::reco::MonitorElement* siStripRawPrime::monitorApproxCluster::h_isSaturated_
private

Definition at line 93 of file SiStripMonitorApproximateCluster.cc.

Referenced by book(), and fill().

◆ h_passFilter_

dqm::reco::MonitorElement* siStripRawPrime::monitorApproxCluster::h_passFilter_
private

Definition at line 94 of file SiStripMonitorApproximateCluster.cc.

Referenced by book(), and fill().

◆ h_passPeakFilter_

dqm::reco::MonitorElement* siStripRawPrime::monitorApproxCluster::h_passPeakFilter_
private

Definition at line 95 of file SiStripMonitorApproximateCluster.cc.

Referenced by book(), and fill().

◆ h_width_

dqm::reco::MonitorElement* siStripRawPrime::monitorApproxCluster::h_width_
private

Definition at line 90 of file SiStripMonitorApproximateCluster.cc.

Referenced by book(), and fill().

◆ isBooked_

bool siStripRawPrime::monitorApproxCluster::isBooked_
private

Definition at line 97 of file SiStripMonitorApproximateCluster.cc.

Referenced by book(), and isBooked().