test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
ECalSD.cc File Reference
#include "SimG4CMS/Calo/interface/ECalSD.h"
#include "SimG4Core/Notification/interface/TrackInformation.h"
#include "Geometry/EcalCommonData/interface/EcalBarrelNumberingScheme.h"
#include "Geometry/EcalCommonData/interface/EcalBaseNumber.h"
#include "Geometry/EcalCommonData/interface/EcalEndcapNumberingScheme.h"
#include "Geometry/EcalCommonData/interface/EcalPreshowerNumberingScheme.h"
#include "Geometry/EcalCommonData/interface/ESTBNumberingScheme.h"
#include "DataFormats/EcalDetId/interface/EBDetId.h"
#include "DetectorDescription/Core/interface/DDFilter.h"
#include "DetectorDescription/Core/interface/DDFilteredView.h"
#include "DetectorDescription/Core/interface/DDSolid.h"
#include "DetectorDescription/Core/interface/DDMaterial.h"
#include "DetectorDescription/Core/interface/DDValue.h"
#include "G4LogicalVolumeStore.hh"
#include "G4LogicalVolume.hh"
#include "G4Step.hh"
#include "G4Track.hh"
#include "G4VProcess.hh"
#include "G4SystemOfUnits.hh"
#include <algorithm>

Go to the source code of this file.

Functions

template<class T >
bool any (const std::vector< T > &v, const T &what)
 

Function Documentation

template<class T >
bool any ( const std::vector< T > &  v,
const T what 
)

Definition at line 34 of file ECalSD.cc.

References spr::find().

Referenced by L1MuGMTMipIsoAU::assignISO(), ECalSD::getDepth(), ECalSD::getEnergyDeposit(), ECalSD::getTrackID(), ECalSD::initMap(), utils_v2::is_relvaldata(), utils::is_relvaldata(), EnablePSetHistory::new_dumpModifications(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), and SiPixelTemplate::simpletemplate2D().

35 {
36  return std::find(v.begin(), v.end(), what) != v.end();
37 }
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7