CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TrackingNtuple::DetIdPixelOnly Class Reference

Public Member Functions

void book (const std::string &prefix, TTree *tree)
 
void clear ()
 
 DetIdPixelOnly ()
 
void push_back (const TrackerTopology &tTopo, const DetId &id)
 

Private Attributes

std::vector< unsigned short > blade
 
std::vector< unsigned short > ladder
 
std::vector< unsigned short > panel
 

Detailed Description

Definition at line 755 of file TrackingNtuple.cc.

Constructor & Destructor Documentation

◆ DetIdPixelOnly()

TrackingNtuple::DetIdPixelOnly::DetIdPixelOnly ( )
inline

Definition at line 757 of file TrackingNtuple.cc.

757 {}

Member Function Documentation

◆ book()

void TrackingNtuple::DetIdPixelOnly::book ( const std::string &  prefix,
TTree *  tree 
)
inline

Definition at line 759 of file TrackingNtuple.cc.

759  {
760  BOOK(ladder);
761  BOOK(blade);
762  BOOK(panel);
763  }

References blade, BOOK, ladder, and panel.

◆ clear()

void TrackingNtuple::DetIdPixelOnly::clear ( void  )
inline

Definition at line 772 of file TrackingNtuple.cc.

772  {
773  ladder.clear();
774  blade.clear();
775  panel.clear();
776  }

References blade, ladder, and panel.

◆ push_back()

void TrackingNtuple::DetIdPixelOnly::push_back ( const TrackerTopology tTopo,
const DetId id 
)
inline

Definition at line 765 of file TrackingNtuple.cc.

765  {
766  const bool isBarrel = id.subdetId() == PixelSubdetector::PixelBarrel;
767  ladder.push_back(isBarrel ? tTopo.pxbLadder(id) : 0);
768  blade.push_back(isBarrel ? 0 : tTopo.pxfBlade(id));
769  panel.push_back(isBarrel ? 0 : tTopo.pxfPanel(id));
770  }

References blade, PixelPluginsPhase0_cfi::isBarrel, ladder, panel, PixelSubdetector::PixelBarrel, TrackerTopology::pxbLadder(), TrackerTopology::pxfBlade(), and TrackerTopology::pxfPanel().

Member Data Documentation

◆ blade

std::vector<unsigned short> TrackingNtuple::DetIdPixelOnly::blade
private

Definition at line 780 of file TrackingNtuple.cc.

Referenced by book(), clear(), and push_back().

◆ ladder

std::vector<unsigned short> TrackingNtuple::DetIdPixelOnly::ladder
private

Definition at line 779 of file TrackingNtuple.cc.

Referenced by book(), clear(), and push_back().

◆ panel

std::vector<unsigned short> TrackingNtuple::DetIdPixelOnly::panel
private

Definition at line 781 of file TrackingNtuple.cc.

Referenced by book(), clear(), and push_back().

PixelSubdetector::PixelBarrel
Definition: PixelSubdetector.h:11
TrackerTopology::pxbLadder
unsigned int pxbLadder(const DetId &id) const
Definition: TrackerTopology.h:155
TrackingNtuple::DetIdPixelOnly::ladder
std::vector< unsigned short > ladder
Definition: TrackingNtuple.cc:779
TrackerTopology::pxfPanel
unsigned int pxfPanel(const DetId &id) const
Definition: TrackerTopology.h:450
TrackingNtuple::DetIdPixelOnly::blade
std::vector< unsigned short > blade
Definition: TrackingNtuple.cc:780
PixelPluginsPhase0_cfi.isBarrel
isBarrel
Definition: PixelPluginsPhase0_cfi.py:17
BOOK
#define BOOK(name)
Definition: TrackingNtuple.cc:688
TrackerTopology::pxfBlade
unsigned int pxfBlade(const DetId &id) const
Definition: TrackerTopology.h:447
TrackingNtuple::DetIdPixelOnly::panel
std::vector< unsigned short > panel
Definition: TrackingNtuple.cc:781