CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
ElectronHEEPIDValueMapProducer::DataFormat Class Reference

Public Types

enum  Format { AUTO = 0, AOD = 1, MINIAOD = 2 }
 

Public Member Functions

 DataFormat (int val)
 
int operator() () const
 
bool tryAOD () const
 
bool tryMiniAOD () const
 

Private Attributes

int data_
 

Detailed Description

Definition at line 41 of file ElectronHEEPIDValueMapProducer.cc.

Member Enumeration Documentation

◆ Format

Enumerator
AUTO 
AOD 
MINIAOD 

Definition at line 43 of file ElectronHEEPIDValueMapProducer.cc.

43 { AUTO = 0, AOD = 1, MINIAOD = 2 };

Constructor & Destructor Documentation

◆ DataFormat()

ElectronHEEPIDValueMapProducer::DataFormat::DataFormat ( int  val)
inline

Definition at line 49 of file ElectronHEEPIDValueMapProducer.cc.

49 : data_(val) {}

Member Function Documentation

◆ operator()()

int ElectronHEEPIDValueMapProducer::DataFormat::operator() ( ) const
inline

Definition at line 52 of file ElectronHEEPIDValueMapProducer.cc.

52 { return data_; }

References data_.

◆ tryAOD()

bool ElectronHEEPIDValueMapProducer::DataFormat::tryAOD ( ) const
inline

Definition at line 50 of file ElectronHEEPIDValueMapProducer.cc.

50 { return data_ == AUTO || data_ == AOD; }

References AOD, AUTO, and data_.

◆ tryMiniAOD()

bool ElectronHEEPIDValueMapProducer::DataFormat::tryMiniAOD ( ) const
inline

Definition at line 51 of file ElectronHEEPIDValueMapProducer.cc.

51 { return data_ == AUTO || data_ == MINIAOD; }

References AUTO, data_, and MINIAOD.

Member Data Documentation

◆ data_

int ElectronHEEPIDValueMapProducer::DataFormat::data_
private

Definition at line 46 of file ElectronHEEPIDValueMapProducer.cc.

Referenced by operator()(), tryAOD(), and tryMiniAOD().

ElectronHEEPIDValueMapProducer::DataFormat::data_
int data_
Definition: ElectronHEEPIDValueMapProducer.cc:46
ElectronHEEPIDValueMapProducer::DataFormat::MINIAOD
Definition: ElectronHEEPIDValueMapProducer.cc:43
ElectronHEEPIDValueMapProducer::DataFormat::AUTO
Definition: ElectronHEEPIDValueMapProducer.cc:43
heppy_batch.val
val
Definition: heppy_batch.py:351
ElectronHEEPIDValueMapProducer::DataFormat::AOD
Definition: ElectronHEEPIDValueMapProducer.cc:43