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

Constructor & Destructor Documentation

TrackingNtuple::DetIdPhase2OTOnly::DetIdPhase2OTOnly ( )
inline

Definition at line 924 of file TrackingNtuple.cc.

924 {}

Member Function Documentation

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

Definition at line 926 of file TrackingNtuple.cc.

References BOOK, isLower, isStack, and isUpper.

926  {
927  BOOK(isLower);
928  BOOK(isUpper);
929  BOOK(isStack);
930  }
#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 939 of file TrackingNtuple.cc.

References isLower, isStack, and isUpper.

939  {
940  isLower.clear();
941  isUpper.clear();
942  isStack.clear();
943  }
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 932 of file TrackingNtuple.cc.

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

932  {
933  isLower.push_back(tTopo.isLower(id));
934  isUpper.push_back(tTopo.isUpper(id));
935  isStack.push_back(tTopo.stack(id) ==
936  0); // equivalent to *IsDoubleSide() but without the hardcoded layer+ring requirements
937  }
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 946 of file TrackingNtuple.cc.

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

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

Definition at line 948 of file TrackingNtuple.cc.

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

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

Definition at line 947 of file TrackingNtuple.cc.

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