CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 753 of file TrackingNtuple.cc.

Constructor & Destructor Documentation

TrackingNtuple::DetIdPixelOnly::DetIdPixelOnly ( )
inline

Definition at line 755 of file TrackingNtuple.cc.

755 {}

Member Function Documentation

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

Definition at line 757 of file TrackingNtuple.cc.

References blade, BOOK, ladder, and panel.

757  {
758  BOOK(ladder);
759  BOOK(blade);
760  BOOK(panel);
761  }
#define BOOK(name)
std::vector< unsigned short > ladder
std::vector< unsigned short > panel
std::vector< unsigned short > blade
void TrackingNtuple::DetIdPixelOnly::clear ( void  )
inline

Definition at line 770 of file TrackingNtuple.cc.

References blade, ladder, and panel.

770  {
771  ladder.clear();
772  blade.clear();
773  panel.clear();
774  }
std::vector< unsigned short > ladder
std::vector< unsigned short > panel
std::vector< unsigned short > blade
void TrackingNtuple::DetIdPixelOnly::push_back ( const TrackerTopology tTopo,
const DetId id 
)
inline

Definition at line 763 of file TrackingNtuple.cc.

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

763  {
764  const bool isBarrel = id.subdetId() == PixelSubdetector::PixelBarrel;
765  ladder.push_back(isBarrel ? tTopo.pxbLadder(id) : 0);
766  blade.push_back(isBarrel ? 0 : tTopo.pxfBlade(id));
767  panel.push_back(isBarrel ? 0 : tTopo.pxfPanel(id));
768  }
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
unsigned int pxfBlade(const DetId &id) const

Member Data Documentation

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

Definition at line 778 of file TrackingNtuple.cc.

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

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

Definition at line 777 of file TrackingNtuple.cc.

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

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

Definition at line 779 of file TrackingNtuple.cc.

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