This code

  // Fill output collections if valid input collections are available.                                                                                                   
  if (wireDigis.isValid() && compDigis.isValid()) {
    std::shared_ptr<const CSCBadChambers> temp( checkBadChambers_ ?
                                                std::shared_ptr<const CSCBadChambers>{pBadChambers.product(), [](const void*){}} :
                                                std::make_shared<const CSCBadChambers>({}));
    lctBuilder_->build(temp,
                       wireDigis.product(), compDigis.product(), gemPads,
                       *oc_alct, *oc_clct, *oc_pretrig, *oc_lct, *oc_sorted_lct);
  }

does not compile 

/afs/cern.ch/work/d/dildick/public/GEM/testForIntTrigger/CMSSW_6_2_X_SLHC_2014-01-24-0200/src/L1Trigger/CSCTriggerPrimitives/plugins/CSCTriggerPrimitivesProducer.cc: In member function 'virtual void CSCTriggerPrimitivesProducer::produce(edm::Event&, const edm::EventSetup&)':
/afs/cern.ch/work/d/dildick/public/GEM/testForIntTrigger/CMSSW_6_2_X_SLHC_2014-01-24-0200/src/L1Trigger/CSCTriggerPrimitives/plugins/CSCTriggerPrimitivesProducer.cc:146:48: error: too many arguments to function 'std::shared_ptr<_Tp1> std::make_shared(_Args&& ...) [with _Tp = const CSCBadChambers; _Args = {}]'
In file included from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc472/external/gcc/4.7.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/memory:87:0,
                 from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc472/external/boost/1.51.0-cms4/include/boost/config/no_tr1/memory.hpp:21,
                 from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc472/external/boost/1.51.0-cms4/include/boost/smart_ptr/shared_ptr.hpp:27,
                 from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc472/external/boost/1.51.0-cms4/include/boost/shared_ptr.hpp:17,
                 from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc472/cms/cmssw/CMSSW_6_2_X_SLHC_2014-01-24-0200/src/DataFormats/Common/interface/EDProductfwd.h:9,
                 from /afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc472/cms/cmssw/CMSSW_6_2_X_SLHC_2014-01-24-0200/src/FWCore/Framework/interface/Frameworkfwd.h:10,
                 from /afs/cern.ch/work/d/dildick/public/GEM/testForIntTrigger/CMSSW_6_2_X_SLHC_2014-01-24-0200/src/L1Trigger/CSCTriggerPrimitives/plugins/CSCTriggerPrimitivesProducer.h:22,
                 from /afs/cern.ch/work/d/dildick/public/GEM/testForIntTrigger/CMSSW_6_2_X_SLHC_2014-01-24-0200/src/L1Trigger/CSCTriggerPrimitives/plugins/CSCTriggerPrimitivesProducer.cc:14:
/afs/cern.ch/cms/sw/ReleaseCandidates/vol0/slc5_amd64_gcc472/external/gcc/4.7.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../include/c++/4.7.2/bits/shared_ptr.h:611:5: note: declared here
/afs/cern.ch/work/d/dildick/public/GEM/testForIntTrigger/CMSSW_6_2_X_SLHC_2014-01-24-0200/src/L1Trigger/CSCTriggerPrimitives/plugins/CSCTriggerPrimitivesProducer.cc:149:66: error: no matching function for call to 'CSCTriggerPrimitivesBuilder::build(std::shared_ptr<const CSCBadChambers>&, const MuonDigiCollection<CSCDetId, CSCWireDigi>*, const MuonDigiCollection<CSCDetId, CSCComparatorDigi>*, const GEMCSCPadDigiCollection*&, std::auto_ptr<MuonDigiCollection<CSCDetId, CSCALCTDigi> >::element_type&, std::auto_ptr<MuonDigiCollection<CSCDetId, CSCCLCTDigi> >::element_type&, std::auto_ptr<MuonDigiCollection<CSCDetId, int> >::element_type&, std::auto_ptr<MuonDigiCollection<CSCDetId, CSCCorrelatedLCTDigi> >::element_type&, std::auto_ptr<MuonDigiCollection<CSCDetId, CSCCorrelatedLCTDigi> >::element_type&)'
/afs/cern.ch/work/d/dildick/public/GEM/testForIntTrigger/CMSSW_6_2_X_SLHC_2014-01-24-0200/src/L1Trigger/CSCTriggerPrimitives/plugins/CSCTriggerPrimitivesProducer.cc:149:66: note: candidate is:
In file included from /afs/cern.ch/work/d/dildick/public/GEM/testForIntTrigger/CMSSW_6_2_X_SLHC_2014-01-24-0200/src/L1Trigger/CSCTriggerPrimitives/plugins/CSCTriggerPrimitivesProducer.cc:15:0:
/afs/cern.ch/work/d/dildick/public/GEM/testForIntTrigger/CMSSW_6_2_X_SLHC_2014-01-24-0200/src/L1Trigger/CSCTriggerPrimitives/src/CSCTriggerPrimitivesBuilder.h:54:8: note: void CSCTriggerPrimitivesBuilder::build(const CSCBadChambers*, const CSCWireDigiCollection*, const CSCComparatorDigiCollection*, const GEMCSCPadDigiCollection*, CSCALCTDigiCollection&, CSCCLCTDigiCollection&, CSCCLCTPreTriggerCollection&, CSCCorrelatedLCTDigiCollection&, CSCCorrelatedLCTDigiCollection&)
/afs/cern.ch/work/d/dildick/public/GEM/testForIntTrigger/CMSSW_6_2_X_SLHC_2014-01-24-0200/src/L1Trigger/CSCTriggerPrimitives/src/CSCTriggerPrimitivesBuilder.h:54:8: note:   no known conversion for argument 1 from 'std::shared_ptr<const CSCBadChambers>' to 'const CSCBadChambers*'
gmake: *** [tmp/slc5_amd64_gcc472/src/L1Trigger/CSCTriggerPrimitives/plugins/CSCTriggerPrimitivesPlugins/CSCTriggerPrimitivesProducer.o] Error 1
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2