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_isSaturated_
 
dqm::reco::MonitorElementh_width_
 
bool isBooked_
 

Detailed Description

Definition at line 40 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 52 of file SiStripMonitorApproximateCluster.cc.

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

Referenced by SiStripMonitorApproximateCluster::bookHistograms().

52  {
53  ibook.setCurrentFolder(folder);
55  ibook.book1D("clusterBarycenter", "cluster barycenter;cluster barycenter;#clusters", 7680., 0., 7680.);
56  h_width_ = ibook.book1D("clusterWidth", "cluster width;cluster width;#clusters", 128, -0.5, 127.5);
57  h_avgCharge_ =
58  ibook.book1D("clusterAvgCharge", "average strip charge;average strip charge;#clusters", 256, -0.5, 255.5);
59  h_isSaturated_ = ibook.book1D("clusterSaturation", "cluster saturation;is saturated?;#clusters", 3, -1.5, 1.5);
60  h_isSaturated_->getTH1F()->GetXaxis()->SetBinLabel(1, "Not saturated");
61  h_isSaturated_->getTH1F()->GetXaxis()->SetBinLabel(3, "Saturated");
62  isBooked_ = true;
63  }
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:36
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 45 of file SiStripMonitorApproximateCluster.cc.

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

Referenced by SiStripMonitorApproximateCluster::analyze().

45  {
46  h_barycenter_->Fill(cluster.barycenter());
47  h_width_->Fill(cluster.width());
48  h_avgCharge_->Fill(cluster.avgCharge());
49  h_isSaturated_->Fill(cluster.isSaturated() ? 1 : -1);
50  }
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 70 of file SiStripMonitorApproximateCluster.cc.

Referenced by book(), and fill().

◆ h_barycenter_

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

Definition at line 68 of file SiStripMonitorApproximateCluster.cc.

Referenced by book(), and fill().

◆ h_isSaturated_

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

Definition at line 71 of file SiStripMonitorApproximateCluster.cc.

Referenced by book(), and fill().

◆ h_width_

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

Definition at line 69 of file SiStripMonitorApproximateCluster.cc.

Referenced by book(), and fill().

◆ isBooked_

bool siStripRawPrime::monitorApproxCluster::isBooked_
private

Definition at line 72 of file SiStripMonitorApproximateCluster.cc.

Referenced by book(), and isBooked().