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

Constructor & Destructor Documentation

◆ DetIdPhase2OTOnly()

TrackingNtuple::DetIdPhase2OTOnly::DetIdPhase2OTOnly ( )
inline

Definition at line 926 of file TrackingNtuple.cc.

926 {}

Member Function Documentation

◆ book()

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

Definition at line 928 of file TrackingNtuple.cc.

928  {
929  BOOK(isLower);
930  BOOK(isUpper);
931  BOOK(isStack);
932  }

References BOOK, isLower, isStack, and isUpper.

◆ clear()

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

Definition at line 941 of file TrackingNtuple.cc.

941  {
942  isLower.clear();
943  isUpper.clear();
944  isStack.clear();
945  }

References isLower, isStack, and isUpper.

◆ push_back()

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

Definition at line 934 of file TrackingNtuple.cc.

934  {
935  isLower.push_back(tTopo.isLower(id));
936  isUpper.push_back(tTopo.isUpper(id));
937  isStack.push_back(tTopo.stack(id) ==
938  0); // equivalent to *IsDoubleSide() but without the hardcoded layer+ring requirements
939  }

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

Member Data Documentation

◆ isLower

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

Definition at line 948 of file TrackingNtuple.cc.

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

◆ isStack

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

Definition at line 950 of file TrackingNtuple.cc.

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

◆ isUpper

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

Definition at line 949 of file TrackingNtuple.cc.

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

TrackerTopology::isLower
bool isLower(const DetId &id) const
Definition: TrackerTopology.cc:195
TrackerTopology::stack
uint32_t stack(const DetId &id) const
Definition: TrackerTopology.cc:104
BOOK
#define BOOK(name)
Definition: TrackingNtuple.cc:688
TrackingNtuple::DetIdPhase2OTOnly::isUpper
std::vector< unsigned short > isUpper
Definition: TrackingNtuple.cc:949
TrackerTopology::isUpper
bool isUpper(const DetId &id) const
Definition: TrackerTopology.cc:214
TrackingNtuple::DetIdPhase2OTOnly::isStack
std::vector< unsigned short > isStack
Definition: TrackingNtuple.cc:950
TrackingNtuple::DetIdPhase2OTOnly::isLower
std::vector< unsigned short > isLower
Definition: TrackingNtuple.cc:948