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

Constructor & Destructor Documentation

◆ DetIdPhase2OTOnly()

TrackingNtuple::DetIdPhase2OTOnly::DetIdPhase2OTOnly ( )
inline

Definition at line 908 of file TrackingNtuple.cc.

908 {}

Member Function Documentation

◆ book()

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

Definition at line 910 of file TrackingNtuple.cc.

910  {
911  BOOK(isLower);
912  BOOK(isUpper);
913  BOOK(isStack);
914  }

References BOOK, isLower, isStack, and isUpper.

◆ clear()

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

Definition at line 923 of file TrackingNtuple.cc.

923  {
924  isLower.clear();
925  isUpper.clear();
926  isStack.clear();
927  }

References isLower, isStack, and isUpper.

◆ push_back()

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

Definition at line 916 of file TrackingNtuple.cc.

916  {
917  isLower.push_back(tTopo.isLower(id));
918  isUpper.push_back(tTopo.isUpper(id));
919  isStack.push_back(tTopo.stack(id) ==
920  0); // equivalent to *IsDoubleSide() but without the hardcoded layer+ring requirements
921  }

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

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

◆ isStack

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

Definition at line 932 of file TrackingNtuple.cc.

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

◆ isUpper

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

Definition at line 931 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:670
TrackingNtuple::DetIdPhase2OTOnly::isUpper
std::vector< unsigned short > isUpper
Definition: TrackingNtuple.cc:931
TrackerTopology::isUpper
bool isUpper(const DetId &id) const
Definition: TrackerTopology.cc:214
TrackingNtuple::DetIdPhase2OTOnly::isStack
std::vector< unsigned short > isStack
Definition: TrackingNtuple.cc:932
TrackingNtuple::DetIdPhase2OTOnly::isLower
std::vector< unsigned short > isLower
Definition: TrackingNtuple.cc:930