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 TrackerGeometry &tracker, 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 777 of file TrackingNtuple.cc.

Constructor & Destructor Documentation

◆ DetIdPixelOnly()

TrackingNtuple::DetIdPixelOnly::DetIdPixelOnly ( )
inline

Definition at line 779 of file TrackingNtuple.cc.

779 {}

Member Function Documentation

◆ book()

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

Definition at line 781 of file TrackingNtuple.cc.

References blade, BOOK, ladder, and panel.

781  {
782  BOOK(ladder);
783  BOOK(blade);
784  BOOK(panel);
785  }
#define BOOK(name)
std::vector< unsigned short > ladder
std::vector< unsigned short > panel
std::vector< unsigned short > blade

◆ clear()

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

Definition at line 794 of file TrackingNtuple.cc.

References blade, ladder, and panel.

794  {
795  ladder.clear();
796  blade.clear();
797  panel.clear();
798  }
std::vector< unsigned short > ladder
std::vector< unsigned short > panel
std::vector< unsigned short > blade

◆ push_back()

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

Definition at line 787 of file TrackingNtuple.cc.

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

787  {
788  const bool isBarrel = id.subdetId() == PixelSubdetector::PixelBarrel;
789  ladder.push_back(isBarrel ? tTopo.pxbLadder(id) : 0);
790  blade.push_back(isBarrel ? 0 : tTopo.pxfBlade(id));
791  panel.push_back(isBarrel ? 0 : tTopo.pxfPanel(id));
792  }
unsigned int pxfBlade(const DetId &id) const
unsigned int pxbLadder(const DetId &id) const
std::vector< unsigned short > ladder
std::vector< unsigned short > panel
std::vector< unsigned short > blade
unsigned int pxfPanel(const DetId &id) const

Member Data Documentation

◆ blade

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

Definition at line 802 of file TrackingNtuple.cc.

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

◆ ladder

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

Definition at line 801 of file TrackingNtuple.cc.

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

◆ panel

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

Definition at line 803 of file TrackingNtuple.cc.

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