CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Classes | Functions | Variables
cms Namespace Reference

Namespaces

 detail
 

Classes

class  AlCaDiJetsProducer
 
class  Analyzer_minbias
 
class  BHFilter
 
class  CATopJetProducer
 
class  CkfDebugTrackCandidateMaker
 
class  CkfTrackCandidateMaker
 
class  CkfTrackCandidateMakerBase
 
class  CkfTrajectoryMaker
 
class  ClusterizerFP420
 
class  ClusterMTCCFilter
 
class  CompareTrajChi
 
class  CompareTrajLay
 
class  CompoundJetProducer
 
class  CosmicTIFTrigFilter
 
class  CosmicTrackFinder
 
class  CRC32Calculator
 
class  Digest
 
class  DigitizerFP420
 
class  DiJetAnalyzer
 
class  DiMuonSeedGeneratorHIC
 
class  DiMuonTrajectorySeed
 
class  Exception
 
class  FastMuPropagator
 
class  FastSimDataFilter
 
class  FmpConst
 
class  GammaJetAnalysis
 
class  HcalConstantsASCIIWriter
 
class  HICConst
 
class  HICFTSfromL1orL2
 
class  HICMuonPropagator
 
class  HICSeedMeasurementEstimator
 
class  HICTkOuterStartingLayerFinder
 
class  HITrackVertexMaker
 
class  HitReCalibrator
 
class  HLTHIMuL1L2L3Filter
 
class  JetCorrectionProducer
 
class  JetVertexAssociation
 
class  LTCTriggerBitsFilter
 
struct  MD5Result
 
class  METProducer
 
class  MinBias
 
class  MTCCHLTrigger
 
class  MuonMET
 
class  MuonMETValueMapProducer
 
class  MuonTCMETValueMapProducer
 
class  ProducerAnalyzer
 
class  ReconstructerFP420
 
class  RoadSearchCloudCleaner
 
class  RoadSearchHelixMaker
 
class  RoadSearchTrackListCleaner
 
class  SimpleTrackListMerger
 
class  SiPixelClusterProducer
 
class  SiPixelDigitizer
 
class  SiPixelRecHitConverter
 
class  SubEventGenJetProducer
 
class  SubJetProducer
 
class  TauMET
 
class  TECClusterFilter
 
class  TestMuL1L2Filter
 
class  TestMuL1L2FilterSTA
 
class  TrackerizerFP420
 
class  TrackListMerger
 
class  TrackMTCCFilter
 
class  Type1MET
 

Functions

void Adler32 (char const *data, size_t len, uint32_t &a, uint32_t &b)
 
uint32_t Adler32 (char const *data, size_t len)
 
edm::ProductID clusterProduct (const TrackingRecHit *hit)
 
edm::ProductID clusterProductB (const TrackingRecHit *hit)
 
 DEFINE_FWK_MODULE (TauMET)
 
 DEFINE_FWK_MODULE (Type1MET)
 
bool operator!= (MD5Result const &a, MD5Result const &b)
 
bool operator< (MD5Result const &a, MD5Result const &b)
 
std::ostream & operator<< (std::ostream &os, MD5Result const &r)
 
std::ostream & operator<< (std::ostream &ost, Exception const &e)
 
template<typename E , typename T >
detail::Desired< E,
detail::is_derived_or_same
< Exception, E >::value >
::type
operator<< (E &e, T const &stuff)
 
template<typename E , typename T >
detail::Desired< E,
detail::is_derived_or_same
< Exception, E >::value >
::type const & 
operator<< (E const &e, T const &stuff)
 
template<typename E >
detail::Desired< E,
detail::is_derived_or_same
< Exception, E >::value >
::type
operator<< (E &e, std::ostream &(*f)(std::ostream &))
 
template<typename E >
detail::Desired< E,
detail::is_derived_or_same
< Exception, E >::value >
::type const & 
operator<< (E const &e, std::ostream &(*f)(std::ostream &))
 
template<typename E >
detail::Desired< E,
detail::is_derived_or_same
< Exception, E >::value >
::type
operator<< (E &e, std::ios_base &(*f)(std::ios_base &))
 
template<typename E >
detail::Desired< E,
detail::is_derived_or_same
< Exception, E >::value >
::type const & 
operator<< (E const &e, std::ios_base &(*f)(std::ios_base &))
 
bool operator== (MD5Result const &a, MD5Result const &b)
 
void set_to_default (MD5Result &val)
 

Variables

static const char * s_hexValues
 

Detailed Description

How ParameterSets are nested inside ParameterSets The main feature is that they're made persistent using a ParameterSetID, and only reconstituted as needed, when the value_ptr = 0;

This a basic exception type expected to be thrown by developer-written code. We recommend that you use it directly. It can also be used as a base class if needed.

Each Exception is identified by a category string. This category is a short word or phrase (no spaces) that described the problem that was encountered.

Information can be added to the Exception using the stream insertion operator (as one uses cout). We recommend using it in the following manner:

Example: if ((rc=func()) < 0) { throw cms::Exception("DataCorrupt") << "I died with rc = " << rc << std::endl; }

Derived types are expected to fix the category, either by 1) passing a string literal to the base class constructor, or 2) ensuring the developer gives a category name.

Example: class InfiniteLoop : public Exception { InfiniteLoop(const std::string& msg) : Exception("InfiniteLoop",msg) { } };

ExceptionCollector is a utility class that can be used to make sure that each function or functor in a sequence of calls is invoked even if a previous function throws. Each function/functor must take no arguments and return a void. boost::bind can be used to convert a function taking arguments into a function taking no arguments. The exception strings are saved in a cms::Exception for optional rethrow.

Here is an example:

ExceptionCollector c("initialMessage");

c.call(boost_bind(&MyClass::myFunction, myClassPtr)); c.call(boost_bind(&MyClass::myOtherFunction, myClassPtr, myArgPtr)); c.call(boost_bind(&myFreeFunction, myArgPtr)); if (c.hasThrown()) c.rethrow();

This insures that all three functions will be called before any exception is thrown.

A very fast propagator that can go only from the trigger layers of the muon system to the tracker bounds. Uses precomputed parametrizations.

The COMMON BLOCK used by FastMuonPropagator.

Finds the layers that a FreeTrajectoryState which is outside of the tracker volume crosses first. In the forward and barrel-forward regions there may be several such layers.

SiPixelClusterProducer.cc

Description: see SiPixelClusterProducer.h Author: P. Maksimovic (porting from original ORCA version) History: Oct 14, 2005, initial version Get rid of the noiseVector. d.k. 28/3/06 Implementation of the DetSetVector container. V.Chiochia, May 06 SiPixelClusterCollection typedef of DetSetVector V.Chiochia, June 06 Introduce the DetSet local container (cache) for speed. d.k. 05/07


Function Documentation

void cms::Adler32 ( char const *  data,
size_t  len,
uint32_t &  a,
uint32_t &  b 
)

Definition at line 11 of file Adler32Calculator.cc.

References a, compareJSON::const, data, and MOD_ADLER.

Referenced by Adler32(), stor::FileHandler::checkAdler32(), edm::StreamDQMDeserializer::deserializeDQMEvent(), edm::StreamerInputSource::deserializeEvent(), edm::StreamerInputSource::deserializeRegistry(), FRDEventFileWriter::doOutputEvent(), FRDEventFileWriter::doOutputEventFragment(), edm::StreamDQMSerializer::serializeDQMEvent(), edm::StreamSerializer::serializeEvent(), edm::StreamSerializer::serializeRegistry(), and OutputFile::write().

11  {
12  /* data: Pointer to the data to be summed; len is in bytes */
13 
14  #define MOD_ADLER 65521
15 
16  unsigned char const* ptr = static_cast<unsigned char const*>(static_cast<void const*>(data));
17  while (len > 0) {
18  size_t tlen = (len > 5552 ? 5552 : len);
19  len -= tlen;
20  do {
21  a += *ptr++;
22  b += a;
23  } while (--tlen);
24 
25  a %= MOD_ADLER;
26  b %= MOD_ADLER;
27  }
28 
29  #undef MOD_ADLER
30  }
double b
Definition: hdecay.h:120
string const
Definition: compareJSON.py:14
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
double a
Definition: hdecay.h:121
#define MOD_ADLER
uint32_t cms::Adler32 ( char const *  data,
size_t  len 
)

Definition at line 33 of file Adler32Calculator.cc.

References a, Adler32(), and b.

33  {
34  /* data: Pointer to the data to be summed; len is in bytes */
35  uint32_t a = 1, b = 0;
36  Adler32(data, len, a, b);
37  return (b << 16) | a;
38  }
void Adler32(char const *data, size_t len, uint32_t &a, uint32_t &b)
double b
Definition: hdecay.h:120
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
double a
Definition: hdecay.h:121
edm::ProductID cms::clusterProduct ( const TrackingRecHit hit)

Definition at line 46 of file SimpleTrackListMerger.cc.

References cond::rpcobgas::detid, edm::hlt::Exception, TrackingRecHit::geographicalId(), edm::ProductID::id(), ProjectedSiStripRecHit2D::originalHit(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, and DetId::subdetId().

Referenced by cms::SimpleTrackListMerger::produce().

46  {
47  edm::ProductID pID;
48  //cast it into the proper class and find productID
49  DetId detid = hit->geographicalId();
50  uint32_t subdet = detid.subdetId();
51  if ((subdet == PixelSubdetector::PixelBarrel) || (subdet == PixelSubdetector::PixelEndcap)) {
52  pID=reinterpret_cast<const SiPixelRecHit *>(hit)->cluster().id();
53  } else {
54  const std::type_info &type = typeid(*hit);
55  if (type == typeid(SiStripRecHit2D)) {
56  pID=reinterpret_cast<const SiStripRecHit2D *>(hit)->cluster().id();
57  } else if (type == typeid(SiStripRecHit1D)) {
58  pID=reinterpret_cast<const SiStripRecHit1D *>(hit)->cluster().id();
59  } else if (type == typeid(SiStripMatchedRecHit2D)) {
60  const SiStripMatchedRecHit2D *mhit = reinterpret_cast<const SiStripMatchedRecHit2D *>(hit);
61  pID=mhit->monoClusterRef().id();
62  } else if (type == typeid(ProjectedSiStripRecHit2D)) {
63  const ProjectedSiStripRecHit2D *phit = reinterpret_cast<const ProjectedSiStripRecHit2D *>(hit);
64  pID=(&phit->originalHit())->cluster().id();
65  } else throw cms::Exception("Unknown RecHit Type") << "RecHit of type " << type.name() << " not supported. (use c++filt to demangle the name)";
66  }
67 
68  return pID;}
type
Definition: HCALResponse.h:22
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
Definition: DetId.h:20
DetId geographicalId() const
ProductIndex id() const
Definition: ProductID.h:38
const SiStripRecHit2D & originalHit() const
Pixel Reconstructed Hit.
edm::ProductID cms::clusterProductB ( const TrackingRecHit hit)

Definition at line 43 of file TrackListMerger.cc.

Referenced by cms::TrackListMerger::produce().

43  {
44  return reinterpret_cast<const BaseTrackerRecHit *>(hit)->firstClusterRef().id();
45  }
cms::DEFINE_FWK_MODULE ( TauMET  )
cms::DEFINE_FWK_MODULE ( Type1MET  )
bool cms::operator!= ( MD5Result const &  a,
MD5Result const &  b 
)
inline

Definition at line 40 of file Digest.h.

References b.

41  {
42  return !(a==b);
43  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
bool cms::operator< ( MD5Result const &  a,
MD5Result const &  b 
)

Definition at line 154 of file Digest.cc.

References cms::MD5Result::bytes.

155  {
156  return std::lexicographical_compare(a.bytes,
157  a.bytes+sizeof(a.bytes),
158  b.bytes,
159  b.bytes+sizeof(b.bytes));
160  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
std::ostream& cms::operator<< ( std::ostream &  os,
MD5Result const &  r 
)
inline

Definition at line 46 of file Digest.h.

References cms::MD5Result::toString().

47  {
48  os << r.toString();
49  return os;
50  }
std::ostream& cms::operator<< ( std::ostream &  ost,
Exception const &  e 
)
inline

Definition at line 216 of file Exception.h.

References cms::Exception::explainSelf().

217  {
218  ost << e.explainSelf();
219  return ost;
220  }
template<typename E , typename T >
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type& cms::operator<< ( E &  e,
T const &  stuff 
)
inline

Definition at line 227 of file Exception.h.

References alignCSCRings::e.

228  {
229  e.ost_ << stuff;
230  return e;
231  }
template<typename E , typename T >
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type const& cms::operator<< ( E const &  e,
T const &  stuff 
)
inline

Definition at line 236 of file Exception.h.

References alignCSCRings::e.

237  {
238  E& ref = const_cast<E&>(e);
239  ref.ost_ << stuff;
240  return e;
241  }
template<typename E >
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type& cms::operator<< ( E &  e,
std::ostream &(*)(std::ostream &)  f 
)
inline

Definition at line 246 of file Exception.h.

References alignCSCRings::e, and f.

247  {
248  f(e.ost_);
249  return e;
250  }
double f[11][100]
template<typename E >
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type const& cms::operator<< ( E const &  e,
std::ostream &(*)(std::ostream &)  f 
)
inline

Definition at line 255 of file Exception.h.

References alignCSCRings::e, and f.

256  {
257  E& ref = const_cast<E&>(e);
258  f(ref.ost_);
259  return e;
260  }
double f[11][100]
template<typename E >
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type& cms::operator<< ( E &  e,
std::ios_base &(*)(std::ios_base &)  f 
)
inline

Definition at line 265 of file Exception.h.

References alignCSCRings::e, and f.

266  {
267  f(e.ost_);
268  return e;
269  }
double f[11][100]
template<typename E >
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type const& cms::operator<< ( E const &  e,
std::ios_base &(*)(std::ios_base &)  f 
)
inline

Definition at line 275 of file Exception.h.

References alignCSCRings::e, and f.

276  {
277  E& ref = const_cast<E&>(e);
278  f(ref.ost_);
279  return e;
280  }
double f[11][100]
bool cms::operator== ( MD5Result const &  a,
MD5Result const &  b 
)

Definition at line 148 of file Digest.cc.

References cms::MD5Result::bytes.

149  {
150  return std::equal(a.bytes, a.bytes+sizeof(a.bytes), b.bytes);
151  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
void cms::set_to_default ( MD5Result &  val)

Definition at line 44 of file Digest.cc.

References cms::MD5Result::bytes.

Referenced by cms::MD5Result::fromHexifiedString(), and cms::MD5Result::MD5Result().

45  {
46  val.bytes[0] = 0xd4;
47  val.bytes[1] = 0x1d;
48  val.bytes[2] = 0x8c;
49  val.bytes[3] = 0xd9;
50  val.bytes[4] = 0x8f;
51  val.bytes[5] = 0x00;
52  val.bytes[6] = 0xb2;
53  val.bytes[7] = 0x04;
54  val.bytes[8] = 0xe9;
55  val.bytes[9] = 0x80;
56  val.bytes[10] = 0x09;
57  val.bytes[11] = 0x98;
58  val.bytes[12] = 0xec;
59  val.bytes[13] = 0xf8;
60  val.bytes[14] = 0x42;
61  val.bytes[15] = 0x7e;
62  }

Variable Documentation

const char* cms::s_hexValues
static
Initial value:
=
"000102030405060708090a0b0c0d0e0f"
"101112131415161718191a1b1c1d1e1f"
"202122232425262728292a2b2c2d2e2f"
"303132333435363738393a3b3c3d3e3f"
"404142434445464748494a4b4c4d4e4f"
"505152535455565758595a5b5c5d5e5f"
"606162636465666768696a6b6c6d6e6f"
"707172737475767778797a7b7c7d7e7f"
"808182838485868788898a8b8c8d8e8f"
"909192939495969798999a9b9c9d9e9f"
"a0a1a2a3a4a5a6a7a8a9aaabacadaeaf"
"b0b1b2b3b4b5b6b7b8b9babbbcbdbebf"
"c0c1c2c3c4c5c6c7c8c9cacbcccdcecf"
"d0d1d2d3d4d5d6d7d8d9dadbdcdddedf"
"e0e1e2e3e4e5e6e7e8e9eaebecedeeef"
"f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff"

Definition at line 69 of file Digest.cc.

Referenced by cms::MD5Result::toString().