Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L1 upgrade e/g: Add parameter to choose type of H/E cut #4879

Merged
merged 1 commit into from Aug 7, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -20,6 +20,7 @@ class L1CaloProtoClusterSharing:public L1CaloAlgoBase < l1slhc::L1CaloClusterWit
void algorithm( const int &, const int & );

private:
int mHoECutMode;
int mHoECutEB, mHoECutEE;


Expand All @@ -28,6 +29,7 @@ class L1CaloProtoClusterSharing:public L1CaloAlgoBase < l1slhc::L1CaloClusterWit
L1CaloProtoClusterSharing::L1CaloProtoClusterSharing( const edm::ParameterSet & aConfig ):
L1CaloAlgoBase < l1slhc::L1CaloClusterWithSeedCollection , l1slhc::L1CaloClusterWithSeedCollection > ( aConfig )
{
mHoECutMode = aConfig.getParameter<int>("hoeCutMode");
}

L1CaloProtoClusterSharing::~L1CaloProtoClusterSharing( )
Expand Down Expand Up @@ -175,8 +177,16 @@ void L1CaloProtoClusterSharing::algorithm( const int &aEta, const int &aPhi )


// Calculate Electron Cut and Save it in the Cluster
//int lElectronValue = ( int )( 1000. * ( ( double )lSharedCluster.HadEt() ) / ( ( double )lSharedCluster.EmEt() ) );
int lElectronValue = ( int )( 1000. * ( ( double )lSharedCluster.seedHadEt() ) / ( ( double )lSharedCluster.seedEmEt() ) );
int lElectronValue = 0;
if(mHoECutMode==0) // default, seed value
{
lElectronValue = ( int )( 1000. * ( ( double )lSharedCluster.seedHadEt() ) / ( ( double )lSharedCluster.seedEmEt() ) );
}
else if(mHoECutMode==1) // 3x3 value
{
lElectronValue = ( int )( 1000. * ( ( double )lSharedCluster.HadEt() ) / ( ( double )lSharedCluster.EmEt() ) );
}

lSharedCluster.setEGammaValue( lElectronValue );


Expand Down
Expand Up @@ -92,7 +92,8 @@
# Share towers for overlapping clusters
# The e/g identification bit is computed here
L1CaloProtoClusterSharing = cms.EDProducer("L1CaloProtoClusterSharing",
src = cms.InputTag("L1CaloProtoClusterFilter")
src = cms.InputTag("L1CaloProtoClusterFilter"),
hoeCutMode = cms.int32(0) # 0 = seed tower H/E, 1 = 3x3 cluster H/E
)

# Trim the 3x3 cluster for e/g clusters
Expand Down