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 756 of file TrackingNtuple.cc.

Constructor & Destructor Documentation

TrackingNtuple::DetIdPixelOnly::DetIdPixelOnly ( )
inline

Definition at line 758 of file TrackingNtuple.cc.

758 {}

Member Function Documentation

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

Definition at line 760 of file TrackingNtuple.cc.

References BOOK, and PVValHelper::ladder.

760  {
761  BOOK(ladder);
762  BOOK(blade);
763  BOOK(panel);
764  }
#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 773 of file TrackingNtuple.cc.

References PVValHelper::ladder.

773  {
774  ladder.clear();
775  blade.clear();
776  panel.clear();
777  }
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 766 of file TrackingNtuple.cc.

References gedGsfElectrons_cfi::isBarrel, PVValHelper::ladder, PixelSubdetector::PixelBarrel, TrackerTopology::pxbLadder(), TrackerTopology::pxfBlade(), and TrackerTopology::pxfPanel().

766  {
767  const bool isBarrel = id.subdetId() == PixelSubdetector::PixelBarrel;
768  ladder.push_back( isBarrel ? tTopo.pxbLadder(id) : 0 );
769  blade .push_back( isBarrel ? 0 : tTopo.pxfBlade(id) );
770  panel .push_back( isBarrel ? 0 : tTopo.pxfPanel(id) );
771  }
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 781 of file TrackingNtuple.cc.

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

Definition at line 780 of file TrackingNtuple.cc.

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

Definition at line 782 of file TrackingNtuple.cc.