CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
HcalText2DetIdConverter Class Reference

#include <HcalText2DetIdConverter.h>

Public Member Functions

int getField (int i) const
 
const std::string & getField1 () const
 
const std::string & getField2 () const
 
const std::string & getField3 () const
 
const std::string & getFlavor () const
 
DetId getId () const
 
 HcalText2DetIdConverter (const std::string &fFlavor="NA", const std::string &fField1="0", const std::string &fField2="0", const std::string &fField3="0")
 
 HcalText2DetIdConverter (DetId fId)
 
bool isHcalCalibDetId () const
 
bool isHcalDetId () const
 
bool isHcalTrigTowerDetId () const
 
bool isHcalZDCDetId () const
 
std::string toString () const
 

Private Member Functions

bool init (const std::string &fFlavor, const std::string &fField1, const std::string &fField2, const std::string &fField3)
 
bool init (DetId fId)
 
void setField (int i, int fValue)
 

Private Attributes

std::string field1
 
std::string field2
 
std::string field3
 
std::string flavorName
 
DetId mId
 

Detailed Description

Author
F.Ratnikov, UMd Converts any flavour of HcalDetId to/from ascii strings

For Calibration DetIds:

Flavor = "CALIB_[HB|HE|HO|HF]" or "HOX"

fField1 is ieta (-2:2 for CALIB) fField2 is iphi fField3 is ctype (CALIB only)

Author
F.Ratnikov, UMd

Definition at line 21 of file HcalText2DetIdConverter.h.

Constructor & Destructor Documentation

HcalText2DetIdConverter::HcalText2DetIdConverter ( const std::string &  fFlavor = "NA",
const std::string &  fField1 = "0",
const std::string &  fField2 = "0",
const std::string &  fField3 = "0" 
)

Definition at line 41 of file HcalText2DetIdConverter.cc.

HcalText2DetIdConverter::HcalText2DetIdConverter ( DetId  fId)

Definition at line 52 of file HcalText2DetIdConverter.cc.

Member Function Documentation

int HcalText2DetIdConverter::getField ( int  i) const

Definition at line 253 of file HcalText2DetIdConverter.cc.

const std::string& HcalText2DetIdConverter::getField1 ( ) const
inline

Definition at line 35 of file HcalText2DetIdConverter.h.

References field1.

35 {return field1;}
const std::string& HcalText2DetIdConverter::getField2 ( ) const
inline

Definition at line 36 of file HcalText2DetIdConverter.h.

References field2.

36 {return field2;}
const std::string& HcalText2DetIdConverter::getField3 ( ) const
inline

Definition at line 37 of file HcalText2DetIdConverter.h.

References field3.

37 {return field3;}
const std::string& HcalText2DetIdConverter::getFlavor ( ) const
inline

Definition at line 34 of file HcalText2DetIdConverter.h.

References flavorName.

34 {return flavorName;}
DetId HcalText2DetIdConverter::getId ( ) const
inline

Definition at line 38 of file HcalText2DetIdConverter.h.

References mId.

bool HcalText2DetIdConverter::init ( const std::string &  fFlavor,
const std::string &  fField1,
const std::string &  fField2,
const std::string &  fField3 
)
private

Definition at line 167 of file HcalText2DetIdConverter.cc.

bool HcalText2DetIdConverter::init ( DetId  fId)
private

Definition at line 72 of file HcalText2DetIdConverter.cc.

bool HcalText2DetIdConverter::isHcalCalibDetId ( ) const

Definition at line 60 of file HcalText2DetIdConverter.cc.

bool HcalText2DetIdConverter::isHcalDetId ( ) const

Definition at line 56 of file HcalText2DetIdConverter.cc.

bool HcalText2DetIdConverter::isHcalTrigTowerDetId ( ) const

Definition at line 64 of file HcalText2DetIdConverter.cc.

bool HcalText2DetIdConverter::isHcalZDCDetId ( ) const

Definition at line 68 of file HcalText2DetIdConverter.cc.

void HcalText2DetIdConverter::setField ( int  i,
int  fValue 
)
private

Definition at line 271 of file HcalText2DetIdConverter.cc.

std::string HcalText2DetIdConverter::toString ( ) const

Definition at line 279 of file HcalText2DetIdConverter.cc.

Member Data Documentation

std::string HcalText2DetIdConverter::field1
private

Definition at line 48 of file HcalText2DetIdConverter.h.

Referenced by getField1().

std::string HcalText2DetIdConverter::field2
private

Definition at line 49 of file HcalText2DetIdConverter.h.

Referenced by getField2().

std::string HcalText2DetIdConverter::field3
private

Definition at line 50 of file HcalText2DetIdConverter.h.

Referenced by getField3().

std::string HcalText2DetIdConverter::flavorName
private

Definition at line 47 of file HcalText2DetIdConverter.h.

Referenced by getFlavor().

DetId HcalText2DetIdConverter::mId
private

Definition at line 51 of file HcalText2DetIdConverter.h.

Referenced by getId().