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 39 of file ElectronHEEPIDValueMapProducer.cc.

Member Enumeration Documentation

◆ Format

Enumerator
AUTO 
AOD 
MINIAOD 

Definition at line 41 of file ElectronHEEPIDValueMapProducer.cc.

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

Constructor & Destructor Documentation

◆ DataFormat()

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

Definition at line 47 of file ElectronHEEPIDValueMapProducer.cc.

47 : data_(val) {}

Member Function Documentation

◆ operator()()

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

Definition at line 50 of file ElectronHEEPIDValueMapProducer.cc.

50 { return data_; }

References data_.

◆ tryAOD()

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

Definition at line 48 of file ElectronHEEPIDValueMapProducer.cc.

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

References AOD, AUTO, and data_.

◆ tryMiniAOD()

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

Definition at line 49 of file ElectronHEEPIDValueMapProducer.cc.

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

References AUTO, data_, and MINIAOD.

Member Data Documentation

◆ data_

int ElectronHEEPIDValueMapProducer::DataFormat::data_
private

Definition at line 44 of file ElectronHEEPIDValueMapProducer.cc.

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

ElectronHEEPIDValueMapProducer::DataFormat::data_
int data_
Definition: ElectronHEEPIDValueMapProducer.cc:44
ElectronHEEPIDValueMapProducer::DataFormat::MINIAOD
Definition: ElectronHEEPIDValueMapProducer.cc:41
ElectronHEEPIDValueMapProducer::DataFormat::AUTO
Definition: ElectronHEEPIDValueMapProducer.cc:41
heppy_batch.val
val
Definition: heppy_batch.py:351
ElectronHEEPIDValueMapProducer::DataFormat::AOD
Definition: ElectronHEEPIDValueMapProducer.cc:41