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

Constructor & Destructor Documentation

◆ DetIdPhase2OTOnly()

TrackingNtuple::DetIdPhase2OTOnly::DetIdPhase2OTOnly ( )
inline

Definition at line 948 of file TrackingNtuple.cc.

948 {}

Member Function Documentation

◆ book()

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

Definition at line 950 of file TrackingNtuple.cc.

References BOOK, isLower, isStack, and isUpper.

950  {
951  BOOK(isLower);
952  BOOK(isUpper);
953  BOOK(isStack);
954  }
#define BOOK(name)
std::vector< unsigned short > isUpper
std::vector< unsigned short > isStack
std::vector< unsigned short > isLower

◆ clear()

void TrackingNtuple::DetIdPhase2OTOnly::clear ( void  )
inline

Definition at line 963 of file TrackingNtuple.cc.

References isLower, isStack, and isUpper.

963  {
964  isLower.clear();
965  isUpper.clear();
966  isStack.clear();
967  }
std::vector< unsigned short > isUpper
std::vector< unsigned short > isStack
std::vector< unsigned short > isLower

◆ push_back()

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

Definition at line 956 of file TrackingNtuple.cc.

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

956  {
957  isLower.push_back(tTopo.isLower(id));
958  isUpper.push_back(tTopo.isUpper(id));
959  isStack.push_back(tTopo.stack(id) ==
960  0); // equivalent to *IsDoubleSide() but without the hardcoded layer+ring requirements
961  }
bool isUpper(const DetId &id) const
std::vector< unsigned short > isUpper
uint32_t stack(const DetId &id) const
bool isLower(const DetId &id) const
std::vector< unsigned short > isStack
std::vector< unsigned short > isLower

Member Data Documentation

◆ isLower

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

Definition at line 970 of file TrackingNtuple.cc.

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

◆ isStack

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

Definition at line 972 of file TrackingNtuple.cc.

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

◆ isUpper

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

Definition at line 971 of file TrackingNtuple.cc.

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