CMS 3D CMS Logo

Public Types | Public Member Functions | Public Attributes

EcalRawToRecHitRoI::CandJobPSet Class Reference

class to drive the job on Candidate-inheriting object More...

Inheritance diagram for EcalRawToRecHitRoI::CandJobPSet:
EcalRawToRecHitRoI::CalUnpackJobPSet

List of all members.

Public Types

enum  CTYPE {
  view, candidate, chargedcandidate, l1muon,
  l1jet
}

Public Member Functions

 CandJobPSet (edm::ParameterSet &cfg)
 ~CandJobPSet ()

Public Attributes

bool bePrecise
CTYPE cType
double epsilon
std::string propagatorNameToBePrecise

Detailed Description

class to drive the job on Candidate-inheriting object

Definition at line 132 of file EcalRawToRecHitRoI.h.


Member Enumeration Documentation

Enumerator:
view 
candidate 
chargedcandidate 
l1muon 
l1jet 

Definition at line 134 of file EcalRawToRecHitRoI.h.


Constructor & Destructor Documentation

EcalRawToRecHitRoI::CandJobPSet::CandJobPSet ( edm::ParameterSet cfg)

Definition at line 41 of file EcalRawToRecHitRoI.cc.

References bePrecise, candidate, chargedcandidate, cType, epsilon, edm::ParameterSet::getParameter(), l1jet, l1muon, propagatorNameToBePrecise, and view.

                                                               : CalUnpackJobPSet(cfg) {
  epsilon = cfg.getParameter<double>("epsilon");
  bePrecise = cfg.getParameter<bool>("bePrecise");
  if (bePrecise){ propagatorNameToBePrecise = cfg.getParameter<std::string>("propagatorNameToBePrecise");}
  else propagatorNameToBePrecise="";
  std::string type = cfg.getParameter<std::string>("cType");
  if (type == "view"){cType=view;}
  else if (type == "candidate"){cType=candidate;}
  else if (type == "chargedcandidate"){cType=chargedcandidate;}
  else if (type == "l1muon"){cType=l1muon;}
  else if (type == "l1jet"){cType=l1jet;}
  else {
    edm::LogWarning("IncorrectConfiguration")<<"\n\n could not interpret the cType: "<<type
                                       <<"\n using edm::View< reco::Candidate > by default. expect your trigger path to be slow !\n\n";
    cType=view;}
}
EcalRawToRecHitRoI::CandJobPSet::~CandJobPSet ( ) [inline]

Definition at line 136 of file EcalRawToRecHitRoI.h.

{}

Member Data Documentation

Definition at line 138 of file EcalRawToRecHitRoI.h.

Referenced by CandJobPSet(), and EcalRawToRecHitRoI::OneCandCollection().

Definition at line 140 of file EcalRawToRecHitRoI.h.

Referenced by CandJobPSet(), and EcalRawToRecHitRoI::OneCandCollection().

Definition at line 137 of file EcalRawToRecHitRoI.h.

Referenced by CandJobPSet(), and EcalRawToRecHitRoI::OneCandCollection().

Definition at line 139 of file EcalRawToRecHitRoI.h.

Referenced by CandJobPSet(), and EcalRawToRecHitRoI::OneCandCollection().