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 39 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 51 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().

51  {
52  ibook.setCurrentFolder(folder);
54  ibook.book1D("clusterBarycenter", "cluster barycenter;cluster barycenter;#clusters", 7680., 0., 7680.);
55  h_width_ = ibook.book1D("clusterWidth", "cluster width;cluster width;#clusters", 128, -0.5, 127.5);
56  h_avgCharge_ =
57  ibook.book1D("clusterAvgCharge", "average strip charge;average strip charge;#clusters", 256, -0.5, 255.5);
58  h_isSaturated_ = ibook.book1D("clusterSaturation", "cluster saturation;is saturated?;#clusters", 3, -1.5, 1.5);
59  h_isSaturated_->getTH1F()->GetXaxis()->SetBinLabel(1, "Not saturated");
60  h_isSaturated_->getTH1F()->GetXaxis()->SetBinLabel(3, "Saturated");
61  isBooked_ = true;
62  }
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 44 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().

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

Referenced by book(), and fill().

◆ h_barycenter_

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

Definition at line 67 of file SiStripMonitorApproximateCluster.cc.

Referenced by book(), and fill().

◆ h_isSaturated_

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

Definition at line 70 of file SiStripMonitorApproximateCluster.cc.

Referenced by book(), and fill().

◆ h_width_

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

Definition at line 68 of file SiStripMonitorApproximateCluster.cc.

Referenced by book(), and fill().

◆ isBooked_

bool siStripRawPrime::monitorApproxCluster::isBooked_
private

Definition at line 71 of file SiStripMonitorApproximateCluster.cc.

Referenced by book(), and isBooked().