CMS 3D CMS Logo

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

Public Member Functions

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

Private Attributes

std::vector< unsigned short > isLower
 
std::vector< unsigned short > isStack
 
std::vector< unsigned short > isUpper
 

Detailed Description

Definition at line 776 of file TrackingNtuple.cc.

Constructor & Destructor Documentation

TrackingNtuple::DetIdPhase2OTOnly::DetIdPhase2OTOnly ( )
inline

Definition at line 778 of file TrackingNtuple.cc.

778 {}

Member Function Documentation

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

Definition at line 780 of file TrackingNtuple.cc.

References BOOK.

780  {
781  BOOK(isLower);
782  BOOK(isUpper);
783  BOOK(isStack);
784  }
#define BOOK(name)
std::vector< unsigned short > isUpper
std::vector< unsigned short > isStack
std::vector< unsigned short > isLower
void TrackingNtuple::DetIdPhase2OTOnly::clear ( void  )
inline

Definition at line 792 of file TrackingNtuple.cc.

792  {
793  isLower.clear();
794  isUpper.clear();
795  isStack.clear();
796  }
std::vector< unsigned short > isUpper
std::vector< unsigned short > isStack
std::vector< unsigned short > isLower
void TrackingNtuple::DetIdPhase2OTOnly::push_back ( const TrackerTopology tTopo,
const DetId id 
)
inline

Definition at line 786 of file TrackingNtuple.cc.

References TrackerTopology::isLower(), TrackerTopology::isUpper(), and TrackerTopology::stack().

786  {
787  isLower.push_back(tTopo.isLower(id));
788  isUpper.push_back(tTopo.isUpper(id));
789  isStack.push_back(tTopo.stack(id) == 0); // equivalent to *IsDoubleSide() but without the hardcoded layer+ring requirements
790  }
bool isLower(const DetId &id) const
std::vector< unsigned short > isUpper
bool isUpper(const DetId &id) const
std::vector< unsigned short > isStack
uint32_t stack(const DetId &id) const
std::vector< unsigned short > isLower

Member Data Documentation

std::vector<unsigned short> TrackingNtuple::DetIdPhase2OTOnly::isLower
private

Definition at line 799 of file TrackingNtuple.cc.

std::vector<unsigned short> TrackingNtuple::DetIdPhase2OTOnly::isStack
private

Definition at line 801 of file TrackingNtuple.cc.

std::vector<unsigned short> TrackingNtuple::DetIdPhase2OTOnly::isUpper
private

Definition at line 800 of file TrackingNtuple.cc.